Comments (4)
What could have been the reason we had them as methods initially ?
I am not an expert in R language aesthetics. Would the choice change
if other packages also had group() functions/methods ? What else
influences the choice between function/method ? Happy to get just
a pointer to relevant documents/best practice rather than you having
to elaborate a long answer. Yours, Steffen
from xcms.
It relates a little to lgatto/MSnbase#111 .
Principally, methods only really make sense if they are implemented for at least two different objects; otherwise a function would suffice. Also, as you already mentioned, it makes sense when a generic is defined in another package.
I find also the documentation of functions easier to read (and to create) than for methods.
from xcms.
So this is a no-brainer for specDist and findPeaks, but the name group() might be too
generic to get away with a simple function. Can one easily check the expected fallout
from changing group() ?
from xcms.
I think I was not clear here: I don't want to change group
from a method to a function, but the downstream methods group.density
, group.nearest
etc. To the user this wouldn't change anything.
So, the group
, findPeaks
and specDist
will remain methods (also because in the long run they might be implemented also for OnDiskMSnExp
objects in addition to the xcmsRaw
).
from xcms.
Related Issues (20)
- adjustRtime() HOT 1
- plotChromPeakDensity() - no peak HOT 9
- Problem with fillChromPeaks HOT 19
- upcoming change in rgl will break xcms HOT 3
- worker failed with the error: wrong args for environment subassignment (xcMSnExp obj) HOT 2
- Question about Warning: replacing previous import HOT 2
- Unable to find an inherited method for function ‘clean’ for signature ‘"Spectra"’ HOT 2
- Dataset Error Report HOT 5
- About spectra simplify HOT 4
- Cannot read mzdata.xml file HOT 3
- findChromPeaks returns duplicate peaks HOT 6
- adjustRtime() Error HOT 8
- Centwave error with converted .wiff files. HOT 1
- Error Invalid cvParam accession "1003293" HOT 1
- Handling multtest dependency (BioC build error) HOT 3
- Two overlapping peaks with the same m/z detected as one HOT 2
- Does minSamples override minFraction when grouping? HOT 2
- ERROR: Dimensions of profile matrices do not match ! HOT 1
- Why does fill peaks with XCMSnExp object result in considerably less features than fill peaks with XCMSset? HOT 6
- How are features obtained if you don’t specify any class information for grouping? HOT 1
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 xcms.