Repository navigation
Use the new header API - #998
Conversation
|
Updated to the header API as finally deployed. Most of the original commits were just chasing changes in the API as it developed, hence squashed as not very useful. |
|
Note for when merging or further rewriting these commits: the first one has inadvertently deleted test/split/.gitignore. |
|
Thanks for spotting that. Fixed and rebased. |
424b261 to
9f74850
Compare
| return false; | ||
| } | ||
| if (opts->mode == overwrite_all && | ||
| -1 == sam_hdr_keep_line(retval->output_header, "RG", "ID", opts->rg_id)) { |
There was a problem hiding this comment.
Thanks for fixing this.
It's a bit surprising that a function called sam_hdr_keep_line has the effect of removing lines! Maybe this API function could be renamed to sam_hdr_keep_only_line or similar?
There was a problem hiding this comment.
Renamed to sam_hdr_remove_except.
7bdf844 to
03acf36
Compare
03acf36 to
4b37805
Compare
|
Fixes #1079 |
5ae33de to
5f06375
Compare
|
Rebased so all commits build against current HTSlib. Upgraded
|
Depends on htslib PR samtools/htslib#812
Fixes #856
Fixes #1079