Skip to content

Commit

Permalink
snakefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed Dec 5, 2023
1 parent 2e1deec commit b5ac677
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pipelines/preprocess_no_qc.snakefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
include: "preprocessing/preprocess.snakefile"


rule all:
input:
preprocessed_dir / "genotypes.h5",
norm_variants_dir / "variants.tsv.gz",
variants=norm_variants_dir / "variants.parquet",


rule preprocess_no_qc:
input:
variants=norm_variants_dir / "variants.tsv.gz",
Expand Down
5 changes: 3 additions & 2 deletions pipelines/preprocessing/preprocess.snakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from pathlib import Path


configfile: "config/deeprvat_preprocess_config.yaml"


load_samtools = config.get("samtools_load_cmd") or ""
load_bcftools = config.get("bcftools_load_cmd") or ""
zcat_cmd = config.get("zcat_cmd") or "zcat"
Expand Down Expand Up @@ -37,9 +39,8 @@ qc_filtered_samples_dir = qc_dir / "filtered_samples"


with open(config["vcf_files_list"]) as file:

vcf_files = [Path(line.rstrip()) for line in file]
vcf_stems = [vf.stem.replace(".vcf","") for vf in vcf_files]
vcf_stems = [vf.stem.replace(".vcf", "") for vf in vcf_files]

assert len(vcf_stems) == len(vcf_files)

Expand Down

0 comments on commit b5ac677

Please sign in to comment.