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

Fix bug in normalize-MSnExp #91

Merged
merged 1 commit into from
Jun 8, 2016
Merged

Fix bug in normalize-MSnExp #91

merged 1 commit into from
Jun 8, 2016

Conversation

jorainer
Copy link
Collaborator

@jorainer jorainer commented Jun 7, 2016

o Fix a bug in normalize method for MSnExp objects: assigning normalized
spectra directly to assayData is not possible, as the environment is
locked.
o readMSData: if no phenodata is provided it creates an empty one with
rownames corresponding to the file names.

o Fix a bug in normalize method for MSnExp objects: assigning normalized
  spectra directly to assayData is not possible, as the environment is
  locked.
o readMSData: if no phenodata is provided it creates an empty one with
  rownames corresponding to the file names.
@lgatto
Copy link
Owner

lgatto commented Jun 8, 2016

Fix a bug in normalize method for MSnExp objects: assigning normalized spectra directly to assayData is not possible, as the environment is locked.

Good catch. This is actually a sneaky one. The tests did not catch this because, the data that is used doesn't lock the bindings!

> data(itraqdata)
> range(intensity(itraqdata)[[1]])
[1]       0 1076030
> x <- normalise(itraqdata, method = "max")
> range(intensity(itraqdata)[[1]])
[1] 0 1

@lgatto lgatto merged commit 6b7fa18 into lgatto:master Jun 8, 2016
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.

2 participants