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

Enhancement: sample ID handling #443

Open
ptrebert opened this issue Dec 1, 2023 · 2 comments
Open

Enhancement: sample ID handling #443

ptrebert opened this issue Dec 1, 2023 · 2 comments

Comments

@ptrebert
Copy link

ptrebert commented Dec 1, 2023

Hi,
I am using sniffles v2.2 and I have a few suggestions regarding the handling of the sample ID:

  1. my BAM files have the sample ID in the SM tag. Based on the closed issue Better format of the VCF output #211 , I was assuming that this would be used in the VCF output, but the VCFs generated by sniffles simply state SAMPLE as sample ID
  2. the parameter --sample-id solves this issue, yes, but the help/description does not make that obvious:
Custom ID for this sample, used for later multi-sample calling (stored in .snf)
  1. Of course, having to set the sample ID explicitly as a parameter is something that users may often forget or overlook. Hence, if the BAM contains the sample info, would be great to use it and overwrite that if --sample-id is set.
  2. just for completeness, there is also an open issue related to this for the force calling mode --sample-id does not work in force calling mode #427

Thanks for developing this great tool!
Best,
Peter

@fritzsedlazeck
Copy link
Owner

Thanks @ptrebert
@hermannromanek this should be an easy fix I think. Maybe we can include that in the next release in a few months.
Thanks
Fritz

@ahcm
Copy link

ahcm commented Mar 16, 2024

And the last resort should be filename and not "SAMPLE", which would make bcftools merge work. imho

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

No branches or pull requests

3 participants