Skip to content

Commit

Permalink
Fix problems with illegal R column names
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Nov 19, 2023
1 parent 6b87b61 commit 6a64bd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion bin/reformat_count_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## License: MIT

library(dplyr)
mat <- read.table("circRNA_matrix.txt", sep="\t", header=T, stringsAsFactors=F)
mat <- read.table("circRNA_matrix.txt", sep="\t", header=T, stringsAsFactors=F, check.names=F)
mat$ID <- with(mat, paste0(Chr, sep=":", Start, sep="-", Stop, sep=":", Strand))
mat <- mat[,-c(1:4)]
mat1 <- mat %>% select(ID, everything())
Expand Down
2 changes: 0 additions & 2 deletions modules/local/count_matrix/combined/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ process COUNTS_COMBINED {
"${task.process}":
awk: \$(awk --version | head -n 1 | cut -d' ' -f3 | sed 's/,//g')
r-base: \$(echo \$(R --version 2>&1) | sed 's/^.*R version //; s/ .*\$//')
argparser: \$(Rscript -e "library(arparser); cat(as.character(packageVersion('argparser')))")
dplyr: \$(Rscript -e "library(dplyr); cat(as.character(packageVersion('dplyr')))")
python: \$(python --version | sed -e 's/Python //g')
END_VERSIONS
"""
}

0 comments on commit 6a64bd8

Please sign in to comment.