Devon, your response time is staggering! We'll try that, thanks!
Re; piping - we are currently writing the .sam files and then sorting and marking dups using Picard tools. The .sam files are ~200 GB in size and we have 70 GB of RAM available. I am assuming you think piping will avoid writing to disk, but is this avoidable with our file sizes and RAM constraints?
If piping is the way to go, we aren't sure what syntax to use. For sorting, our command is:
java -Xmx30g -Djava.io.tmpdir=$TEMPDIR -jar $PICARDDIR/SortSam.jar \
INPUT=$ALNDIR/$sample.sam \
OUTPUT=$ALNDIR/$sample\_sorted.bam \
SORT_ORDER=coordinate
How would we change this to pipe the output of bowtie2?
I expect your answer in under 30 seconds.