Skip to content

Commit

Permalink
chore: tslint auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Aug 16, 2021
1 parent 9cecbec commit 87068f8
Showing 1 changed file with 133 additions and 17 deletions.
150 changes: 133 additions & 17 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,66 @@ export const APIMETA: MetaDataItemsObject = {
},
},
SmallMolecule: {
id_ranks: ['CHEBI', 'CHEMBL.COMPOUND', 'DRUGBANK', 'PUBCHEM.COMPOUND', 'MESH', 'INCHI', 'INCHIKEY', 'UNII', 'KEGG.COMPOUND', 'UMLS', 'LINCS', 'CAS', 'HMDB', 'name'],
id_ranks: [
'CHEBI',
'CHEMBL.COMPOUND',
'DRUGBANK',
'PUBCHEM.COMPOUND',
'MESH',
'INCHI',
'INCHIKEY',
'UNII',
'KEGG.COMPOUND',
'UMLS',
'LINCS',
'CAS',
'HMDB',
'name',
],
semantic: 'SmallMolecule',
api_name: 'mychem.info',
url: 'https://mychem.info/v1/query',
mapping: {
'CHEMBL.COMPOUND': ['chembl.molecule_chembl_id', 'drugbank.xrefs.chembl', 'drugcentral.xrefs.chembl_id', 'unichem.chembl'],
DRUGBANK: ['drugcentral.xrefs.drugbank_id', 'pharmgkb.xrefs.drugbank', 'chebi.xrefs.drugbank', 'drugbank.id', 'unichem.drugbank'],
'PUBCHEM.COMPOUND': ['pubchem.cid', 'drugbank.xrefs.pubchem.cid', 'drugcentral.xrefs.pubchem_cid', 'pharmgkb.xrefs.pubchem.cid', 'chebi.xrefs.pubchem.cid', 'unichem.pubchem'],
CHEBI: ['chebi.id', 'chembl.chebi_par_id', 'drugbank.xrefs.chebi', 'drugcentral.xrefs.chebi', 'pharmgkb.xrefs.chebi', 'unichem.chebi'],
'CHEMBL.COMPOUND': [
'chembl.molecule_chembl_id',
'drugbank.xrefs.chembl',
'drugcentral.xrefs.chembl_id',
'unichem.chembl',
],
DRUGBANK: [
'drugcentral.xrefs.drugbank_id',
'pharmgkb.xrefs.drugbank',
'chebi.xrefs.drugbank',
'drugbank.id',
'unichem.drugbank',
],
'PUBCHEM.COMPOUND': [
'pubchem.cid',
'drugbank.xrefs.pubchem.cid',
'drugcentral.xrefs.pubchem_cid',
'pharmgkb.xrefs.pubchem.cid',
'chebi.xrefs.pubchem.cid',
'unichem.pubchem',
],
CHEBI: [
'chebi.id',
'chembl.chebi_par_id',
'drugbank.xrefs.chebi',
'drugcentral.xrefs.chebi',
'pharmgkb.xrefs.chebi',
'unichem.chebi',
],
UMLS: ['drugcentral.xrefs.umlscui', 'pharmgkb.xrefs.umls', 'umls.cui'],
MESH: ['umls.mesh', 'drugcentral.xrefs.mesh_descriptor_ui', 'ginas.xrefs.MESH', 'pharmgkb.xrefs.mesh'],
UNII: ['drugcentral.xrefs.unii', 'unii.unii', 'aeolus.unii', 'ginas.unii'],
INCHIKEY: ['drugbank.inchi_key', 'ginas.inchikey', 'unii.inchikey', 'chebi.inchikey', 'chembl.inchi_key', 'pubchem.inchi_key'],
INCHIKEY: [
'drugbank.inchi_key',
'ginas.inchikey',
'unii.inchikey',
'chebi.inchikey',
'chembl.inchi_key',
'pubchem.inchi_key',
],
INCHI: ['drugbank.inchi', 'chebi.inchi', 'chembl.inchi', 'pharmgkb.inchi', 'pubchem.inchi'],
'KEGG.COMPOUND': ['drugbank.xrefs.kegg.cid', 'chebi.xrefs.kegg_compound', 'pharmgkb.xrefs.kegg_compound'],
LINCS: ['unichem.lincs', 'chebi.xrefs.lincs'],
Expand All @@ -117,19 +164,68 @@ export const APIMETA: MetaDataItemsObject = {
},
},
Drug: {
id_ranks: ['CHEBI', 'CHEMBL.COMPOUND', 'DRUGBANK', 'PUBCHEM.COMPOUND', 'MESH', 'INCHI', 'INCHIKEY', 'UNII', 'KEGG.COMPOUND', 'UMLS', 'LINCS', 'CAS', 'HMDB', 'RXCUI', 'NDC', 'name'],
id_ranks: [
'CHEBI',
'CHEMBL.COMPOUND',
'DRUGBANK',
'PUBCHEM.COMPOUND',
'MESH',
'INCHI',
'INCHIKEY',
'UNII',
'KEGG.COMPOUND',
'UMLS',
'LINCS',
'CAS',
'HMDB',
'RXCUI',
'NDC',
'name',
],
semantic: 'Drug',
api_name: 'mychem.info',
url: 'https://mychem.info/v1/query',
mapping: {
'CHEMBL.COMPOUND': ['chembl.molecule_chembl_id', 'drugbank.xrefs.chembl', 'drugcentral.xrefs.chembl_id', 'unichem.chembl'],
DRUGBANK: ['drugcentral.xrefs.drugbank_id', 'pharmgkb.xrefs.drugbank', 'chebi.xrefs.drugbank', 'drugbank.id', 'unichem.drugbank'],
'PUBCHEM.COMPOUND': ['pubchem.cid', 'drugbank.xrefs.pubchem.cid', 'drugcentral.xrefs.pubchem_cid', 'pharmgkb.xrefs.pubchem.cid', 'chebi.xrefs.pubchem.cid', 'unichem.pubchem'],
CHEBI: ['chebi.id', 'chembl.chebi_par_id', 'drugbank.xrefs.chebi', 'drugcentral.xrefs.chebi', 'pharmgkb.xrefs.chebi', 'unichem.chebi'],
'CHEMBL.COMPOUND': [
'chembl.molecule_chembl_id',
'drugbank.xrefs.chembl',
'drugcentral.xrefs.chembl_id',
'unichem.chembl',
],
DRUGBANK: [
'drugcentral.xrefs.drugbank_id',
'pharmgkb.xrefs.drugbank',
'chebi.xrefs.drugbank',
'drugbank.id',
'unichem.drugbank',
],
'PUBCHEM.COMPOUND': [
'pubchem.cid',
'drugbank.xrefs.pubchem.cid',
'drugcentral.xrefs.pubchem_cid',
'pharmgkb.xrefs.pubchem.cid',
'chebi.xrefs.pubchem.cid',
'unichem.pubchem',
],
CHEBI: [
'chebi.id',
'chembl.chebi_par_id',
'drugbank.xrefs.chebi',
'drugcentral.xrefs.chebi',
'pharmgkb.xrefs.chebi',
'unichem.chebi',
],
UMLS: ['drugcentral.xrefs.umlscui', 'pharmgkb.xrefs.umls', 'umls.cui'],
MESH: ['umls.mesh', 'drugcentral.xrefs.mesh_descriptor_ui', 'ginas.xrefs.MESH', 'pharmgkb.xrefs.mesh'],
UNII: ['drugcentral.xrefs.unii', 'unii.unii', 'aeolus.unii', 'ginas.unii'],
INCHIKEY: ['drugbank.inchi_key', 'ginas.inchikey', 'unii.inchikey', 'chebi.inchikey', 'chembl.inchi_key', 'pubchem.inchi_key'],
INCHIKEY: [
'drugbank.inchi_key',
'ginas.inchikey',
'unii.inchikey',
'chebi.inchikey',
'chembl.inchi_key',
'pubchem.inchi_key',
],
INCHI: ['drugbank.inchi', 'chebi.inchi', 'chembl.inchi', 'pharmgkb.inchi', 'pubchem.inchi'],
'KEGG.COMPOUND': ['drugbank.xrefs.kegg.cid', 'chebi.xrefs.kegg_compound', 'pharmgkb.xrefs.kegg_compound'],
LINCS: ['unichem.lincs', 'chebi.xrefs.lincs'],
Expand Down Expand Up @@ -171,14 +267,34 @@ export const APIMETA: MetaDataItemsObject = {
},
},
Disease: {
id_ranks: ['MONDO', 'DOID', 'OMIM', 'ORPHANET', 'SNOMEDCT', 'NCIT', 'EFO', 'UMLS', 'MESH', 'HP', 'GARD', 'MEDDRA', 'name'],
id_ranks: [
'MONDO',
'DOID',
'OMIM',
'ORPHANET',
'SNOMEDCT',
'NCIT',
'EFO',
'UMLS',
'MESH',
'HP',
'GARD',
'MEDDRA',
'name',
],
semantic: 'Disease',
api_name: 'mydisease.info',
url: 'https://mydisease.info/v1/query',
mapping: {
MONDO: ['mondo.mondo', 'disgenet.xrefs.mondo'],
DOID: ['mondo.xrefs.doid', 'disease_ontology.doid', 'disgenet.xrefs.doid'],
UMLS: ['mondo.xrefs.umls', 'mondo.xrefs.umls_cui', 'disgenet.xrefs.umls', 'umls.umls', 'disease_ontology.xrefs.umls_cui'],
UMLS: [
'mondo.xrefs.umls',
'mondo.xrefs.umls_cui',
'disgenet.xrefs.umls',
'umls.umls',
'disease_ontology.xrefs.umls_cui',
],
name: ['mondo.label', 'disgenet.xrefs.disease_name', 'disease_ontology.name'],
MESH: ['mondo.xrefs.mesh', 'disease_ontology.xrefs.mesh', 'ctd.mesh'],
OMIM: ['mondo.xrefs.omim', 'hpo.omim', 'disgenet.xrefs.omim', 'disease_ontology.xrefs.omim'],
Expand Down Expand Up @@ -237,7 +353,7 @@ export const APIMETA: MetaDataItemsObject = {
url: 'https://biothings.ncats.io/go_cc/query',
mapping: {
GO: ['_id'],
MetaCyc: ['xrefs.metacyc'], // field missing in the API?
MetaCyc: ['xrefs.metacyc'], // field missing in the API?
name: ['name'],
},
},
Expand Down Expand Up @@ -269,7 +385,7 @@ export const APIMETA: MetaDataItemsObject = {
UBERON: ['_id'],
UMLS: ['xrefs.umls'],
MESH: ['xrefs.mesh'],
NCIT: ['xrefs.ncit'], // field missing in the API?
NCIT: ['xrefs.ncit'], // field missing in the API?
name: ['name'],
},
},
Expand All @@ -282,7 +398,7 @@ export const APIMETA: MetaDataItemsObject = {
CL: ['_id'],
NCIT: ['xrefs.ncit'],
MESH: ['xrefs.mesh'],
EFO: ['xrefs.efo'], // field missing in the API?
EFO: ['xrefs.efo'], // field missing in the API?
name: ['name'],
},
},
Expand Down

0 comments on commit 87068f8

Please sign in to comment.