Skip to content

Commit ce87850

Browse files
committed
bugfix: callset imported without info.AF
1 parent acd05eb commit ce87850

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

v03_pipeline/lib/tasks/write_imported_callset.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@
2828
@luigi.util.inherits(BaseLoadingRunParams)
2929
class WriteImportedCallsetTask(BaseWriteTask):
3030
def complete(self) -> luigi.Target:
31-
return super().complete()
31+
# Handle case where callset was previously imported
32+
# with a different sex/relatedness flag.
33+
additional_row_fields = get_additional_row_fields(
34+
mt,
35+
self.reference_genome,
36+
self.dataset_type,
37+
self.skip_check_sex_and_relatedness,
38+
)
39+
return super().complete() and all(
40+
hasattr(ht, field) for field in additional_row_fields
41+
)
3242

3343
def output(self) -> luigi.Target:
3444
return GCSorLocalTarget(

0 commit comments

Comments
 (0)