Skip to content

[view] Add support for int value tags to options -d and -D#1367

Merged
whitwham merged 1 commit intosamtools:developfrom
valeriuo:int_tags
Feb 3, 2021
Merged

[view] Add support for int value tags to options -d and -D#1367
whitwham merged 1 commit intosamtools:developfrom
valeriuo:int_tags

Conversation

@valeriuo
Copy link
Copy Markdown
Contributor

samtools view can now filter alignments by tags with integer values, using options -d or -D.

Fixes #1357

@whitwham whitwham merged commit 042d9db into samtools:develop Feb 3, 2021
if (settings->tvhash) {
khint_t k = kh_get(str, settings->tvhash, (char*)(s + 1));
char t[32], *val;
if (*s == 'i' || *s == 'I' || *s == 'c' || *s == 'C') {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about s and S?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Thanks!

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

Successfully merging this pull request may close these issues.

support int tags with samtools view options -d and -D

3 participants