fmicompbio / monaLisa

binned motif enrichment analysis and visualisation
https://fmicompbio.github.io/monaLisa/
GNU General Public License v3.0
36 stars 6 forks source link

Stab sel #5

Closed machlabd closed 5 years ago

machlabd commented 5 years ago

added stability selection functions, made findmotifHits accept Granges object, and updated the vignette accordingly.

mbstadler commented 5 years ago

Wow, great work!

I am going through each file and I am writing my feedback as comments here. I may also correct typos, e.g. in the documentation and push them, but I will not modify the code itself.

compbio-lisa.Rproj:

R/stability_selection.R:

DESCRIPTION: looks good - I just modified the Description to better represent the current content of lisa, and I added parallel to Imports (see comment above).

mbstadler commented 5 years ago

NAMESPACE and .Rd files: I am not commenting on these files as they are autogenerated by Roxygen.

R/plotting.R:

mbstadler commented 5 years ago

tests/testthat/test_randomized_stabsel.R:

vignettes/lisa.Rmd:

mbstadler commented 5 years ago

R/motif_finding.R:

example data:

R CMD check:

These seem easy to fix - let me know if you would like me to also work on some of them.

mbstadler commented 5 years ago

I just fixed the unit test for get_numberOfTFBS_perSeqName

machlabd commented 5 years ago

Thank you for the feedback! So far I've incorporated fixes into R/plotting.R:

machlabd commented 5 years ago

One other comment I forgot: In the stability selection procedure I now use homer 4.10, but the rest of the vignette uses 4.8. Should we be consistent with one of the two?

machlabd commented 5 years ago

R/stability_selection.R:

tests/testthat/test_randomized_stabsel.R:

R/motif_finding.R:

vignettes/lisa.Rmd:

mbstadler commented 5 years ago

I have implemented some of your suggestions in the vignette, and also removed some warnings about missing imports by adding them in R/stability_selection.R (Roxygen will add them to NAMESPACE).

Biostrings needs to be in Imports rather than Suggests, as it is used e.g. by findMotifHits.

I will now look into unit test coverage.