Entering edit mode
4.0 years ago
Bioinfonext
▴
460
Hello,
I am using below R code to extract count data for multiple samples from a file but not able to write as a matrix could you please help with it?
data = read.table("DESeq2-Norm-Count-Table.txt",header=T,sep='\t',check.names=F)
> otu.list = read.table("Aman_root_gene.list.txt",header=F,sep='\t',check.names=F)
> i <- row.names(data) %in% otu.list[[1]]
> dim(data[i, ])
[1] 25 72
> write.table(i,"Aman_root_25.gene.txt",sep="\t")
Many thanks
Please show content of that file.