画差异基因的染色体分布

作者: 苏牧传媒 | 来源:发表于2018-12-24 16:07 被阅读33次

颜色:http://www.5tu.cn/colors/yansezhongwenming.html

网站:http://mg2c.iask.in/mg2c_v2.0/

R中取得两个文件:

setwd("D:/biodata/chrplots")

getwd()

allgene <- read.table("gene.good.bed",header=F,sep="\t",row.names = 1)

gene <- read.table("gene.txt",header=F,sep="\t")

result <- allgene[t(gene),]

write.table(result,file="result.txt",quote = F,sep = "\t",col.names=F)

allgene:

gene.txt:

mm10.chrom.sizes:

result.txt: 

截图

相关文章

网友评论

    本文标题:画差异基因的染色体分布

    本文链接:https://www.haomeiwen.com/subject/yjuzkqtx.html