amplab/snap

Compression of intermediate bam file

matthdsm opened this issue · 3 comments

Hi,

Is there an option to compress the intermediate bam file?
I'm aligning 80GB's worth of fastq files and the intermediate bam's grown to about 500GB, which is becoming quite a load on our FS.

Current command is

snap-aligner paired ./snapaligner sample_R1.fastp.fastq.gz sample_R2.fastp.fastq.gz -o sample.bam -t 18 -so -b- -sm 10 -I -hc- 

Thanks
M

Hi!

The intermediate is the bam.tmp file, the final bam is only about 50GB, so thats acceptable.
Anyway, I just wanted to know if it was possible. I prefer speed over size anyways.

Thanks for the reply!
M

ghuls commented

I think SAMtools compresses temporary BAM files, but only with compression level 1 (to have some compression, but not to much CPU overhead).