File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
v03_pipeline/lib/reference_data Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,10 @@ def download_and_import_latest_clinvar_vcf(
126
126
Env .HAIL_TMP_DIR ,
127
127
os .path .basename (tmp_file .name ),
128
128
)
129
- hfs .copy (tmp_file .name , cached_tmp_file_name )
129
+ # In cases where HAIL_TMP_DIR is a remote path, copy the
130
+ # file there. If it's local, do nothing.
131
+ if tmp_file .name != cached_tmp_file_name :
132
+ hfs .copy (tmp_file .name , cached_tmp_file_name )
130
133
mt = hl .import_vcf (
131
134
cached_tmp_file_name ,
132
135
reference_genome = reference_genome .value ,
@@ -189,7 +192,10 @@ def download_and_import_clinvar_submission_summary() -> hl.Table:
189
192
Env .HAIL_TMP_DIR ,
190
193
os .path .basename (unzipped_tmp_file .name ),
191
194
)
192
- hfs .copy (unzipped_tmp_file .name , cached_tmp_file_name )
195
+ # In cases where HAIL_TMP_DIR is a remote path, copy the
196
+ # file there. If it's local, do nothing.
197
+ if unzipped_tmp_file .name != cached_tmp_file_name :
198
+ hfs .copy (unzipped_tmp_file .name , cached_tmp_file_name )
193
199
return import_submission_table (cached_tmp_file_name )
194
200
195
201
You can’t perform that action at this time.
0 commit comments