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

Compute #mismatches using NM tag #328

Closed
LucoLab opened this issue Feb 13, 2019 · 3 comments
Closed

Compute #mismatches using NM tag #328

LucoLab opened this issue Feb 13, 2019 · 3 comments
Labels

Comments

@LucoLab
Copy link

LucoLab commented Feb 13, 2019

Minimap was launched without --eqx parameter.
So we tried to compute number of mismatches using formula given in #25

#mismatches =  NM  - #I - #D - #ambiguous_bases

Sometimes we have -1 values for #mismatches .
So maybe there is a bug somewhere we wanted to report.

@lh3
Copy link
Owner

lh3 commented Feb 13, 2019

An example?

@wdecoster
Copy link

Potentially related to #302

@lh3 lh3 added the question label Feb 13, 2019
@lh3
Copy link
Owner

lh3 commented Feb 13, 2019

@LucoLab has deleted the example which is

ffab5748-0b45-4f04-9e71-1c88bcc829d4	0	MT	3084	60	23M1D148M28S	*	0	0 AATCCAGGTCGGTTTCTATCTACTTCAAATTCCTCCCTGTACGAAAGGACAAGAGAAATAAGGCCTACTTCACAAAGCGCCTTCCCCCGTAAATGATATCATCTCAACTTAGTATTATACCCACACCCACCCAAGAACAGGGTTTGTTAAGATGGCAGAGCCCGGTAATCGTTTATCAACACCATCTTAAATCTTCTAG	* NM:i:1	ms:i:168	AS:i:168	nn:i:1	ts:A:+	tp:A:P	cm:i:46	s1:i:160	s2:i:70	dv:f:0.0088	cs:Z::23-n:148
da9f5f47-15e6-41c8-a2ad-10e85f022a5c	0	MT	3073	60	2S34M1D176M	*	0	0 CGCAGACCGGAGTAATCCAGGTCGGTTTCTATCTACTTCAAATTCCTCCCTGTACGAAAGGACAAGAGAAATAAGGCCTACTTCACAAAGCGCCTTCCCCCGTAAATGATATCATCTCAACTTAGTATTATACCCACACCCACCCAAGAACAGGGTTTGTTAAGATGGCAGAGCCCGGTAATCGCATAAAACTTAAAACTTTACAGTCAGAG	*	NM:i:1	ms:i:207	AS:i:207	nn:i:1	ts:A:+	tp:A:P	cm:i:57	s1:i:199	s2:i:90	dv:f:0.0071	cs:Z::34-n:176

In both cases, the deleted base is the ambiguous base on rCRS (see the cs tag). This suggests #mismatches = NM - #I - #D - #ambiguous_bases is not always correct.

@lh3 lh3 closed this as completed Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants