SDMFrame(ddCt)
SDMFrame()所属R语言包:ddCt
Read an SDM file
读取SDM文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Read an SDM file: Data Output File for SDS, Version 2.1
读取SDM文件:数据输出文件的SDS,2.1版
用法----------Usage----------
SDMFrame(file)
readSDM(file)
参数----------Arguments----------
参数:file
Character vector of filenames
文件名的特征向量
Details
详情----------Details----------
This function reads the data given in the colums 'Detector','Sample' and 'Ct' of the specified SDM output file(s) and stores them as a data.frame. An additional column including the respective filename is added.
该函数读取的colums探测器,样品和CT指定的SDM输出文件(S)提供的数据和存储数据框。增加一个额外的列,其中包括相应的文件名。
This function is a wrapper for the SDMFrame constructor
这个函数是一个包装为SDMFrame构造
值----------Value----------
A object of class SDMFrame
一个对象的类SDMFrame
作者(S)----------Author(s)----------
Rudolf Biczok <a href="mailto:r.biczok@dkfz.de">mailto:r.biczok@dkfz.de</a>
举例----------Examples----------
## read a SDM file[#读SDM文件]
sampdat <- SDMFrame(system.file("extdata", "Experiment1.txt",
package="ddCt"))
## you can also write [#你也可以写]
## sampdat <- new("SDMFrame",system.file("extdata", "Experiment1.txt",[#sampdat < - 新(的“SDMFrame”。系统(“extdata”,“Experiment1.txt”]
## package="ddCt"))[#包=“DDCT”))]
## or with[#或与]
## sampdat <- readSDM(system.file("extdata", "Experiment1.txt",[#sampdat < - readSDM(。系统(“extdata”,“Experiment1.txt”]
## package="ddCt"))[#包=“DDCT”))]
## use the getter methods[#使用的getter方法]
sampleNames(sampdat)
## or the overloaded primitive accessors[#或超载的原始存取]
sampdat[1:3,"Sample"]
## see all unique samples[#看到所有独特的样品。]
uniqueSampleNames(sampdat)
## replace all sample names 'Sample1' and 'Sample2' in sampdat[#替换所有样品名称的SAMPLE1“和”的sample2在sampdat的。]
## with 'NewSample1' and 'NewSample2'[#NewSample1和NewSample2]
uniqueSampleNames(sampdat,c("Sample1","Sample2")) <- c("NewSample1","NewSample2")
uniqueSampleNames(sampdat)
## or use this syntax to replace the gene names[#或使用此语法来取代基因名称]
uniqueDetectorNames(sampdat) <- c(Gene1="NewGene1", Gene2="NewGene2")
uniqueDetectorNames(sampdat)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|