write2FASTA(ChIPpeakAnno)
write2FASTA()所属R语言包:ChIPpeakAnno
write sequences to a file in fasta format
FASTA格式的文件中写入序列
译者:生物统计家园网 机器人LoveR
描述----------Description----------
write the sequences obtained from getAllPeakSequence to a file in fasta format leveraging writeFASTA in Biostrings package. FASTA is a simple file format for biological sequence data. A FASTA format file contains one or more sequences and there is a header line which begins with a > proceeding each sequence.
写入FASTA格式凭借Biostrings包writeFASTA的从getAllPeakSequence到一个文件中获得的序列。 FASTA格式是一种简单的生物序列数据的文件格式。 FASTA格式文件包含一个或多个序列,并有一个标题行与此案>每个序列开始。
用法----------Usage----------
write2FASTA(mySeq, file="", width=80)
参数----------Arguments----------
参数:mySeq
RangedData with varibles name and sequence ,e.g., results obtained from getAllPeakSequence
肌的名称和顺序,例如RangedData,结果从getAllPeakSequence
参数:file
Either a character string naming a file or a connection open for reading or writing. If "" (the default for write2FASTA), then the function writes to the standard output connection (the console) unless redirected by sink
无论是字符串命名的文件或读或写打开连接。 “”如果(默认write2FASTA),然后函数写入到标准输出连接(控制台),除非汇重定向
参数:width
The maximum number of letters per line of sequence
的字母顺序每行的最大数量
值----------Value----------
Output as FASTA file format to the naming file or the console.
FASTA格式的文件格式来命名文件或控制台输出。
作者(S)----------Author(s)----------
Lihua Julie Zhu
举例----------Examples----------
peaksWithSequences = RangedData(IRanges(start=c(1000, 2000), end=c(1010, 2010),
names=c("id1", "id2")), sequence= c("CCCCCCCCGGGGG", "TTTTTTTAAAAAA"))
write2FASTA(peaksWithSequences, file="testseq.fasta", width=50)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|