Skip to content

Commit

Permalink
Merge pull request #3 from adamd3/develop
Browse files Browse the repository at this point in the history
Enforce column types in contrasts file
  • Loading branch information
adamd3 authored Jan 25, 2024
2 parents 0e92724 + 734ac81 commit 032c336
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/diffexpr.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ meta_tab <- read.table(
)
contrast_tab <- read.table(
cont_tab_f,
header = TRUE, sep = "\t", stringsAsFactors = FALSE
header = TRUE, sep = "\t", stringsAsFactors = FALSE,
colClasses = rep("character", 2)
)

# remove whitespace
contrast_tab <- data.frame(
rbind(apply(contrast_tab, 2, function(x) gsub("\\s+", "", x)))
)
Expand Down

0 comments on commit 032c336

Please sign in to comment.