Skip to content

Commit

Permalink
Avoiding check.names while reading data. Thanks to Guillaume Noell fo…
Browse files Browse the repository at this point in the history
…r the hint
  • Loading branch information
eandresleon committed Dec 18, 2017
1 parent d484f69 commit ad997df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/CbBio/RNASeq/R-Scripts/DE_EdgeR.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ DE_EdgeR<-function(projectdir,dir,file,targetfile,label,contrastfile, filter, cp
#Importing the data
workingDir<-projectdir
setwd(workingDir)
data <- read.table(file, header=TRUE, sep="\t")

#added check.names=F suggested by Guillaume Noell
data <- read.table(file, header=TRUE, sep="\t",check.names=F)
data<-data[,sort(colnames(data))]


Expand Down
3 changes: 2 additions & 1 deletion lib/CbBio/RNASeq/R-Scripts/DE_noiseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ DE_noiseq<-function(projectdir,dir,file,targetsfile,label,filter,contrastfile,le
#Importing the data
workingDir<-dir
setwd(workingDir)
data<-read.table(file=file, sep="\t", header=T)
#added check.names=F suggested by Guillaume Noell
data<-read.table(file=file, sep="\t", header=T,check.names=F)
#Checking any additional data provided to use in data exploration
if(!missing(lenghtfile)){
mylength<-read.table(file=lenghtfile, sep="\t", header=T)
Expand Down
3 changes: 2 additions & 1 deletion lib/CbBio/RNASeq/R-Scripts/QC_EdgeR.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ QC_EdgeR<-function(projectdir,dir,file,targetfile,label,filter, cpmvalue=1, rept
workingDir<-dir
setwd(workingDir)
filepath<-file.path(workingDir,file)
data <- read.table(filepath, header=TRUE, sep="\t")
#added check.names=F suggested by Guillaume Noell
data <- read.table(filepath, header=TRUE, sep="\t",check.names=F)

data<-data[,sort(colnames(data))]

Expand Down

0 comments on commit ad997df

Please sign in to comment.