Comments (5)
I have sorted out the generate results script so that it just calls the gen_results function from MultiEWCE. I'm fairly confident that it would work well on other cases of multiple gene list EWCE. Just need to figure out how to do the vignettes for the package and then unit tests.
## Load data ##################################################################
phenotype_to_genes <- HPOExplorer::load_phenotype_to_genes("data/phenotype_to_genes.txt")
ctd <- readRDS("data/CTD_Descartes_withplot.rds")
## Run analysis ################################################################
all_results <- MultiEWCE::gen_results(ctd,
phenotype_to_genes,
list_names = unique(phenotype_to_genes$Phenotype),
background_genes = unique(phenotype_to_genes$Gene),
list_name_column = "Phenotype",
gene_column = "Gene",
results_dir = "results_test_191021",
overwrite_past_analysis = FALSE,
reps = 100000,
annotLevel = 1,
genelistSpecies = "human",
cores = 8,
MergeResults = TRUE)
## Save merged results ##########################################################
saveRDS(all_results, paste0("HPO_EWCE_Results ",stringr::str_replace_all(Sys.time(),":",""),".rds"))
from rare_disease_celltyping.
@NathanSkene I made a dev branch and added a directory called Makefile, which contains:
- Makefile.R
- Writeup.Rmd - the markdown template for the report.
- source/ - contains the code needed to run all the steps end to end (create the CTD, generate results and then pass the results to the markdown and knit it).
The only problem is, I haven't been able to test the final step as I don't have a complete set of results and the Writeup.Rmd is expecting a lot of cardiac terms. I almost got it to work by swapping everything to bladder related terms but a few parts still tripped up.
from rare_disease_celltyping.
Awesome work @ovrhuman! Once it's ready, I can help take a look over it and make edits/suggestions as needed
from rare_disease_celltyping.
Looks much more like what we need! Is it clear enough how to setup the vignette and unit tests?
from rare_disease_celltyping.
@bschilder Nice thanks that would be really helpful!
@NathanSkene Thanks, yeah I'm going to use the "Making your first R package" guide you sent me. I think I have an idea of what it will cover. I don't have a lot of ideas for unit tests yet but i'm imagining that I will come up with more once I start making them.
from rare_disease_celltyping.
Related Issues (20)
- Graphs showing relationship between celltype enrichment strengths + ontology level, should use violin plots HOT 2
- Add some graphs showing the range of ontology terms associated with some cell types HOT 4
- Cell_select_interactive: `Error:`loops` is `FALSE`, but `x` contains loops. ` HOT 8
- Show that cell type enrichments become purer as you move towards leaf nodes HOT 13
- Document all the functions in Roxygen style https://github.com/ovrhuman/RD_EWCE_Website_and_apps HOT 1
- Add the markdown document of MSc Report to the github repo so we can start editing that HOT 1
- Improve app speed HOT 2
- Improve function coding practices HOT 3
- Replace rda files with rds
- Look into use of Snakemake for the make file: could it also be used in place of the EWCEwrapper functions? HOT 1
- Cleanly separate functions from scripts + ensure all functions pass dev::check() HOT 13
- Currently when looping through the phenotypes, it crashes and has to be restarted whenever there is an error (e.g. not enough genes in the list). Add try-catch statements and make a log record. HOT 1
- Group plots into larger figures HOT 5
- Cut the words in the paper back to 2500 to fit with requirements for science report submission HOT 5
- Figures must be legible when reduced to 5.5cm or 12cm wide, with resolution of 150 to 300 dots per inch (dpi) HOT 1
- Make this plot with log(fold change) to reduce effect of outliers HOT 1
- For the recurrent infection plots, set scale_y=free HOT 3
- In Fig 3a,b,c, remove the "other" line... it isn't required and isn't really in contrast to the phenotypes HOT 1
- Find regulator genes HOT 2
- Engage with rare disease community HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rare_disease_celltyping.