-
Notifications
You must be signed in to change notification settings - Fork 16
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
Ambiguous AA handling X vs - chars #153
Comments
@kelmazouari I'm looking at the code you referenced. It seems like there needs to be more logic here to determine when the three letter DNA code coming in should be one of the following AA's or an X or a gap character. B: ND I've added logic to handle those cases better to ve-sequence-utils and published a major version there. I'll update bio-parsers and ove with this update and let you know when those have been released. Here's what the new logic looks like: let aa = threeLetterSequenceStringToAminoAcidMap[sequenceString];
if (aa) {
return aa;
}
const letter =
degenerateDnaToAminoAcidMap[
sequenceString.replace("x", "n") //replace x's with n's as those are equivalent dna chars
] || "x";
return proteinAlphabet[letter.toUpperCase()]; |
Hi @tnrich |
Hey @kelmazouari I am taking X as a valid ambiguous dna character ('x' === 'n'). I am mostly using this chart here to make my ambiguous letter determinations: https://www.dnabaser.com/articles/IUPAC%20ambiguity%20codes.html From what I can tell by comparing with other sources, that chart seems fairly accurate. Is the new parser logic not working for you for a specific case or were you just pointing out that you do things differently in your code? Thanks! |
Thanks @tnrich, |
Hi @tnrich ,
I noticed that Ambiguous AA 'X' are not rendered.
I used this fix. But may not work where proteinAlphabet["-"] is used.
Originally posted by @kelmazouari in #140 (comment)
The text was updated successfully, but these errors were encountered: