# #——风格,回声= FALSE,结果=“黑名单”,消息= FALSE --------------------- BiocStyle:减价 () ## ---- 回声= FALSE,消息= FALSE ------------------------------------------- 库(光谱)库(BiocStyle ) ## ---- eval = FALSE ------------------------------------------------------------ # 如果(!requireNamespace(“BiocManager”,悄悄地= TRUE)) # install.packages(“BiocManager”)# # BiocManager::安装(“MsBackendMsp ") ## ---- 消息= FALSE --------------------------------------------------------- 库(MsBackendMsp) nist < -系统。文件(“extdata”、“spectrum2。msp”,包= " MsBackendMsp ") ## ----------------------------------------------------------------------------- sp < -光谱(nist,源= MsBackendMsp ()) ## ---- spectravars -------------------------------------------------------------- spectraVariables (sp ) ## ----------------------------------------------------------------------------- sp msLevel sp名字sp美元美元加合物 ## ----------------------------------------------------------------------------- spectraVariableMapping (MsBackendMsp ()) ## ----------------------------------------------------------------------------- 莫娜< -系统。文件(“extdata”、“minimona。msp”,包= " MsBackendMsp”)负责人(readline(莫娜 )) ## ----------------------------------------------------------------------------- 头(readline (nist )) ## ----------------------------------------------------------------------------- 莫娜spectraVariableMapping (MsBackendMsp()。 ") ## ----------------------------------------------------------------------------- sp_mona < -光谱(莫娜,源= MsBackendMsp(),映射= spectraVariableMapping (MsBackendMsp (),“蒙娜丽莎”)sp_mona precursorMz美元 ## ----------------------------------------------------------------------------- sp_mona 29:30美元的同义词 ## ----------------------------------------------------------------------------- tmpf < - tempfile()出口(sp_mona后台= MsBackendMsp(),文件= tmpf映射= spectraVariableMapping (MsBackendMsp()))头(readline (tmpf )) ## ----------------------------------------------------------------------------- tmpf < - tempfile()出口(sp端= MsBackendMsp (),文件= tmpf映射= spectraVariableMapping (MsBackendMsp(),“蒙娜丽莎”)(readline (tmpf)的头 )) ## ----------------------------------------------------------------------------- sessionInfo ()