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