nsheff / LOLA

Locus Overlap Analysis: Enrichment of Genomic Ranges
http://code.databio.org/LOLA
70 stars 19 forks source link

runLOLA results table for PEP databases #31

Open joseverdezoto opened 4 years ago

joseverdezoto commented 4 years ago

As of now, the runLOLA() results table displays columns defined in the index.txt file (e.g tissue, antibody). If the PEP sample annotation sheet doesn't contain those fields, the overlaps and fisher scores can be calculated but the function will crash when writing the results table.

Perhaps we could make this aspect of runLOLA() more flexible so that it accepts any fields the user provides in the PEP sample_annotation.csv file.

https://github.com/nsheff/LOLA/blob/6d5111a6ee1dbebca5bc8414b30b67617cc69c29/R/calcLocEnrichment.R#L180-L185