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

Spectra with zero intensities aren't empty spectra and become invalid. #15

Closed
sgibb opened this issue Mar 10, 2013 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@sgibb
Copy link
Owner

sgibb commented Mar 10, 2013

library("MALDIquant")
s <- createMassSpectrum(mass=1:10, intensity=rep(0, 10))
as.matrix(s)
#     mass intensity
# [1,]    1         0
# [2,]    2         0
# [3,]    3         0
# [4,]    4         0
# [5,]    5         0
# [6,]    6         0
# [7,]    7         0
# [8,]    8         0
# [9,]    9         0
#[10,]   10         0
length(s)
# [1] 10
totalIonCurrent(s) <- 1
as.matrix(s)
#     mass intensity
length(s)
# [1] 0
@ghost ghost assigned sgibb Mar 10, 2013
@sgibb sgibb closed this as completed in 4065176 Mar 30, 2013
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

1 participant