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

Custom SAM tags not always with proper value type #6

Open
dominikburri opened this issue Apr 25, 2023 · 0 comments
Open

Custom SAM tags not always with proper value type #6

dominikburri opened this issue Apr 25, 2023 · 0 comments

Comments

@dominikburri
Copy link
Collaborator

At several places, SCINPAS adds custom SAM tags to mapped reads (from BAM files).
The custom tags are set with pysam.set_tag, see documentation here.

Since no value type is given, it is deduced. Sometimes this does not work and e.g. intended integers are set as strings.

This can be circumvented by setting value_type according to our type, which is either integer "i" or string "Z".
It can also be that the value provided is not correct, e.g. a string "1" is provided. This could be changed by providing an actual python integer by e.g. casting it with int("1").

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