Hello ! I have alignments against scaffolds batches of 300 samples. The sam files are pretty big (15G) and the conversion to bam files causes an error due to the error:
[E::bam_hdr_write] Header too long for BAM format
I have th efollowing propositions to reduce the file size:
- remove headers of unmapped reads
- removing secondary alignments (I fear this could impact SemiBin2 a lot)
Can I apply these ideas ?