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

writeMgfData doesn't work for MS1 #73

Closed
meowcat opened this issue Dec 17, 2015 · 1 comment
Closed

writeMgfData doesn't work for MS1 #73

meowcat opened this issue Dec 17, 2015 · 1 comment

Comments

@meowcat
Copy link

meowcat commented Dec 17, 2015

Hi,

These lines in writeMgfContent make writeMgfData fail on MS1 spectra:

  .cat("\nRTINSECONDS=", rtime(sp), "\nPEPMASS=", precursorMz(sp))

  if (length(precursorCharge(sp)) && !is.na(precursorCharge(sp))) {
    .cat("\nCHARGE=", precursorCharge(sp), "+")
  }
d> writeMgfData(cpds.tot[[1]]@parent)
Error in precursorMz(sp) : No precursor MZ value for MS1 spectra.

Admittedly my Spectrum1 objects are not created by MSnbase directly but by RMassBank, but I think this should still work...

@lgatto
Copy link
Owner

lgatto commented Dec 18, 2015

@meowcat - thanks for the report. Should be fixed in version 1.19.7 and available via biocLite("MSnbase") within 24 hours or immediately from github with biocLite("lgatto/MSnbase").

@lgatto lgatto closed this as completed Dec 18, 2015
lgatto pushed a commit that referenced this issue May 4, 2016
* master:
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@111609 bc3139a8-67e5-0310-9ffc-ced21a209358
lgatto pushed a commit that referenced this issue May 4, 2016
* master: (860 commits)
  selective ggplot2 import
  typos and spaces
  fixed typos in Rd files
  readMSnSet2 now also accepts a data.frame as input
  no empty new line
  new devel version
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version
  bump version and update NEWS to document latest PRs
  change spectrum order to natural sorting (add missing MS2 level); #69
  change spectrum order to natural sorting
  upate style
  update news
  rewrite featureCV
  add colSd to calculate sd column-wise
  ...

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@113063 bc3139a8-67e5-0310-9ffc-ced21a209358
lgatto pushed a commit that referenced this issue Oct 27, 2016
* master: (860 commits)
  selective ggplot2 import
  typos and spaces
  fixed typos in Rd files
  readMSnSet2 now also accepts a data.frame as input
  no empty new line
  new devel version
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version
  bump version and update NEWS to document latest PRs
  change spectrum order to natural sorting (add missing MS2 level); #69
  change spectrum order to natural sorting
  upate style
  update news
  rewrite featureCV
  add colSd to calculate sd column-wise
  ...

From: Laurent <lg390@cam.ac.uk>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@113063 bc3139a8-67e5-0310-9ffc-ced21a209358
lgatto pushed a commit that referenced this issue Sep 7, 2017
* master:
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version

From: Laurent <lg390@cam.ac.uk>

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@111609 bc3139a8-67e5-0310-9ffc-ced21a209358
lgatto pushed a commit that referenced this issue Sep 7, 2017
* master: (860 commits)
  selective ggplot2 import
  typos and spaces
  fixed typos in Rd files
  readMSnSet2 now also accepts a data.frame as input
  no empty new line
  new devel version
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version
  bump version and update NEWS to document latest PRs
  change spectrum order to natural sorting (add missing MS2 level); #69
  change spectrum order to natural sorting
  upate style
  update news
  rewrite featureCV
  add colSd to calculate sd column-wise
  ...

From: Laurent <lg390@cam.ac.uk>

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@113063 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

2 participants