Skip to content

Commit 6121d43

Browse files
authored
Merge pull request #26 from aryarm/patch/varscan-iupac
handle varscan iupac ambiguity codes
2 parents 3019b0e + 6eb8886 commit 6121d43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

callers/varscan

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ output_dir="$4"
1313

1414
samtools mpileup -l "$peaks" -f "$genome" -B "$bam" | \
1515
varscan mpileup2cns --p-value 1 --strand-filter 0 --output-vcf > "$output_dir/varscan.vcf" && \
16-
bgzip -f "$output_dir/varscan.vcf" && tabix -p vcf -f "$output_dir/varscan.vcf.gz"
16+
awk -F $"\t" -v 'OFS=\t' '/^#/ || $4 !~ /^(R|Y|M|W|S|K|V|H|D|B|N)$/' "$output_dir/varscan.vcf" | \
17+
bgzip > "$output_dir/varscan.vcf.gz" && tabix -p vcf -f "$output_dir/varscan.vcf.gz"

0 commit comments

Comments
 (0)