getPcId {RMassBank} | R Documentation

## Search Pubchem CID

### Description

Retrieves PubChem CIDs for a search term.

### Usage

    getPcId(query, from = "inchikey")

### Arguments

`query` | ID to be converted
`from` | Type of input ID

### Details

Only the first result is returned currently. The function should be regarded as experimental and has not thoroughly been tested.

### Value

The PubChem CID (in string type).

### Author(s)

Michael Stravs, Erik Mueller

### References

PubChem search: http://pubchem.ncbi.nlm.nih.gov/

Pubchem REST: https://pubchem.ncbi.nlm.nih.gov/pug_rest/PUG_REST.html

### See Also

`getCtsRecord`, `getCactus`

### Examples

    getPcId("MKXZASYAUGDDCJ-NJAFHUGGSA-N")

[Package RMassBank version 2.8.0 Index]