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

update plot pipeline with config file inputs #10

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions association_testing/pipeline/plot.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
DEEPRVAT_ANALYSIS_DIR = os.environ['DEEPRVAT_ANALYSIS_DIR']
py_deeprvat_analysis = f'python {DEEPRVAT_ANALYSIS_DIR}'

configfile: 'deeprvat_config.yaml'

phenotypes = config['phenotypes']
phenotypes = list(phenotypes.keys()) if type(phenotypes) == dict else phenotypes
training_phenotypes = config["training"].get("phenotypes", phenotypes)
n_repeats = config['n_repeats']

rule plot:
conda:
"r-env"
Expand All @@ -13,11 +20,12 @@ rule plot:
phenotype=phenotypes),
replication = "replication.parquet"
output:
"dicovery_replication_plot.png"
"discovery_replication_plot.png"
params:
results_dir = './',
results_dir_pattern = '',
code_dir = f'{DEEPRVAT_ANALYSIS_DIR}/association_testing'
code_dir = f'{DEEPRVAT_ANALYSIS_DIR}/association_testing',
max_rank = 1000
resources:
mem_mb=20480,
load=16000,
Expand Down