转录组学

第四章,1:DNA操作Biostrings和BSgenome.H

2018-09-25  本文已影响0人  子鹿学生信

参考:Biostrings常量与序列容器http://blog.csdn.net/u014801157/article/details/24372449
Biostrings和BSgenome的使用体会_更新 http://blog.sina.com.cn/s/blog_61f013b80100vqyf.html

DNAString生成DNA对象,dna2rna()转换为RNA,transcribe()将dna转录成rna,rna2dna()rna转换成DNA, cDNA()对rna逆转录得到cDNA, codones查看rna三联子密码, complement()dna的互补链,reverseComplement()dna的反向互补链,reverse()dna的反向序列。
指定文件目录:filepath<-system.file("extdata","someORF.fa",package = "Biostrings")
chr22NON<-mask(Hsapiens$chr22,"N")
Paste_Image.png
alphabetFrequency(Hsapiens$chr22,baseOnly=TRUE)
Paste_Image.png Paste_Image.png Paste_Image.png Paste_Image.png

格式为:
A data frame with 247899 rows and 6 columns, as follows.

sequence character probe sequence
x integer x-coordinate on the array
y integer y-coordinate on the array
Probe.Set.Name character Affymetrix Probe Set Name
Probe.Interrogation.Position integer Probe Interrogation Position
Target.Strandedness factor Target Strandedness
dict<-hgu133a2probe$sequence #将探针序列取出
length(dict) #所有探针数量
[1] 247899
unique(nchar(dict)) #几种探针长度
[1] 25
 dict[1:3] #查看前三个
[1] "CACCCAGCTGGTCCTGTGGATGGGA" "GCCCCACTGGACAACACTGATTCCT"
[3] "TGGACCCCACTGGCTGAGAATCTGG"

上一篇下一篇

猜你喜欢

热点阅读