m2t: how to make molecule to symbol and fullname

Description Usage Arguments Value Examples

View source: R/m2t.R

Description

how to make molecule to symbol and fullname

Usage

1
m2t(x, type = "cid", tSource = "tcmsp")

Arguments

x

is the name or cid of molecule

type

is the type of x

tSource

is the source of target

Value

symbol and fullname

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
.m2t(x='FER',type='molecule',tSource="tcmsp")
.m2t(x='FER',type='molecule',tSource="pubchem")
.m2t(x='445858',type='cid')
.m2t(x='MOL002547',type='molecule_id',tSource="tcmsp")
.m2t(x='MOL002547',type='molecule_id',tSource="pubchem")
 m2t(x=c('FER','pyrene'),type='molecule')
 m2t(x=c('445858','31423'),type='cid',tSource="tcmsp")
 m2t(x=c('445858','31423'),type='cid',tSource="pubchem")
 m2t(x=c('MOL002547','MOL000360'),type='molecule_id',tSource="tcmsp")
 m2t(x=c('MOL002547','MOL000360'),type='molecule_id',tSource="pubchem")

pwj6/tcmR documentation built on Dec. 22, 2021, 10:53 a.m.