File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change 28
28
@luigi .util .inherits (BaseLoadingRunParams )
29
29
class WriteImportedCallsetTask (BaseWriteTask ):
30
30
def complete (self ) -> luigi .Target :
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
- )
31
+ if super ().complete ():
32
+ mt = import_callset (
33
+ self .callset_path ,
34
+ self .reference_genome ,
35
+ self .dataset_type ,
36
+ )
37
+ # Handle case where callset was previously imported
38
+ # with a different sex/relatedness flag.
39
+ additional_row_fields = get_additional_row_fields (
40
+ mt ,
41
+ self .reference_genome ,
42
+ self .dataset_type ,
43
+ self .skip_check_sex_and_relatedness ,
44
+ )
45
+ return all (hasattr (mt , field ) for field in additional_row_fields )
46
+ return False
42
47
43
48
def output (self ) -> luigi .Target :
44
49
return GCSorLocalTarget (
You can’t perform that action at this time.
0 commit comments