-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appending records to a .bam #3250
Comments
Hi @notestaff, interesting use case. No, currently this is not possible because a header is always written. There might be even more issues but this one I am sure of. The problem with allow appending to a BAM file is that you have to extremely careful that the header information in the file-to-be-appended-to is the same as the one in memory of the program writing new records. Do you know if other tools allow this? An obvious workaround (that you are probably already using) is to write individual files and then, as a postprocessing step, concatenate them all. |
Is it possible with seqan3 to open a .bam file for writing in append mode, so that any records pushed to it get appended to the end, but the file header of the existing file is not touched (and a new file header is not mistakenly appended)? Thanks! @eseiler
The text was updated successfully, but these errors were encountered: