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

Dependency on deprecated xcmsClusterApply #63

Open
sneumann opened this issue Oct 17, 2020 · 4 comments · Fixed by sneumann/xcms#516
Open

Dependency on deprecated xcmsClusterApply #63

sneumann opened this issue Oct 17, 2020 · 4 comments · Fixed by sneumann/xcms#516

Comments

@sneumann
Copy link
Owner

Hi,

we are getting an error xcmsClusterApply in findAdducts (the only place in CAMERA calling this function):

> an <- findAdducts(an,
+                   rules=rs@rules,
+                   polarity="positive")
Generating peak matrix for peak annotation!
Found and use user-defined ruleset!
Calculating possible adducts in 216 Groups... 
Parallel mode: There are 15 tasks.
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : 
  object 'xcmsClusterApply' not found
> traceback()
4: get(name, envir = asNamespace(pkg), inherits = FALSE)
3: xcms:::xcmsClusterApply
2: findAdducts(an, rules = rs@rules, polarity = "positive")
1: findAdducts(an, rules = rs@rules, polarity = "positive")

xcmsClusterApply was rightfully removed from xcms in
sneumann/xcms@944e73b#diff-79ec150cf995556015ba23f2a591ee68d5968adce487a08d2522e083a5c91112L303

But it is still called in

result <- xcms:::xcmsClusterApply(cl=object@runParallel$cluster,

The proper way is to go BPPARAM in CAMERA as well.
@jorainer, I need some hand-holding if I don't get this fixed this weekend myself.

Yours, Steffen

@sneumann
Copy link
Owner Author

A second place that needs fixing is

result <- xcmsPapply(argList, annotateGrpMPI2, paramsGlobal)

Yours, Steffen

@jorainer
Copy link

Sure, I'll fix that.

@jorainer
Copy link

Uh, had a look at the code. Replacing xcmsPapply with bplapply looks like a much larger change as expected. Due to the short time period to fix this I would rather re-add the xcmsPapply in xcms.

jorainer added a commit to sneumann/xcms that referenced this issue Oct 19, 2020
- Re-add the deprecated parallel processing functions to fix issue
  sneumann/CAMERA#63 in `CAMERA`.
@jorainer
Copy link

I've re-enabled the deprecated functionality in xcms (just merged into the xcms master branch - version 3.11.8) - this should fix it, but it would be better if you could verify that @sneumann .

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 a pull request may close this issue.

2 participants