gabrielodom / pathwayPCA

integrative pathway analysis with modern PCA methodology and gene selection
https://gabrielodom.github.io/pathwayPCA/
11 stars 2 forks source link

The read_gmt() Function does not remove carriage returns #11

Closed gabrielodom closed 6 years ago

gabrielodom commented 6 years ago

In the .gmt files I've encountered, there is a \r carriage return expression in addition to the \n newline expression. When the lines are read into a character vector, this \r is appended to the last gene in the pathway. This hasn't caused any bugs however, because R drops the "\r" from any character string it evaluates. Still a problem though.

gabrielodom commented 6 years ago

Added a gsub call to remove this \r expression from the last gene in each line.