ar.getlist {Rarmec} | R Documentation |
Wrapper to parse variables names and retrieve all possible ionisation products corresponding to a list of nominal masses. By default, variables labels starting with P(or p) and N(or n) will be treated as positive and negative mode ionisation product. If a variable id is solely a number, search will be carried according to ionMode
. type
controls the type of query: type="meas"
measured adducts only, type="pred"
predicted adducts only and type="any"
for both measured and predicted ionisation products.
ar.getlist(lvar, type = "meas", ionMode = "positive", ...)
lvar |
List of nominal masses |
type |
Type of query ("meas","pred","any") |
ionMode |
Default mode if ionisation mode is not specified in the variable name |
... |
arguments for ar.getone |
Return a matrix/vector containing information of the possible candidates:
Ion |
Nominal mass with ionisation mode id |
ArmecId |
ARMeC identifier |
Name |
ARMeC name |
Adduct |
ARMeC ionisation product name |
MFormula |
Molecular formula |
MWeight |
Molecular weight |
KeggId |
KEGG identifier |
TairId |
TAIR identifier |
Pathway |
Metabolic pathway(s) |
David Enot dle@aber.ac.uk>
### Looking for measured mass=193 in the positive mode ar.getlist(c("P193","pos193",193))[,1:4] ### Looking for measured mass=193 in the negative mode ar.getlist("193",type="meas",ionMode="negative")[,1:4] ### A mixture of both modes ar.getlist(c("neg193","193"),type="meas",ionMode="positive")[,1:4] ### A mixture of both modes - same result as before ar.getlist(c("neg193","193"),type="meas")[,1:4]