Skip to content

Commit a6ef086

Browse files
committed
Merge branch 'main' of github.com:broadinstitute/seqr-loading-pipelines into dev
2 parents 25db277 + c5c0682 commit a6ef086

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

v03_pipeline/lib/reference_datasets/clinvar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_submission_summary_ht() -> hl.Table:
113113
timeout=10,
114114
) as r:
115115
shutil.copyfileobj(r.raw, tmp_file)
116-
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
116+
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
117117
ht = hl.import_table(
118118
cloud_tmp_file,
119119
force=True,
@@ -168,7 +168,7 @@ def get_ht(
168168
delete=False,
169169
) as tmp_file, requests.get(clinvar_url, stream=True, timeout=10) as r:
170170
shutil.copyfileobj(r.raw, tmp_file)
171-
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
171+
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
172172
ht = vcf_to_ht(cloud_tmp_file, reference_genome)
173173
# Filter deletions present as single alleles
174174
ht = ht.filter(hl.len(ht.alleles) == BIALLELIC)

v03_pipeline/lib/reference_datasets/helix_mito.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_ht(
2323
delete=False,
2424
) as tmp_file, requests.get(url, stream=True, timeout=10) as r:
2525
shutil.copyfileobj(r.raw, tmp_file)
26-
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
26+
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
2727
ht = hl.import_table(
2828
cloud_tmp_file,
2929
types={

v03_pipeline/lib/reference_datasets/misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def copy_to_cloud_storage(file_name: str) -> str:
176176
if not Env.HAIL_TMP_DIR.startswith('gs://'):
177177
return file_name
178178
if os.path.isdir(file_name):
179-
path = os.path.join(Env.HAIL_TMP_DIR, file_name.lstrip('/'))
179+
cloud_storage_path = os.path.join(Env.HAIL_TMP_DIR, file_name.lstrip('/'))
180180
else:
181-
path = os.path.join(Env.HAIL_TMP_DIR, os.path.basename(file_name))
182-
hfs.copy(file_name, path)
183-
return path
181+
cloud_storage_path = os.path.join(Env.HAIL_TMP_DIR, os.path.basename(file_name))
182+
hfs.copy(file_name, cloud_storage_path)
183+
return cloud_storage_path

v03_pipeline/lib/reference_datasets/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_ht(path: str, reference_genome: ReferenceGenome) -> hl.Table:
2121
timeout=10,
2222
) as r:
2323
shutil.copyfileobj(r.raw, tmp_file)
24-
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
24+
cloud_tmp_file = copy_to_cloud_storage(tmp_file.name)
2525
ht = hl.import_table(
2626
cloud_tmp_file,
2727
no_header=True,

v03_pipeline/lib/tasks/delete_project_table.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ class DeleteProjectTableTask(BaseDeleteTableTask):
1414
project_guid = luigi.Parameter()
1515

1616
def requires(self) -> luigi.Task:
17-
return DeleteProjectFamilyTablesTask(
18-
self.reference_genome,
19-
self.dataset_type,
20-
self.sample_type,
21-
self.project_guid,
22-
)
17+
return self.clone(DeleteProjectFamilyTablesTask)
2318

2419
def output(self) -> luigi.Target:
2520
return GCSorLocalTarget(

0 commit comments

Comments
 (0)