Skip to content

Commit

Permalink
moved dds_raw outside the if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitjohnson committed Apr 10, 2020
1 parent 6ba0804 commit 212c1a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/arseq.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 81,11 @@ arseq <- function(data,meta,design, contrast, dds=NULL, qc= TRUE, dgea=TRUE, var
print("Generating the DESeq object")
dds <- DESeqDataSetFromMatrix(countData = data, colData = meta, design = design)
dds <- DESeq(dds)
dds_raw <- dds
}

# to return
dds_raw <- dds

# Get the normalized matrix for heatmaps
print("Normalizing data and saving the normalized data")
n_data <- log2(counts(dds, normalized=TRUE) 1)
Expand Down

0 comments on commit 212c1a6

Please sign in to comment.