Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runLOLA results table for PEP databases #31

Open
joseverdezoto opened this issue Oct 25, 2019 · 0 comments
Open

runLOLA results table for PEP databases #31

joseverdezoto opened this issue Oct 25, 2019 · 0 comments

Comments

@joseverdezoto
Copy link

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.

LOLA/R/calcLocEnrichment.R

Lines 180 to 185 in 6d5111a

orderedCols = c("userSet", "dbSet", "collection", "pValueLog", "oddsRatio",
"support", "rnkPV", "rnkOR", "rnkSup", "maxRnk", "meanRnk", "b", "c", "d",
"description", "cellType", "tissue", "antibody", "treatment", "dataSource", "filename")
unorderedCols = setdiff(colnames(scoreTable), orderedCols)
setcolorder(scoreTable, c(orderedCols, unorderedCols))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant