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

header tag differs between runs #64

Open
matthdsm opened this issue Apr 13, 2022 · 2 comments
Open

header tag differs between runs #64

matthdsm opened this issue Apr 13, 2022 · 2 comments

Comments

@matthdsm
Copy link
Contributor

Hi
This is a minor issue but it seems the order of the tags in the header changes between 2 runs of elprep filter.
This causes the md5sum to be different when comparing tests. Could you sort the tags so the order stays the same?

Thanks
M

matdsmet:tmpqdm3s0ro $ diff 61/b91ed7ecaa51be82e9859e6ca0bcc4/test.sam a9/8bbdf3f2b5b85947daab90527d4e47/test.sam
1c1
< @HD   SO:coordinate   VN:1.6
---
> @HD   VN:1.6  SO:coordinate
3c3
< @RG   ID:1    PU:1    SM:testN        LB:testN     PL:illumina
---
> @RG   LB:testN        PL:illumina     ID:1    PU:1 SM:testN
@caherzee
Copy link
Contributor

I have changed it so header tags are always sorted alphabetically. Can you let me know if this is ok?

Thanks!

@matthdsm
Copy link
Contributor Author

Thanks, I'll build from source and give you a ping once it's tested!

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

2 participants