Description
In all of the get_()
functions, the argument to specify what type of identifier the query is is called from
, but in a couple of functions, this argument is type
.
ci_query(query, type = "inchikey")
aw_query(query, type = "cas")
A couple of functions don't have query
and from
because they only accept one identifier type in queries. Maybe these are OK as is?
fn_percept(CAS)
cts_compinfo(inchikey)
In addition, the possible values that from
accepts are mostly standardized, except for:
aw_query
, which uses"commonname"
instead of"name"
get_chebiid()
which is more complicated:
character; type of input, can be one of 'ALL', 'CHEBI ID', 'CHEBI NAME', 'DEFINITION', 'ALL NAMES', 'IUPAC NAME', 'CITATIONS', 'REGISTRY NUMBERS', 'MANUAL XREFS', 'AUTOMATIC XREFS', 'FORMULA', 'MASS', 'MONOISOTOPIC MASS', 'CHARGE', 'INCHI/INCHI KEY', 'SMILES', 'SPECIES'.
It might be nice if this wasn't case-sensitive and if both "inchi" and "inchikey" were options rather than "INCHI/INCHI KEY" and maybe if "name" was a synonym for "ALL NAMES" to better standardize across the package.