我爱抄作业
#改进版本
human_gene <- c("PTPRC", "EPCAM", "MME", "CD3G", "CD3E", "CD68", "CD79A", "RP11-34P13.8") #若干人类基因
upper_low <- function(var) {
var = tolower(var)
first_letter = toupper( substr(var ,1 ,1) )
word = paste0(first_letter ,substring(var ,2 ))
return(word)
}
mouse_gene = sapply(human_gene, upper_low)
2.在R包homologene里有张基因对应表 同时已经有可以转换的代码可用 homologene(genes, inTax, outTax) genes:需要查找同源基因的基因列表 inTax:输入基因所属物种 outTax:查找的同源基因属于那个物种
3.NCBI homologene 有四万多对同源基因的对应表;简书链接附上 https://www.jianshu.com/p/877d6f3cc799?ivk_sa=1024320u
4.R包 biomart转换
hsa2mus_all <- getLDS(attributes = c("hgnc_symbol"),
filters = "hgnc_symbol",
values = hsaGeneInfo$symbol,
mart = human,
attributesL = c("mgi_symbol"),
martL = mouse,uniqueRows = T)
head(hsa2mus_all)
length(hsaGeneInfo$symbol)
nrow(hsa2mus_all)
5.ensymble实现 https://www.ensembl.info/2009/01/21/how-to-get-all-the-orthologous-genes-between-two-species/
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/230908.html原文链接:https://javaforall.cn