write.SDF(ChemmineR)
write.SDF()所属R语言包:ChemmineR
SDF export function
自卫队的出口函数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Writes one or many molecules stored in a SDFset, SDFstr or SDF object to SD file.
写入一个或多个分子储存在SDFset,SDFstr或SDF对象,以SD文件。
用法----------Usage----------
write.SDF(sdf, file, cid = FALSE, ...)
参数----------Arguments----------
参数:sdf
object of class SDFset, SDFstr or SDF
对象的类SDFset,SDFstr或SDF
参数:file
name of SD file to write to
SD文件名称写入
参数:cid
if cid = TRUE and an SDFset object is provide as input, then the compound IDs in the ID slot of the SDFset are used for compound naming
如果cid = TRUE和SDFset对象提供作为输入,然后在ID槽的复合标识SDFset使用复合命名
参数:...
the optional arguments of the sdf2str function can be provided here, including head, ab, bb, db; details are provided in the help page for the sdf2str function
sdf2str函数的可选参数可以提供,包括head, ab, bb, db细节sdf2str函数提供的帮助页面
Details
详情----------Details----------
If the write.SDF function is supplied with an SDFset object, then it uses internally the sdf2str function to allow customizing the resulting SD file. For this all optional arguments of the sdf2str function can be passed on to write.SDF.
如果write.SDF函数SDFset对象提供的,那么它使用内部sdf2str功能允许定制的SD文件。 sdf2str函数的所有可选参数可以通过write.SDF。
作者(S)----------Author(s)----------
Thomas Girke
参考文献----------References----------
参见----------See Also----------
Import function: read.SDFset, read.SDFstr
导入功能:read.SDFset,read.SDFstr
举例----------Examples----------
## Instance of SDFset class[#SDFset类的实例]
data(sdfsample); sdfset <- sdfsample
## Write objects of classes SDFset/SDFstr/SDF to file[#写类SDFset / SDFstr /自卫队提交的对象。]
# write.SDF(sdfset[1:4], file="sub.sdf")[write.SDF(sdfset [1:4],文件=“sub.sdf”)]
## Example for writing customized SDFset to file containing[#示例编写定制SDFset文件,其中包含]
## ChemmineR signature, IDs from SDFset and no data block[的#ChemmineR签名,没有数据块标识从SDFset和]
# write.SDF(sdfset[1:4], file="sub.sdf", sig=TRUE, cid=TRUE, db=NULL)[write.SDF(sdfset [1:4],文件=“sub.sdf”,SIG = TRUE,CID = TRUE时,DB =空)]
## Example for injecting a custom matrix/data frame into the data block of an[#举例注入一个自定义的矩阵/数据框的数据块]
## SDFset and then writing it to an SD file[#SDFset然后它写入到SD文件]
props <- data.frame(MF=MF(sdfset), MW=MW(sdfset), atomcountMA(sdfset))
datablock(sdfset) <- props
view(sdfset[1:4])
# write.SDF(sdfset[1:4], file="sub.sdf", sig=TRUE, cid=TRUE)[write.SDF(sdfset [1:4],文件=“sub.sdf”,SIG = TRUE,CID = TRUE时)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|