Skip to content

Commit

Permalink
Merge pull request #212 from RoanKanninga/master
Browse files Browse the repository at this point in the history
bugfixes in prepare_NGS_bedfiles
  • Loading branch information
marieke-bijlsma authored Nov 12, 2018
2 parents 75b42b8 + 8f424cd commit 9d8e8fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prepare_NGS_Bedfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ then
sort -V -k1 -k2 -k3 "${TMP}/${NAME}.per_base.intervals" | uniq > "${baits}.uniq.per_base.intervals.tmp"
head -n 86 "${baits}.interval_list" > "${baits}.uniq.per_base.interval_list"
sort -V "${baits}.uniq.per_base.intervals.tmp" >> "${baits}.uniq.per_base.interval_list"
tail -n+87 "${baits}.uniq.per_base.interval_list" | awk '{print $1"\t"$2"\t"($3+1)"\t"$5}' > "${baits}.uniq.per_base.bed"
fi
fi

Expand Down Expand Up @@ -323,7 +324,7 @@ else
BATCH_ALL=$((BATCHCOUNT + batchCount_X))
#move the X chromosome folders
lengthR=$(less "${phiXRef}" | wc -l)
lengthRef=$(( "${lengthR}" + 2 ))
lengthRef=$(( ${lengthR} + 2 ))
if [ "${lengthOFChrXNP1}" -ne "${lengthOFChrXNP2}" ]
then
for i in $(seq 1 ${batchCount_X})
Expand Down Expand Up @@ -455,3 +456,4 @@ fi


bedtools intersect -a ${baits}.merged.bed -b /apps/data/GSAarray/GSA_sorted.bed | uniq > GSA_SNPS.bed

0 comments on commit 9d8e8fc

Please sign in to comment.