readGeneExp(DEGseq)
readGeneExp()所属R语言包:DEGseq
readGeneExp: read gene expression values to a matrix
readGeneExp:读取基因的表达值矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This method is used to read gene expression values from a file to a matrix in R workspace. So that the matrix can be used as input of other packages, such as edgeR. The input of the method is a file that contains gene expression values.
此方法用于从一个文件到研发工作区矩阵读取基因的表达值。因此,矩阵可以用于其他的软件包,如磨边,输入。该方法的输入是一个文件,其中包含基因的表达值。
用法----------Usage----------
readGeneExp(file, geneCol=1, valCol=2, label = NULL, header=TRUE, sep="")
参数----------Arguments----------
参数:file
file containing gene expression values.
文件包含基因的表达值。
参数:geneCol
gene id column in file.
文件中的基因ID列。
参数:valCol
expression value columns to be read in the file.
要读取文件中的表达式的值列。
参数:label
label for the columns.
列标签。
参数:header
a logical value indicating whether the file contains the names of the variables as its first line. See ?read.table.
一个逻辑值,指示是否该文件包含的变量的名称作为其第一线。看到?read.table。
参数:sep
the field separator character. If sep = "" (the default for read.table) the separator is white space, that is one or more spaces, tabs, newlines or carriage returns. See ?read.table.
字段分隔符。如果SEP =“(为read.table默认的)分隔是空白,这是一个或多个空格,制表符,换行符或回车。看到?read.table。
参见----------See Also----------
getGeneExp, GeneExpExample1000, GeneExpExample5000.
getGeneExp,GeneExpExample1000,GeneExpExample5000。
举例----------Examples----------
## If the data files are collected in a zip archive, the following[#如果数据文件被收集在一个zip档案,以下]
## commands will first extract them to the temporary directory.[#命令首先将它们解压到临时目录。]
geneExpFile <- system.file("extdata", "GeneExpExample1000.txt", package="DEGseq")
exp <- readGeneExp(file=geneExpFile, geneCol=1, valCol=c(7,9,12,15,18,8,10,11,13,16))
exp[30:35,]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|