Skip to content
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

SAM header has duplicate sorting order (SO) fields #95

Open
zaeleus opened this issue Apr 20, 2022 · 0 comments
Open

SAM header has duplicate sorting order (SO) fields #95

zaeleus opened this issue Apr 20, 2022 · 0 comments

Comments

@zaeleus
Copy link

zaeleus commented Apr 20, 2022

I noticed in ENCFF659AUS that the header tag has duplicate sorting order (SO) fields.

$ samtools view --header-only https://www.encodeproject.org/files/ENCFF659AUS/@@download/ENCFF659AUS.bam | head -1
@HD	VN:1.4	SO:coordinate	SO:coordinate

While this is undefined in the specified SAM version (1.4), it should be noted that it is illegal in SAM 1.6:

Within each (non-@CO) header line, no field tag may appear more than once and the order in which the fields appear is not significant.

This issue is caused by --outSAMheaderHD including the SO field and --outSAMtype being set to SortedByCoordinate, which causes STAR to indiscriminately duplicate the field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant