trimKey: Trim text from start of Cactus InChIKey

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ChemicalCuration.R

Description

This basic function trims "InChIKey=" from the start of InChIKeys obtained via Cactus with getCactus. Returns the original Key if the preceding text is not present.

Usage

1
trimKey(InChIKey)

Arguments

InChIKey

InChIKey to trim (or not).

Value

Returns the trimmed key or the original input.

Author(s)

Emma Schymanski <emma.schymanski@uni.lu>

See Also

getCactus.

Examples

1
2
3
CactusKey <- getCactus("benzene","stdinchikey")
trimKey(CactusKey)
trimKey("UHOVQNZJYSORNB-UHFFFAOYSA-N")

schymane/RChemMass documentation built on Jan. 25, 2021, 5:45 a.m.