Skip to content

Commit 3c76f5b

Browse files
add Quickstart (#75)
* quickstart * delete wrong readme * better readme * add time quickstart in readme
1 parent fd5f51f commit 3c76f5b

19 files changed

Lines changed: 49 additions & 79272 deletions

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ Get 80% of all standard (biomedical) data science analyses done semi-automated w
77
> [!IMPORTANT]
88
> If you use **MrBiomics**, please don't forget to give credit to the authors by citing this original repository and the respective **Modules** and **Recipes**.
99
10+
# ⚡ Getting started quickly !
11+
To get everything set up from scratch for the built-in quickstart, run:
12+
13+
```bash
14+
conda create -n snakemake -c conda-forge -c bioconda snakemake
15+
git clone https://github.com/epigen/MrBiomics.git
16+
cd MrBiomics
17+
conda activate snakemake
18+
snakemake --software-deployment-method conda --cores 1
19+
```
20+
21+
This creates a Snakemake environment, clones the repository, activates the environment, and executes the current default quickstart workflow. It will take around 10 minutes to run because it will download conda environments. If you want to learn more about the underlying analysis, start with the [Quickstart wiki page](../../wiki/Quickstart).
22+
1023
# ⏳ TL;DR - More Time for Science!
1124
> _"Programming is about trying to make the future less painful. It’s about making things easier for our teammates."_ from _The Pragmatic Programmer_ by Andy Hunt & Dave Thomas
1225
- **Why**: Time is the most precious resource. By taking care of efficiency (i.e., maximum output with limited resources) scientists can re-distribute their time to focus on effectiveness (i.e., the biggest impact possible).
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
name,features_path,background_name,background_path,group
2-
GDS289,docs/quickstart/GDS289_scores.csv,,,COPD
1+
name,features_path,background_name,background_path,group
2+
Bcell,docs/quickstart/data/Bcell_up_features.bed,all_regions,docs/quickstart/data/ALL_features.bed,hematopoietic
3+
Ery,docs/quickstart/data/Ery_up_features.bed,all_regions,docs/quickstart/data/ALL_features.bed,hematopoietic
4+
Mono,docs/quickstart/data/Mono_up_features.bed,all_regions,docs/quickstart/data/ALL_features.bed,hematopoietic
5+
CD8,docs/quickstart/data/CD8Tcell_up_features.bed,all_regions,docs/quickstart/data/ALL_features.bed,hematopoietic

config/quickstart/quickstart_enrichment_analysis_config.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
##### RESOURCES #####
3-
mem: '4000'
3+
mem: 4000
44
threads: 1
55

66
##### GENERAL #####
@@ -21,9 +21,7 @@ genome: 'hg38'
2121
# Enrichr (https://maayanlab.cloud/Enrichr/#libraries)
2222
# JSON example content: { "MyDB_Term1": ["geneA","geneB","geneC"],"MyDB_Term2": ["geneX","geneY","geneZ"]}
2323
local_databases:
24-
GO_Biological_Process_2023: "docs/quickstart/GO_Biological_Process_2023.gmt"
25-
GO_Cellular_Component_2023: "docs/quickstart/GO_Cellular_Component_2023.gmt"
26-
GO_Molecular_Function_2023: "docs/quickstart/GO_Molecular_Function_2023.gmt"
24+
Azimuth_2023: "resources/Azimuth_2023.gmt"
2725

2826
## LOLA compatible region set databases
2927
# loaded using loadRegionDB() (https://code.databio.org/LOLA/reference/loadRegionDB.html)
@@ -102,9 +100,9 @@ column_names:
102100
term: 'Term'
103101
GREAT:
104102
top_n: 25
105-
p_value: "p_value_hyper" # or binomial test result: p_value
106-
adj_pvalue: "p_adjust_hyper" # or binomial test result: p_adjust
107-
effect_size: "fold_enrichment_hyper" # or binomial test result: fold_enrichment
103+
p_value: "p_value" # or binomial test result: p_value
104+
adj_pvalue: "p_adjust" # or binomial test result: p_adjust
105+
effect_size: "fold_enrichment" # or binomial test result: fold_enrichment
108106
overlap: "observed_region_hits" # or binomial test result: observed_gene_hits
109107
term: "description"
110108
LOLA:
@@ -135,13 +133,13 @@ column_names:
135133
adjp_th:
136134
ORA_GSEApy: 0.05
137135
preranked_GSEApy: 0.05
138-
GREAT: 0.01
136+
GREAT: 0.05
139137
LOLA: 0.01
140138
pycisTarget: 5 # keep results greater(!) than provided threshold
141139
RcisTarget: 5 # keep results greater(!) than provided threshold
142140

143141
# number of top terms per feature set within each group for all overview plots (adjusted p-value, effect-size and bubble-heatmap)
144-
top_terms_n: 5
142+
top_terms_n: 1
145143

146144
# cap for adjusted p-value plotting: -log10(adjusted p-value) > adjp_cap -> adjp_cap
147145
adjp_cap: 4
@@ -154,4 +152,4 @@ or_cap: 5
154152
nes_cap: 5
155153

156154
# hierarchical cluster flag for summary plots (0=no; 1=yes)
157-
cluster_summary: 1
155+
cluster_summary: 1

docs/quickstart/data/Bcell_up_features.bed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11148,4 +11148,4 @@ chr1 145828289 145829119 CONS00000012863
1114811148
chrX 79408643 79409378 CONS00000289835
1114911149
chr16 1469575 1470343 CONS00000243904
1115011150
chr11 908174 908720 CONS00000189193
11151-
chr2 47652192 47652735 CONS00000029976
11151+
chr2 47652192 47652735 CONS00000029976

0 commit comments

Comments
 (0)