convertToGrinnID - convert other database IDs to Neo4j internal IDs and grinn IDs


Convert the list of ids to grinn IDs grinn IDs are recommended to be used in several functions including combineNetwork, fetchGrinnCorrNetwork, fetchGrinnModuNetwork, fetchGrinnDiffCorrNetwork, fetchCorrGrinnNetwork, fetchModuGrinnNetwork, fetchDiffCorrGrinnNetwork.


convertToGrinnID(txtInput, nodetype, dbXref)


txtInputlist of keywords containing ids e.g. txtInput = list('id1', 'id2'). The ids are from a database, see dbXref.
nodetypestring of entity type. It can be one of "metabolite","protein","gene","pathway".
dbXrefstring of database name. Specify the database name used for the txtInput, see txtInput. It can be one of "chebi","kegg","pubchem","inchi","hmdb","smpdb","reactome","uniprot","ensembl","entrezgene".


data frame of ids. Return empty list if found nothing.


# Convert genes from ENSEMBL ids to grinn ids
txtInput <- list('ENSG00000140459','ENSG00000143811','ENSG00000104524')
result <- convertToGrinnID(txtInput, nodetype="gene", dbXref="ensembl")
# Convert metabolites from chebi ids to Grinn ids
txtInput <- c(371,783)
result <- convertToGrinnID(txtInput, nodetype="metabolite", dbXref="chebi")
# Convert metabolites from kegg ids to Grinn ids, read input from csv or txt file
result <- convertToGrinnID(unlist(keggids), nodetype="metabolite", dbXref="kegg")

Go to HOME | Documentation | fetchGrinnNetwork | fetchCorrGrinnNetwork | fetchDiffCorrGrinnNetwork | fetchModuGrinnNetwork | fetchGrinnCorrNetwork | input formats