Skip to content

Commit

Permalink
does this work
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 11, 2024
1 parent 7912ae2 commit 833e1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakePipes/shared/rscripts/DE_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ checktable <- function(countdata = NA, sampleSheet = NA, alleleSpecific = FALSE,
DESeq_basic <- function(countdata, coldata, fdr, alleleSpecific = FALSE, from_salmon = FALSE, size_factors=NA, customFormula=NA) {
cnames.sub<-unique(colnames(coldata)[2:which(colnames(coldata) %in% "condition")])

if(is.na(customFormula)){
if(is.na(customFormula)|customFormula==""){
d<-as.formula(noquote(paste0("~",paste(cnames.sub,collapse="+"))))
} else {

Expand Down Expand Up @@ -150,7 +150,7 @@ DESeq_basic <- function(countdata, coldata, fdr, alleleSpecific = FALSE, from_sa
#'
#'

DESeq_allelic <- function(countdata, coldata, fdr, from_salmon=FALSE) {
DESeq_allelic <- function(countdata, coldata, fdr, from_salmon=FALSE, customFormula=NA) {

# AlleleSpecific DEseq
print("Performing Allele-specific DESeq using Interaction design : Genome2 vs Genome1")
Expand Down

0 comments on commit 833e1e1

Please sign in to comment.