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

Comparing two Spectrum1 plots #477

Closed
Mclnol16 opened this issue Jul 20, 2019 · 7 comments
Closed

Comparing two Spectrum1 plots #477

Mclnol16 opened this issue Jul 20, 2019 · 7 comments

Comments

@Mclnol16
Copy link

Hello all,

  1. Is there anyway to add/implement a way to compare two Spectrum1 plots?
  2. Additionally, is there a way to add a label to a peak other than using base R functions?

Thanks,

Nolan

@lgatto
Copy link
Owner

lgatto commented Jul 22, 2019

See here for spectra comparions.

There is not automated way to annotate peaks in spectra plots at the moment. If you provide some example of what you want to do, we might be able to help.

@Mclnol16
Copy link
Author

Thank you for your response,

However, is there a way to plot two Spectrum1 objects against eachother using the plot function? I believe that the plot function will only allow for the comparison of two Spectrum2 objects to be plotted against eachother.

@lgatto
Copy link
Owner

lgatto commented Jul 23, 2019

Indeed. I will see if this couldn't be adapted to work for MS1 data. I don't see any reason it shouldn't.

@lgatto
Copy link
Owner

lgatto commented Jul 23, 2019

It should now work with version 2.11.4 available on Github:

BiocManager::install("lgatto/MSnbase")

@lgatto lgatto closed this as completed Jul 23, 2019
@Mclnol16
Copy link
Author

@lgatto I am unable to install version 2.11.4 from Github. I have tried reinstalling packages/R/Rstudio and no luck. The error appears to be coming from "mzR"
Here is the final few lines from R :
Error: package or namespace load failed for 'mzR':
(converted from warning) multiple methods tables found for 'analyzer'
Error: package 'mzR' could not be loaded
Execution halted
ERROR: lazy loading failed for package 'MSnbase'

  • removing 'C:/Users/nolik/Documents/R/win-library/3.6/MSnbase'
    Error: Failed to install 'MSnbase' from GitHub: (converted from warning) installation of package ‘C:/Users/nolik/AppData/Local/Temp/RtmpG0EbDb/file7587667d35/MSnbase_2.11.4.tar.gz’ had non-zero exit status

Any advice would be appreciated

@lgatto
Copy link
Owner

lgatto commented Jul 24, 2019

Yes, you would need to install the development version of Bioconductor to get the new versions of all the dependencies.

BiocManager::install("MSnbase", version = "devel")

Then try again.

I hope you won't need a more recent version of R for that. Rstudio won't need an update.

@Mclnol16
Copy link
Author

Thank you so much! This is perfect!

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