Skip to content

Commit f5ba543

Browse files
Fixes of main worklflow
1 parent 3034b1f commit f5ba543

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ mode: all
22
samples_file: samples.tsv
33
vcf_file: vcf/merged.vcf.gz
44
reference:
5-
ref_dir: /media_ssd/ref
5+
ref_dir: /media/ref
66
GRCh37_fasta: human_g1k_v37.fasta
77
GENETIC_MAP: tables/genetic_map_hg19_withX.txt.gz
88
vcfRef: 1000genome/bcf/1000genome_chr{chrom}.bcf

rules/relatives.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ rule merge_matches:
124124
rule merge_ibd_segments:
125125
input:
126126
germline=rules.merge_matches.output[0],
127-
true_ibd=rules.simulate.output.seg
128127
params:
129128
cm_dir='cm',
130129
merge_gap='0.6',
131-
use_true_ibd=use_simulated_ibd
130+
use_true_ibd=use_simulated_ibd,
131+
true_ibd='pedsim/simulated/data.seg' # it is in the params because in the case of true data we do not have this information
132132
output:
133133
ibd='ibd/merged_ibd.tsv'
134134
conda: "../envs/evaluation.yaml"

scripts/merge_ibd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
germline_path = snakemake.input['germline']
77
map_dir = snakemake.params['cm_dir']
88
gap = float(snakemake.params['merge_gap'])
9-
pedsim_path = snakemake.input['true_ibd']
9+
pedsim_path = snakemake.params['true_ibd']
1010

1111
use_true_ibd = bool(snakemake.params['use_true_ibd'])
1212
if not use_true_ibd:

0 commit comments

Comments
 (0)