Skip to content

Commit a4b08bb

Browse files
authored
Merge pull request #935 from broadinstitute/relatedness-check-metadata
add relatedness check file path to metadata.json
2 parents ed4364f + b899cc0 commit a4b08bb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

v03_pipeline/lib/tasks/write_metadata_for_run.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
import luigi
55
import luigi.util
66

7-
from v03_pipeline.lib.paths import metadata_for_run_path
7+
from v03_pipeline.lib.paths import (
8+
metadata_for_run_path,
9+
relatedness_check_tsv_path,
10+
)
811
from v03_pipeline.lib.tasks.base.base_project_info_params import (
912
BaseLoadingRunWithProjectInfoParams,
1013
)
@@ -52,6 +55,11 @@ def run(self) -> None:
5255
'relatedness_check': {},
5356
'sex_check': {},
5457
},
58+
'relatedness_check_file_path': relatedness_check_tsv_path(
59+
self.reference_genome,
60+
self.dataset_type,
61+
self.callset_path,
62+
),
5563
}
5664
for remapped_and_subsetted_callset in self.input():
5765
callset_mt = hl.read_matrix_table(remapped_and_subsetted_callset.path)

v03_pipeline/lib/tasks/write_metadata_for_run_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import luigi.worker
44

55
from v03_pipeline.lib.model import DatasetType, ReferenceGenome, SampleType
6+
from v03_pipeline.lib.paths import relatedness_check_tsv_path
67
from v03_pipeline.lib.tasks.write_metadata_for_run import WriteMetadataForRunTask
78
from v03_pipeline.lib.test.mocked_dataroot_testcase import MockedDatarootTestCase
89

@@ -70,5 +71,10 @@ def test_write_metadata_for_run_task(self) -> None:
7071
},
7172
'run_id': 'run_123456',
7273
'sample_type': SampleType.WGS.value,
74+
'relatedness_check_file_path': relatedness_check_tsv_path(
75+
ReferenceGenome.GRCh38,
76+
DatasetType.SNV_INDEL,
77+
TEST_VCF,
78+
),
7379
},
7480
)

0 commit comments

Comments
 (0)