[英]How do I call a data frame by Gene IDs from RNAseq data in R when gene names are duplicated?
[英]Extract data of several gene sets from an RNAseq result summary file using R
我想我得到了解決方案,盡管我仍然需要一一處理這些列表。 無論如何,它比 Excel 快。 :)
# read the RNAseq result summary file
result <- read_excel("RNAseq_Result.xlsx")
# read the gene lists file
geneset <- read_excel("Gene set list.xlsx")
# read one specific list from the gene lists file
ListA <- geneset$ListA
#subsetting
ResultListA <- result[(result$Gene_name) %in% ListA, ]
#output file
write.csv(ResultListA, 'ResultListA.csv')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.