-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
157 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
# cluster parameters | ||
partition: 'shortq' | ||
mem: '32G' | ||
threads: 2 | ||
|
||
|
||
|
||
##### GENERAL ##### | ||
project_name: "MR.PARETO" | ||
|
||
#### Workflows and datasets to include ### | ||
workflows: | ||
MyProject: | ||
unsupervised_analysis: "config/MyProject/MyProject_unsupervised_analysis_config.yaml" | ||
RNAseq: | ||
# ngs_fetch: "config/RNAseq/RNAseq_ngs_fetch_config.yaml" | ||
rnaseq_pipeline: "config/RNAseq/RNAseq_rnaseq_pipeline_config.yaml" | ||
genome_tracks: "config/RNAseq/RNAseq_genome_tracks_config.yaml" | ||
spilterlize_integrate: "config/RNAseq/RNAseq_spilterlize_integrate_config.yaml" | ||
unsupervised_analysis: "config/RNAseq/RNAseq_unsupervised_analysis_config.yaml" | ||
dea_limma: "config/RNAseq/RNAseq_dea_limma_config.yaml" | ||
enrichment_analysis: "config/RNAseq/RNAseq_enrichment_analysis_config.yaml" | ||
ATACseq: | ||
# ngs_fetch: "config/ATACseq/ATACseq_ngs_fetch_config.yaml" | ||
atacseq_pipeline: "config/ATACseq/ATACseq_atacseq_pipeline_config.yaml" | ||
genome_tracks: "config/ATACseq/ATACseq_genome_tracks_config.yaml" | ||
spilterlize_integrate: "config/ATACseq/ATACseq_spilterlize_integrate_config.yaml" | ||
unsupervised_analysis: "config/ATACseq/ATACseq_unsupervised_analysis_config.yaml" | ||
dea_limma: "config/ATACseq/ATACseq_dea_limma_config.yaml" | ||
enrichment_analysis: "config/ATACseq/ATACseq_enrichment_analysis_config.yaml" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
##### libraries ##### | ||
import os | ||
import sys | ||
import pandas as pd | ||
import yaml | ||
from snakemake.utils import min_version | ||
|
||
##### setup report ##### | ||
report: os.path.join("report", "workflow.rst") | ||
|
||
##### utility functions ##### | ||
|
||
##### set minimum snakemake version ##### | ||
min_version("7.15.2") | ||
|
||
##### set & load config and sample annotation sheets ##### | ||
configfile: os.path.join("config","config.yaml") | ||
|
||
# load configs for all workflows and datasets | ||
config_wf = dict() | ||
|
||
for ds in config["workflows"]: | ||
for wf in config["workflows"][ds]: | ||
with open(config["workflows"][ds][wf], 'r') as stream: | ||
try: | ||
config_wf[ds+'_'+wf]=yaml.safe_load(stream) | ||
except yaml.YAMLError as exc: | ||
print(exc) | ||
|
||
|
||
##### load rules (one per dataset) ##### | ||
include: os.path.join("rules", "ATACseq.smk") | ||
|
||
#### Target Rule #### | ||
|
||
rule all: | ||
input: | ||
#### ATACseq Analysis Recipe | ||
# rules.ATACseq_ngs_fetch_all.input, | ||
rules.ATACseq_atacseq_pipeline_all.input, | ||
rules.ATACseq_genome_tracks_all.input, | ||
rules.ATACseq_spilterlize_integrate_all.input, | ||
rules.ATACseq_unsupervised_analysis_all.input, | ||
rules.ATACseq_dea_limma_all.input, | ||
rules.ATACseq_enrichment_analysis_all.input, | ||
default_target: True | ||
params: | ||
# cluster parameters | ||
partition=config.get("partition"), | ||
threads: config.get("threads", 1) | ||
resources: | ||
mem_mb=1000, | ||
log: | ||
os.path.join("logs","rules","all.log") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# ATACseq Analysis Recipe | ||
|
||
# ### ATACseq - NGS Fetch (optional) #### | ||
# module ATACseq_ngs_fetch: | ||
# snakefile: | ||
# github("epigen/ngs_fetch", path="workflow/Snakefile", tag="v1.0.0") | ||
# config: | ||
# config_wf["ATACseq_ngs_fetch"] | ||
|
||
### ATACseq - ATAC-seq processing #### | ||
module ATACseq_atacseq_pipeline: | ||
snakefile: | ||
github("epigen/atacseq_pipeline", path="workflow/Snakefile", tag="v1.1.0") | ||
config: | ||
config_wf["ATACseq_atacseq_pipeline"] | ||
|
||
use rule * from ATACseq_atacseq_pipeline as ATACseq_atacseq_pipeline_* | ||
|
||
#### ATACseq - Genome Tracks #### | ||
module ATACseq_genome_tracks: | ||
snakefile: | ||
github("epigen/genome_tracks", path="workflow/Snakefile", tag="v1.0.1") | ||
config: | ||
config_wf["ATACseq_genome_tracks"] | ||
|
||
use rule * from ATACseq_genome_tracks as ATACseq_genome_tracks_* | ||
|
||
#### ATACseq - Spilterlize & Integrate #### | ||
module ATACseq_spilterlize_integrate: | ||
snakefile: | ||
github("epigen/spilterlize_integrate", path="workflow/Snakefile", tag="v1.2.0") | ||
config: | ||
config_wf["ATACseq_spilterlize_integrate"] | ||
|
||
use rule * from ATACseq_spilterlize_integrate as ATACseq_spilterlize_integrate_* | ||
|
||
### ATACseq - Unsupervised Analysis #### | ||
module ATACseq_unsupervised_analysis: | ||
snakefile: | ||
github("epigen/unsupervised_analysis", path="workflow/Snakefile", tag="v2.0.0") | ||
config: | ||
config_wf["ATACseq_unsupervised_analysis"] | ||
|
||
use rule * from ATACseq_unsupervised_analysis as ATACseq_unsupervised_analysis_* | ||
|
||
#### ATACseq - Differential Accessibility Analysis #### | ||
module ATACseq_dea_limma: | ||
snakefile: | ||
github("epigen/dea_limma", path="workflow/Snakefile", tag="v1.0.3") | ||
config: | ||
config_wf["ATACseq_dea_limma"] | ||
|
||
use rule * from ATACseq_dea_limma as ATACseq_dea_limma_* | ||
|
||
#### ATACseq - Enrichment Analysis #### | ||
module ATACseq_enrichment_analysis: | ||
snakefile: | ||
github("epigen/enrichment_analysis", path="workflow/Snakefile", tag="v1.0.1") | ||
config: | ||
config_wf["ATACseq_enrichment_analysis"] | ||
|
||
use rule * from ATACseq_enrichment_analysis as ATACseq_enrichment_analysis_* |