Skip to content

Commit

Permalink
add header line to deg counts file
Browse files Browse the repository at this point in the history
  • Loading branch information
LMBradford committed Oct 3, 2024
1 parent 041f370 commit 18bea3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rmd/summary_report_new.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ A count matrix containing the $`r num_passed_total`$ samples that passed QC was
# read in contrasts
exp_contrasts <- R.ODAF.utils::get_contrasts(file.path(paths$contrasts, params$contrasts_file), paths)
deg_counts <- read.delim(file.path(paths$summary, "DEG_counts.txt"), sep = "\t", stringsAsFactors = FALSE, header = FALSE)
deg_counts <- read.delim(file.path(paths$summary, "DEG_counts.txt"), sep = "\t", stringsAsFactors = FALSE, header = TRUE)
if (!is.na(params$reports_facet)) {
colnames(deg_counts) <- c(params$reports_facet, "Contrast", "DEGs", "Downregulated", "Upregulated")
Expand Down
3 changes: 2 additions & 1 deletion scripts/run_DESeq2.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ if (params$parallel) {
)
}

# Write summary counts to a file
write.table(summary_counts,
file = file.path(paths$summary, "DEG_counts.txt"),
quote = FALSE, sep = "\t", col.names = FALSE, row.names = FALSE)
quote = FALSE, sep = "\t", col.names = TRUE, row.names = FALSE)

0 comments on commit 18bea3c

Please sign in to comment.