Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/FILTERING-post_mass.R
Functionality to POST an atomic mass and its range to obtain a queryId
for use in chemspiderapi::get_queryId_status()
and chemspiderapi::get_queryId_results()
.
1 2 3 4 5 6 7 8 9 10 |
mass |
A (double) number corresponding to the atomic mass (Da or g/mol) you are inquiring. Has to be within the range of [1,11000]. |
range |
The range for the above mass, also as (double) number. Has to be within the range of [0.0001,100]. |
dataSources |
Optional: A character vector specifying which data source to use. Use |
orderBy |
A character vector indicating by which parameter to order. Defaults to |
orderDirection |
A character vector indicating in which direction to order; either |
apikey |
A 32-character string with a valid key for ChemSpider's API services. |
coerce |
|
simplify |
|
"Submit mass as a double between 1 and 11000 Atomic Mass Units, and a range between 0.0001 and 100 via POST. For example, if you specify a mass of 40 and a range of 5, all monoisotopic masses between 35 and 45 are searched.
[...] If dataSources
is not specified, all known sources are searched. This will take longer.
Optionally, you can also submit orderBy
and orderDirection
to specify the sort order for the results. If you do not specify a value for orderBy
, results are sorted by [recordId
] by default.
Valid values for orderBy
are recordId
, massDefect
, molecularWeight
, referenceCount
, dataSourceCount
, pubMedCount
, rscCount
.
Valid values for orderDirection
are ascending
, descending
."
Returns the queryId string as (named) character vector.
Raoul Wolf (https://github.com/RaoulWolf/)
https://developer.rsc.org/compounds-v1/apis/post/filter/mass
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.