writeFASTQ(ChIPsim)
writeFASTQ()所属R语言包:ChIPsim
Write read sequences and qualities to a FASTQ formatted file
写读序列和素质到FASTQ格式的文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This is intended to produce the final output of the simulation by providing a fastq file that may then be used in an analysis pipeline.
这是为了生产提供了fastq文件,然后可以在分析管道使用最终输出模拟。
用法----------Usage----------
writeFASTQ(read, quality, name, file, append = FALSE)
参数----------Arguments----------
参数:read
List of read sequences.
读取序列名单。
参数:quality
List of read quality scores.
列表只读质量分数。
参数:name
Read names.
读的名字。
参数:file
File name. If this is “” results will be printed to the standard output connection.
文件的名称。如果这是“结果将被打印到标准输出连接。
参数:append
Logical indicating the reads should be appended to an existing file.
逻辑表示读取应追加到现有文件。
Details
详情----------Details----------
The first three arguments should have the same length but will be recycled if necessary.
前三个参数应该具有相同的长度,但如有必要将回收。
值----------Value----------
Called for its side effect.
呼吁其副作用。
作者(S)----------Author(s)----------
Peter Humburg
参见----------See Also----------
readSequence, readQualitySample, writeReads
readSequence,readQualitySample,writeReads
举例----------Examples----------
set.seed(1)
## generate sequence read and quality[#生成序列读取和质量。]
quality <- paste(sample(unlist(strsplit(rawToChar(as.raw(33:126)),"")),
36, replace = TRUE), collapse="")
read <- paste(sample(c("A", "C", "G", "T"), 36, replace = TRUE), collapse = "")
## write a fastq record[#写fastq纪录。]
writeFASTQ(read, quality, "read_1", file="")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|