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

R语言 genomeIntervals包 getGffAttribute()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 19:20:57 | 显示全部楼层 |阅读模式
getGffAttribute(genomeIntervals)
getGffAttribute()所属R语言包:genomeIntervals

                                        Pull one or more key/value pairs from gffAttributes strings
                                         拉gffAttributes字符串的一个或多个键/值对

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

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

GFF files contain a string, with key/value pairs separated by “;”, and the key and value separated by “=”. This function quickly extracts one or more key/value pairs.
GFF文件包含一个字符串,分隔的键/值对的“;”,“=”分隔键和值。此功能快速提取一个或多个键/值对。


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


getGffAttribute(gi, attribute)



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

参数:gi
A Genome_intervals object.
一个Genome_intervals对象。


参数:attribute
A vector of key names.
键名的向量。


值----------Value----------

A matrix with the same number of rows as gi, and one column per element of attribute.
与gi,每一个元素attribute列相同数量的行矩阵。


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

See parseGffAttributes for more complete parsing. See the function readGff3 for loading a GFF file.
看到parseGffAttributes更完整的分析。看到功能readGff3加载GFF文件。


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



# Get file path[获取文件路径]
libPath <- installed.packages()["genomeIntervals", "LibPath"]
filePath <- file.path(
                   libPath,
                   "genomeIntervals",
                   "example_files"
                   )

# Load gff[加载GFF]
gff <- readGff3( file.path( filePath, "sgd_simple.gff"), isRightOpen=FALSE)

## head of full gff annotations[#全GFF注释头]
head(annotation(gff))

# extract ID and Parent attributes[提取ID和父属性]
idpa = getGffAttribute( gff, c( "ID", "Parent" ) )

head(idpa)



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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-7 12:10 , Processed in 0.030347 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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