Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Klinische Genetica
capture-lumc
hutspot
Commits
2417f521
Commit
2417f521
authored
Feb 19, 2019
by
Sander Bollen
Browse files
sanity check messages in Snakefile
parent
95edeb22
Changes
3
Hide whitespace changes
Inline
Side-by-side
Snakefile
View file @
2417f521
import json
from functools import partial
from os.path import join, basename
from pathlib import Path
from pyfaidx import Fasta
OUT_DIR = config.get("OUTPUT_DIR")
if OUT_DIR is None:
raise ValueError("You must set --config OUT_DIR=<path>")
REFERENCE = config.get("REFERENCE")
JAVA = config.get("JAVA")
if REFERENCE is None:
raise ValueError("You must set --config REFERENCE=<path>")
if not Path(reference).exists:
raise FileNotFoundError("Reference file does not exist.")
JAVA = config.get("JAVA") # TODO: should be handled by conda?!
if JAVA is None:
raise ValueError("You must set --config JAVA=<path>")
GATK = config.get("GATK")
if GATK is None:
raise ValueError("You must set --config GATK=<path>")
DBSNP = config.get("DBSNP")
if DBSNP is None:
raise ValueError("You must set --config DBSNP=<path>")
ONETHOUSAND = config.get("ONETHOUSAND")
if ONETHOUSAND is None:
raise ValueError("You must set --config ONETHOUSAND=<path>")
HAPMAP = config.get("HAPMAP")
if HAPMAP is None:
raise ValueError("You must set --config HAPMAP")
# these are all optional
BED = config.get("BED", "") # comma-separated list of BED files
REFFLAT = config.get("REFFLAT", "") # comma-separated list of refFlat files
FEMALE_THRESHOLD = config.get("FEMALE_THRESHOLD", 0.6)
...
...
requirements-dev.txt
0 → 100644
View file @
2417f521
pytest>=4.3.0
pytest-workflow>=1.1.0
\ No newline at end of file
tests/test_sanity_checks.yml
0 → 100644
View file @
2417f521
-
name
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment