samtools / htslib

C library for high-throughput sequencing data formats
Other
785 stars 447 forks source link

Fix example in docs for sam_hdr_add_line #1618

Closed kojix2 closed 1 year ago

kojix2 commented 1 year ago

Hi!

I am glad to have the opportunity to send you another pull request. In the example in the sam_hdr_add_line documentation, I propose changing "ID" to "SN."

[E::sam_hrecs_update_hashes] Header includes @SQ line with no SN: tag

https://github.com/samtools/htslib/blob/279cc9ec8d3fd5ad94aa0df730dac6e9ec0ead8f/htslib/sam.h#L471

Best regards.

daviesrob commented 1 year ago

Oops, yes, that example was wrong. Thanks for the fix.