file.cat(seqRFLP)
file.cat()所属R语言包:seqRFLP
Copy or concatenate files to one.
复制或连接到一个文件。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function could be used to concatenate the files in the given directory.
此功能可以用来连接在给定的目录中的文件。
用法----------Usage----------
file.cat(dir = NULL, appendix = ".fas", file = NULL)
参数----------Arguments----------
参数:dir
A string name the directory where files to be concatenated exist.
一个字符串名称的目录下的文件要连接的存在。
参数:appendix
The appendix that files to be concatenated have.
附录要连接的文件。
参数:file
The file name of the result to be save to.
结果的文件名保存。
Details
详细信息----------Details----------
Any plain text files that match the appendix could be concatenate or copy to one file.
任何纯文本文件匹配appendix的可能是的CONCATENATE或复制到一个文件中。
值----------Value----------
Copy all the contents of the files having the matched appendix to one file.
将匹配的附件文件到一个文件中的所有内容。
(作者)----------Author(s)----------
Jinlong zhang <a href="mailto:jinlongzhang01@gmail.com">jinlongzhang01@gmail.com</a>
Qiong Ding <a href="mailto:dingqiong1@gmail.com">dingqiong1@gmail.com</a>
参考文献----------References----------
None.
参见----------See Also----------
See Also raw2Fas for copying all different fasta file contents to one.
请参见raw2Fas复制所有不同的fasta格式文件的内容之一。
实例----------Examples----------
#### file.cat() example[###file.cat()的例子]
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna1.fas", sep = "\n")
cat(
">No304",
"ATTCGAAAAACACACCCACTACTAAAAATTATCAACCACT",
file = "dna2.fas", sep = "\n")
cat(
">No305",
"NTTCGAAAAACACACCCACTACTAAAANTTATCAGTCACT",
file = "dna3.fas", sep = "\n")
file.cat(dir = getwd(), appendix = ".fas", file = "total")
unlink("dna1.fas")
unlink("dna2.fas")
unlink("dna3.fas")
unlink("total.fas")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|