找回密码
 注册
查看: 674|回复: 0

R语言 KCsmart包 write.table()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 22:52:13 | 显示全部楼层 |阅读模式
write.table(KCsmart)
write.table()所属R语言包:KCsmart

                                        Write summary of the significant regions to a table
                                         写总结的重要区域,以表

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Write summary of the significant regions to a table
写总结的重要区域,以表


用法----------Usage----------


write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
                 eol = "\n", na = "NA", dec = ".", row.names = TRUE,
                 col.names = TRUE, qmethod = c("escape", "double"), fileEncoding = "")
## S4 method for signature 'sigSegments'
write.table(x, file="", append = FALSE, quote = 7, sep = "\t", eol = "\n", na = "NA", dec = ".", row.names = TRUE, col.names=c("Status", "Chromosome", "Start", "End", "Average KC score", "Mode KC score", "Probes"), qmethod = c("escape", "double"))
## S4 method for signature 'compKcSigRegions'
write.table(x, file="", append = FALSE, quote = 7, sep = "\t", eol = "\n", na = "NA", dec = ".", row.names = FALSE, col.names=c("startrow", "endrow", "chromosome", "startposition", "endposition"), qmethod = c("escape", "double"))



参数----------Arguments----------

参数:x
The sigSegments object to be summarized
要总结sigSegments对象


参数:file
either a character string naming a file or a connection open for writing.  '""' indicates output to the console.
无论是一个字符串命名文件或写作中打开一个连接。 “”表示输出到控制台。


参数:append
logical. Only relevant if 'file' is a character string.  If 'TRUE', the output is appended to the file.  If 'FALSE', any existing file of the name is destroyed.
逻辑。唯一相关的,如果“文件”是一个字符串。如果“TRUE”,输出追加到文件。如果“假”,任何现有文件的名称被销毁。


参数:quote
a logical value ('TRUE' or 'FALSE') or a numeric vector.  If 'TRUE', any character or factor columns will be surrounded by double quotes.  If a numeric vector, its elements are taken as the indices of columns to quote.  In both cases, row and column names are quoted if they are written.  If 'FALSE', nothing is quoted.
一个逻辑值(true或假)或数字向量。如果“TRUE”,任何字符或因素列将用双引号包围。如果一个数值向量,其元素为引用的列的索引。在这两种情况下,行和列名报价,如果他们被写入。如果“假”,并没有被引用。


参数:sep
the field separator string.  Values within each row of 'x' are separated by this string.
字段分隔符字符串。 X的每一行内的值是由这个字符串分隔。


参数:eol
the character(s) to print at the end of each line (row).
(S)的字符打印在每一行(列)。


参数:na
the string to use for missing values in the data.
使用中的数据丢失值的字符串。


参数:dec
the string to use for decimal points in numeric or complex columns: must be a single character.
使用数字或复杂的列小数点的字符串必须是一个字符。


参数:row.names
either a logical value indicating whether the row names of 'x' are to be written along with 'x', or a character vector of row names to be written.
无论是一个逻辑值,指示是否要写入X,或者一个被写入的行名的字符向量X的行名。


参数:col.names
either a logical value indicating whether the column names of 'x' are to be written along with 'x', or a character vector of column names to be written.  See the section on 'CSV files' for the meaning of 'col.names = NA'.
无论是一个逻辑值,指示是否要写入X,或要写入的列名的字符向量X的列名。见“col.names = N的含义”CSV文件“一节。


参数:qmethod
a character string specifying how to deal with embedded double quote characters when quoting strings.  Must be one of '"escape"' (default), in which case the quote character is escaped in C style by a backslash, or '"double"', in which case it is doubled.  You can specify just the initial letter.
一个字符串,指定引用字符串时如何处理与嵌入式双引号字符。必须是一个“逃亡”(默认),在这种情况下,在C风格的反斜杠转义引号,或“双”“,在这种情况下,它一倍。您可以指定只的首字母。


参数:fileEncoding
character string: if non-empty declares the encoding to be used on a file (not a connection) so the character data can be re-encoded as they are written.  See file.
字符串:如果非空的声明文件(未连接)使用的字符数据,所以可以被重新编码为他们写的编码。看到file。


Details

详情----------Details----------

Writes a summary of the sigSegments object to file. The resulting table contains 7 columns. The interpretation of the columns is as follows:
总结写入一个的sigSegments对象的提交。结果表包含7列。列的解释如下:

Status Either 'L' for loss or 'G' for gain
损失或增益“G”的地位无论是“L”

Chromosome The chromosome on which this segment is located
染色体的该段位于染色体上

Start The start position (in base pairs) of the segment on the chromosome
在染色体上的开始段的起始位置(碱基对)

End The end position of the segment on the chromosome
在染色体上的结束段的结束位置

Average KC scoreThe average KCsmart score over all base pairs in this segment
平均架KC scoreThe平均KCsmart得分超过所有碱基对在这一领域

Mode KC scoreThe highest (for gains) or lowest (for losses) KCsmart score over all base pairs in this segment
架KC scoreThe最高模式(收益)或最低(损失)KCsmart得分在这一领域的所有碱基对的

Probes All probes from the original data that fall into this segment
所有探针探针从原始数据进入这一领域


作者(S)----------Author(s)----------


Jorma de Ronde



参见----------See Also----------

calcSpm, getSigSegments
calcSpm,getSigSegments


举例----------Examples----------


data(hsSampleData)
data(hsMirrorLocs)

spm1mb <- calcSpm(hsSampleData, hsMirrorLocs)

siglevel1mb <- findSigLevelTrad(hsSampleData, spm1mb, n=3)

sigSegments1mb <- getSigSegments(spm1mb, siglevel1mb)
write.table(sigSegments1mb, file=file.path(tempdir(),'sigSegments1mb.txt'))


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-5 07:49 , Processed in 0.021491 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表