DNA序列 转换成 RNA序列
rm(list = ls())
rna = readLines("sample_data.txt")
rna
chartr("T","U",rna) # 或者用 gsub("T","U",rna)
data_rna = chartr("T","U",rna)
data_rna
write(data_rna,file = "data.txt")
rm(list = ls())
rna = readLines("sample_data.txt")
rna
chartr("T","U",rna) # 或者用 gsub("T","U",rna)
data_rna = chartr("T","U",rna)
data_rna
write(data_rna,file = "data.txt")
本文标题:2020-07-07
本文链接:https://www.haomeiwen.com/subject/uiwzqktx.html
网友评论