Skip to content

Commit

Permalink
Merge pull request #26 from aryarm/patch/varscan-iupac
Browse files Browse the repository at this point in the history
handle varscan iupac ambiguity codes
  • Loading branch information
aryarm authored Jul 1, 2021
2 parents 3019b0e + 6eb8886 commit 6121d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion callers/varscan
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ output_dir="$4"

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

0 comments on commit 6121d43

Please sign in to comment.