Is it possible to pipelined two picard tools into one input?
1
0
Entering edit mode
3.8 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?

next-gen • 536 views
ADD COMMENT
1
Entering edit mode
3.8 years ago

try

java -jar picard.jar CleanSam \
    I=abc.bam \
    O=/dev/stdout |\
java -jar picard.jar SamToFastq \
    I=/dev/stdin \
    FASTQ=R1.fastq \
    SECOND_END_FASTQ=R2.fastq
ADD COMMENT

Login before adding your answer.

Traffic: 1409 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