Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Sep 28, 2023
1 parent 0ccab64 commit fab1142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion goatools/anno/annoreader_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import collections as cx
import logging

from ..base import logger
from ..anno.opts import AnnoOptions
from ..base import logger
from ..evidence_codes import EvidenceCodes
from ..godag.consts import NAMESPACE2NS
from ..gosubdag.go_tasks import get_go2parents_go2obj
Expand Down
4 changes: 1 addition & 3 deletions goatools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ def download_ncbi_associations(gene2go="gene2go", prt=sys.stdout, loading_bar=Tr
# Download: ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/gene2go.gz
gzip_file = "{GENE2GO}.gz".format(GENE2GO=gene2go)
if not isfile(gene2go):
file_remote = "ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/{GZ}".format(
GZ=os.path.basename(gzip_file)
)
file_remote = f"ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/{op.basename(gzip_file)}"
dnld_file(file_remote, gene2go, prt, loading_bar)
else:
if prt is not None:
Expand Down

0 comments on commit fab1142

Please sign in to comment.