Skip to content
Snippets Groups Projects
Commit 85e676b1 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Remove unnecessary columns on tpm table

parent e6676204
Branches
Tags
2 merge requests!41Develop,!40Remove.tpm.col
Pipeline #7904 failed with stages
in 1 hour, 46 minutes, and 44 seconds
......@@ -10,6 +10,9 @@ rm(option_list)
countTable <- read.csv(paste0(opt$repRID,".countData.countTable.csv"), stringsAsFactors=FALSE)
geneID <- read.delim("geneID.tsv", header=FALSE, stringsAsFactors=FALSE)
Entrez <- read.delim("Entrez.tsv", header=FALSE, stringsAsFactors=FALSE)
convert <- merge(x=Entrex,y=geneID,by.x="V1",by.y="V1",all.x=TRUE)
convert <- data.frame(geneID=countTable$Geneid)
convert <- merge(x=convert,y=geneID[,1:2],by.x="geneID",by.y="V2",all.x=TRUE)
......@@ -21,4 +24,4 @@ convert <- unique(convert)
output <- merge(x=convert,y=countTable,by.x="GeneID",by.y="Geneid",all.x=TRUE)
write.table(output,file=paste0(opt$repRID,".tpmTable.csv"),sep=",",row.names=FALSE,quote=FALSE)
\ No newline at end of file
write.table(output,file=paste0(opt$repRID,".tpmTable.csv"),sep=",",row.names=FALSE,quote=FALSE)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment