Calling triovariants using varscan from a compressed mileup file ?
1
6
Entering edit mode
3.9 years ago
DareDevil ★ 4.3k

I used following commands to call denovo variants from trio

#Generate a three-sample mpileup
samtools mpileup -B -q 1 \
     -f ref.fasta \
     dad.bam mom.bam child.bam > trio.mpileup

#Run VarScan trio
varscan trio trio.mpileup trio.mpileup.output \
      --min-coverage 10 --min-var-freq 0.20 --p-value 0.05 \ 
      -adj-var-freq 0.05 -adj-p-value 0.15

But, here the output generated from mpileup is really huge. Are there any ways to feed compressed files to the varscan trio ?

varscan samtools trio mpileup pipe • 924 views
ADD COMMENT
4
Entering edit mode
3.9 years ago
svp ▴ 680

You can try: < zcat (file.gz) as input

varscan trio < (zcat trio.mileup.gz) trio.mpileup.output \
      --min-coverage 10 --min-var-freq 0.20 --p-value 0.05 \ 
      -adj-var-freq 0.05 -adj-p-value 0.15
ADD COMMENT

Login before adding your answer.

Traffic: 1933 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6