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

calculateFragments() bug on mz calculation for charge 2 ions when Nterm is modified #200

Closed
adder opened this issue Mar 21, 2017 · 2 comments

Comments

@adder
Copy link
Contributor

adder commented Mar 21, 2017

Hey all,

I think I found a bug in calculateFragments() for the mz calculation for the charge 2 peaks when Nterm is modified.

When I add a Nterm modfication of mass 10 I expect and extra mass of 10 for charge 1 b ions and and an extra mass of 5 for charge 2 b ions. Instead there is also a mass of 10 added to charge 2 b ions.

See example below:

> calculateFragments('A',z = 1:2,modifications = c(),type = 'b')
Modifications used: None
        mz ion type pos z seq
1 72.04439  b1    b   1 1   A
2 36.52583  b1    b   1 2   A
> calculateFragments('A',z = 1:2,modifications = c(Nterm = 10), type = 'b')
Modifications used: Nterm=10
        mz ion type pos z seq
1 82.04439  b1    b   1 1   A
2 46.52583  b1    b   1 2   A
@lgatto
Copy link
Owner

lgatto commented Mar 21, 2017

Thanks for this, @adder. I'll let @sgibb rely, as he's the author of this code and will be able to address it more appropriately.

@sgibb sgibb closed this as completed in 1b904b3 Mar 23, 2017
@sgibb
Copy link
Collaborator

sgibb commented Mar 23, 2017

@adder you are right. Thanks for reporting. It is fixed in MSnbase 2.1.14.

lgatto pushed a commit that referenced this issue Apr 9, 2017
From: Sebastian Gibb <mail@sebastiangibb.de>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@127878 bc3139a8-67e5-0310-9ffc-ced21a209358
lgatto pushed a commit that referenced this issue Sep 7, 2017
From: Sebastian Gibb <mail@sebastiangibb.de>

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@127878 bc3139a8-67e5-0310-9ffc-ced21a209358
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

3 participants