Comments (8)
Hi Leon,
Doesn't ring any bells here, perhaps some data is missing via the import, but that's just guessing. Would it be possible to share some of the objects (fGroupsPO
, fGroupsXCMS
, comp
or just the whole session), so I can debug the problem myself?
Thanks,
Rick
from patroon.
Hi Rick,
thanks for the quick reply!
I have a small update: I was playing around with the consensus
-function and the same error occured, when the uniqueFrom
-keyword was set to a single value:
> comp = comparison(fGroupsPO, fGroupsXCMS, groupAlgo="xcms3")
> uniquePO = consensus(comp, uniqueFrom=1, uniqueOuter=TRUE)
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'i' in selecting a method for function '[': error in evaluating the argument 'x' in selecting a method for function '%in%': attempt to set an attribute on NULL
With all or multiple values there is no problem:
> outer = consensus(comp, uniqueFrom=TRUE, uniqueOuter=TRUE)
Generating consensus features...Done!
Generating consensus feature groups...
|==================================================================================================================| 100%
For further investigation, here are the fGroups
: fGroups.zip
Kind regards,
Leon
from patroon.
Further digging showed, the error is happening inside unique()
:
> outerFrom = 1
> which = names(comp)[outerFrom]
> patRoon::unique(comp@comparedFGroups, which = which)
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'i' in selecting a method for function '[': error in evaluating the argument 'x' in selecting a method for function '%in%': attempt to set an attribute on NULL
Snippet was based on:
patRoon/R/feature_groups-comparison.R
Lines 304 to 309 in 7f36ee2
from patroon.
Hi Leon,
Thanks for the files and further investigation.
In the end it seems that the XCMS structure is incomplete, and the error happens somewhere in the XCMS code. Under some circumstances, patRoon tries to 'emulate' an XCMS object in case insufficient data is available. The comparison()
function is an example of this: it sort-of creates pseudofeatures from the input fGroups objects, meaning that these have no information such as actual raw data with spectra. Where it goes wrong now is that when unique()
is called, the analyses of the object are subset, triggering an synchronization of the internal XCMS object (xdata
slot), which then gives the error. I will see if this is fixable, or otherwise perhaps simply disable the object synchronization for these edge cases.
Perhaps in the meanwhile you could switch to another algorithm where you call comparison()
?
Thanks,
Rick
from patroon.
Hi @LeonSaal ,
I just pushed some small changes that should initialize some missing data. Could you please test it? I also hope it doesn't break anything else, so feedback for that is welcome too ;-)
Thanks,
Rick
from patroon.
Hi @rickhelmus,
thanks for the update!
I tested my script with the new docker image (sha256:cb3ebbd12561c2e7e11850f9e900ab464a85ca718de43932759a30786a0709e6), but unfortunately, the error still persists with comparison(..., groupAlgo="xcms3")
. However, as you suggested, with groupAlgo="openms"
, it works!
Kind regards,
Leon
from patroon.
Hi Leon,
Sorry for my late reply again...
But great things are working now for you. I totally forgot to mention, but even with the fix I pushed for xcms3
you would still need to clearout some of the cached data to avoid running in the problem. If it's not too much trouble, maybe you could re-try without cached data to see if it works? Then we can close this issue. Instead of wiping the whole cache, I think it would be sufficient to run clearCache("XCMS")
.
Thanks,
Rick
from patroon.
Hi Rick,
thanks for the tip with the cache! Indeed, it works now with the groupAlgo = "xcms3"
.
Kind regards,
Leon
from patroon.
Related Issues (20)
- Error: newProject()/Tp Screening unable to add parent suspect list HOT 5
- Handbook: Inconsistency for labelled Isotopes HOT 1
- Suggestion: 'conc'-column in newProject() HOT 2
- Error: Finding features using XCMS HOT 4
- Using data processing code with already annotated csv file HOT 1
- error with generateCompounds( ) - could not run MetFrag HOT 4
- merge generateCompounds from different tools HOT 6
- Swath acquisition HOT 4
- Error: report with compoundsConsensus fails HOT 1
- Report generation occasionally fails HOT 10
- findFeatures Error - Error in if (!recentFFM) settings <- c(settings, `-algorithm:epd:masstrace_snr_filtering` = boolToChr(traceSNRFiltering)) : missing value where TRUE/FALSE needed HOT 4
- MetFrag not functionning with java versions problem being compiled by a more recent version of the Java Runtime (52.0 and 55.0) HOT 1
- MS2Quant: "Error in if (fingerprints != "") { : the condition has length > 1" HOT 2
- Error: Docker RStudio-server, unable to connect to service HOT 2
- Load a previous group features list HOT 2
- Filtering MS/MS Peaks with Characteristic Fragment Ions HOT 5
- Selection of several adducts HOT 3
- Error: graphics device error in Docker HOT 4
- Request: Reduce cache size HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from patroon.