This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to pipe samtools mileup with varscan trio caller?

I have seen piping samtools with varscan as follows

samtools mpileup -f reference.fasta sample1.bam sample2.bam | java -jar VarScan.jar mpileup2snp

But how to pipe the following pipeline for varscan 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 \ #this is input
     trio.mpileup.output \ #this is output
     --min-coverage 10 --min-var-freq 0.20 --p-value 0.05 \ 
     -adj-var-freq 0.05 -adj-p-value 0.15
varscan samtools pipe

Thanks!!. It has started running. I'll compare the ouputs of both command and verify

Update: The command has run successfully. But, there is difference in the output provided by both steps.

Number of de novo without pipe is 66 where as in pipe it 1292.

That's odd. Maybe open an issue/talk to varscan developers? You may want to dig deeper and see what's unique about the 66 captured - maybe they're closer together on the pileup output (I'm just going with a wild guess).

0 answers

No answers yet.

Log in to answer this question.