Entering edit mode
5.4 years ago
ddzhangzz
▴
90
Suppose I have a bam file, abc.bam, needs to run CleanSam and SamToFastq:
java -jar picard.jar CleanSam \
I=abc.bam \
O=abc_cleaned.bam \
java -jar picard.jar SamToFastq \
I=abc_cleaned.bam \
FASTQ=R1.fastq \
SECOND_END_FASTQ=R2.fastq
Is it possible to run them pipelined, e.g feed the abc_cleaned.bam as the input for SamToFastq?