-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
34 changed files
with
430 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Ignore the workflow directories. | ||
/work/ | ||
/output/ | ||
/reduced-*/ | ||
|
||
# Python | ||
__pycache__ | ||
|
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
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
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
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
8 changes: 4 additions & 4 deletions
8
rules/output/worker/genes.spec.yaml → rules/output/annonars/genes.spec.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
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
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
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
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,45 @@ | ||
## Rules to create build annonars database subsets (dev/exomes). | ||
# | ||
# We will copy the full HPO (text and binary) but reduce the simulation count. | ||
|
||
|
||
def input_subset_annonars(wildcards): | ||
"""Input function for ``rule subset_annonars``.""" | ||
if wildcards.genome_release == "grch37": | ||
refseq_version = DV.refseq_37 | ||
else: | ||
refseq_version = DV.refseq_38 | ||
result = { | ||
"bed": ( | ||
f"output/reduced-{wildcards.set_name}/targets/{wildcards.genome_release}/" | ||
f"refseq/{refseq_version}/refseq_target_exons.bed" | ||
), | ||
"rocksdb_identity": ( | ||
f"output/full/annonars/{wildcards.name}-{wildcards.genome_release}-" | ||
f"{wildcards.version_multi}/rocksdb/IDENTITY" | ||
), | ||
} | ||
return result | ||
|
||
|
||
rule subset_annonars: # -- create exomes subset | ||
input: | ||
unpack(input_subset_annonars), | ||
output: | ||
rocksdb_identity="output/reduced-{set_name}/annonars/{name}-{genome_release}-{version_multi}/rocksdb/IDENTITY", | ||
wildcard_constraints: | ||
name=RE_NAME, | ||
genome_release=RE_GENOME, | ||
v_hpo=RE_VERSION, | ||
versions=RE_VERSION_MULTI, | ||
threads: int(os.environ.get("THREADS_ANNONARS_IMPORT", "96")) | ||
resources: | ||
runtime=os.environ.get("RUNTIME_ANNONARS_IMPORT", "48h"), | ||
mem_mb_per_cpu=2000, | ||
shell: | ||
r""" | ||
annonars db-utils copy \ | ||
--path-in $(dirname {input.rocksdb_identity}) \ | ||
--path-out $(dirname {output.rocksdb_identity}) \ | ||
--path-beds {input.bed} | ||
""" |
Oops, something went wrong.