Skip to content

Commit

Permalink
return(DEG) placement #2 (outside of ifelse loops
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryDigby committed Apr 23, 2021
1 parent dd7a64d commit 200898b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/DEA.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ DESeq2 <- function(inputdata, data_type){
for(var in contrasts){
contrast <- paste(var, "vs", reference, sep="_")
DEG <- getDESeqDEAbyContrast(dds, contrast, reference, var, outdir)
return(DEG)
}
}
}else if(data_type == "circRNA"){
Expand Down Expand Up @@ -272,12 +271,12 @@ DESeq2 <- function(inputdata, data_type){
for(var in contrasts){
contrast <- paste(var, "vs", reference, sep="_")
DEG <- getDESeqDEAbyContrast(dds, contrast, reference, var, outdir)
return(DEG)
}
}
}else{
giveError("Data type not provided correctly, check end of script")
}
return(DEG)
}


Expand Down

0 comments on commit 200898b

Please sign in to comment.