varemo / piano

piano - An R/Bioconductor package for gene set analysis
https://varemo.github.io/piano/
12 stars 4 forks source link

Use tab-separator for scan? #1

Closed florianduclot closed 6 years ago

florianduclot commented 6 years ago

https://github.com/varemo/piano/blob/76373cf18b631e57b5eb2f5f2612b3ee4b1534c2/R/loadGSC.R#L107

As .gmt files are tab-delimited, shouldn't this scan be using sep = "\t"?

My .gmt file (http://download.baderlab.org/EM_Genesets/current_release/Mouse/symbol/Mouse_AllPathways_November_01_2017_symbol.gmt) was not parsed correctly by loadGSC(), but using sep = "\t" fixed it.

varemo commented 6 years ago

It has been working on other .gtm files that I have tested. But if it fails for the file you point that, that is certainly an issue! I will check this asap. Probably you are correct, regarding the sep = "\t", just need to verify that it works for all .gmt files. Thanks for reporting!

florianduclot commented 6 years ago

Thanks for looking at it!

varemo commented 6 years ago

Haven't forgotten about this, but got swamped with other work. Will get back to this after the holidays. I guess (hope) it is not a show stopper for you at this point anyways...

florianduclot commented 6 years ago

No problem for me, I made the change locally and it has been working fine for me since!

Thanks!

varemo commented 6 years ago

Now fixed and included in all branches! Should propagate to Bioconductor within a few days. Thanks again for pointing this out.