Skip to content

Commit

Permalink
remove debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Feb 13, 2024
1 parent a6a3843 commit a16d119
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/gopreprocess/goa_annotation_creation_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def generate_annotation(
# PR:Q9DAQ4-1 = UniProtKB:Q9DAQ4-1
if isoform:
pr_id = protein_xrefs[str(annotation.subject.id)]
print("pr_id", pr_id)
print("parent_xrefs", parent_xrefs[pr_id])
print("annotation.subject.id", annotation.subject.id)
# print("pr_id", pr_id)
# print("parent_xrefs", parent_xrefs[pr_id])
# print("annotation.subject.id", annotation.subject.id)
# PR:Q9DAQ4-1 = MGI:MGI:1918911
mgi_id = parent_xrefs[pr_id]
new_gene = Curie(namespace=mgi_id.split(":")[0], identity=mgi_id.replace("MGI:MGI:", "MGI:"))
Expand Down
8 changes: 3 additions & 5 deletions src/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def download_files(source_taxon: str, target_taxon: str) -> tuple[Path, Path, Pa
return ortho_path, source_gaf_path, target_gpi_path


def download_with_retry(target_directory_name, config_key, gunzip=True, retries=3, timeout=60):
def download_with_retry(target_directory_name, config_key, gunzip=True, retries=3):
attempt = 0
while attempt < retries:
try:
Expand All @@ -57,13 +57,11 @@ def download_file(target_directory_name: str, config_key: str, gunzip=False) ->
if gunzip:
file_path = pystow.ensure_gunzip(target_directory_name,
url=get_url(config_key),
force=True,
download_kwargs={"timeout": 60})
force=True)
else:
file_path = pystow.ensure(target_directory_name,
url=get_url(config_key),
force=True,
download_kwargs={"timeout": 60})
force=True)
return file_path


Expand Down

0 comments on commit a16d119

Please sign in to comment.