Skip to content

Commit 1d876e3

Browse files
committed
all validations
1 parent 7989e59 commit 1d876e3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

v03_pipeline/lib/tasks/validate_callset.py

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

55
from v03_pipeline.lib.misc.validation import (
6+
ALL_VALIDATIONS,
67
SKIPPABLE_VALIDATIONS,
78
SeqrValidationError,
89
)
@@ -31,7 +32,8 @@ class ValidateCallsetTask(BaseUpdateTask):
3132
def validation_dependencies(self) -> dict[str, hl.Table]:
3233
deps = {}
3334
if (
34-
'validate_sample_type' not in self.validations_to_skip
35+
ALL_VALIDATIONS not in self.validations_to_skip
36+
and 'validate_sample_type' not in self.validations_to_skip
3537
and self.dataset_type.can_run_validation
3638
):
3739
deps['coding_and_noncoding_variants_ht'] = hl.read_table(
@@ -62,7 +64,8 @@ def output(self) -> luigi.Target:
6264
def requires(self) -> list[luigi.Task]:
6365
requirements = [self.clone(WriteImportedCallsetTask)]
6466
if (
65-
'validate_sample_type' not in self.validations_to_skip
67+
ALL_VALIDATIONS not in self.validations_to_skip
68+
and 'validate_sample_type' not in self.validations_to_skip
6669
and self.dataset_type.can_run_validation
6770
):
6871
requirements = [
@@ -101,7 +104,10 @@ def update_table(self, mt: hl.MatrixTable) -> hl.MatrixTable:
101104
),
102105
)
103106

104-
if not self.dataset_type.can_run_validation:
107+
if (
108+
ALL_VALIDATIONS in self.validations_to_skip
109+
or not self.dataset_type.can_run_validation
110+
):
105111
return mt.select_globals(
106112
callset_path=self.callset_path,
107113
validated_sample_type=self.sample_type.value,

0 commit comments

Comments
 (0)