Skip to content

Commit

Permalink
Update tqdm for notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Feb 13, 2023
1 parent f4b5b3f commit be67ead
Show file tree
Hide file tree
Showing 46 changed files with 47 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/pyobo/getters.py
Expand Up @@ -25,7 +25,7 @@
)

import bioregistry
from tqdm import tqdm
from tqdm.auto import tqdm

from .constants import DATABASE_DIRECTORY
from .identifier_utils import MissingPrefix, wrap_norm_prefix
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/reader.py
Expand Up @@ -10,7 +10,7 @@
import bioregistry
import networkx as nx
from more_itertools import pairwise
from tqdm import tqdm
from tqdm.auto import tqdm

from .constants import DATE_FORMAT, PROVENANCE_PREFIXES
from .identifier_utils import MissingPrefix, normalize_curie
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/antibodyregistry.py
Expand Up @@ -7,7 +7,7 @@

import bioversions
import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Obo, Term
from pyobo.utils.path import ensure_df
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/complexportal.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, List, Tuple

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import get_id_name_mapping
from pyobo.constants import NCBITAXON_PREFIX
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/dictybase_gene.py
Expand Up @@ -9,7 +9,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo.struct import Obo, Reference, Synonym, Term, from_species, has_gene_product
from pyobo.utils.io import multisetdict
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/drugbank.py
Expand Up @@ -13,7 +13,7 @@
from xml.etree import ElementTree

import pystow
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Term
from ..struct.typedef import has_salt
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/flybase.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, Mapping, Set

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Reference
from pyobo.constants import NCBITAXON_PREFIX
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/gwascentral_phenotype.py
Expand Up @@ -5,7 +5,7 @@
import json
from typing import Iterable

from tqdm import tqdm, trange
from tqdm.auto import tqdm, trange

from pyobo.sources.gwascentral_study import VERSION
from pyobo.struct import Obo, Reference, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/hgnc.py
Expand Up @@ -11,7 +11,7 @@
from typing import DefaultDict, Dict, Iterable, Optional

from tabulate import tabulate
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo.struct import (
Obo,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/hgncgenefamily.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, List, Mapping

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Synonym, SynonymTypeDef, Term, from_species
from ..utils.path import ensure_path
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/icd10.py
Expand Up @@ -10,7 +10,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

from ..sources.icd_utils import (
ICD10_TOP_LEVEL_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/icd11.py
Expand Up @@ -12,7 +12,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

from ..sources.icd_utils import (
ICD11_TOP_LEVEL_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/icd_utils.py
Expand Up @@ -17,7 +17,7 @@
import pystow
import requests
from cachier import cachier
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Term

Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/interpro.py
Expand Up @@ -5,7 +5,7 @@
from collections import defaultdict
from typing import DefaultDict, Iterable, List, Mapping, Set, Tuple

from tqdm import tqdm
from tqdm.auto import tqdm

from .utils import get_go_mapping
from ..struct import Obo, Reference, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/kegg/genes.py
Expand Up @@ -10,7 +10,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

from .api import (
KEGG_GENES_PREFIX,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/kegg/genome.py
Expand Up @@ -10,7 +10,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

import pyobo
from pyobo.constants import NCBITAXON_PREFIX
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/kegg/pathway.py
Expand Up @@ -12,7 +12,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo.sources.kegg.api import (
KEGG_GENES_PREFIX,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/mesh.py
Expand Up @@ -8,7 +8,7 @@
from typing import Any, Dict, Iterable, List, Mapping, Optional, Set
from xml.etree.ElementTree import Element

from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Synonym, Term
from ..utils.cache import cached_json, cached_mapping
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/mgi.py
Expand Up @@ -7,7 +7,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import (
Obo,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/mirbase.py
Expand Up @@ -6,7 +6,7 @@
import logging
from typing import Iterable, List, Mapping

from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Synonym, Term, from_species
from ..struct.typedef import has_mature
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/mirbase_family.py
Expand Up @@ -5,7 +5,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from .mirbase_constants import (
get_premature_df,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/mirbase_mature.py
Expand Up @@ -4,7 +4,7 @@

from typing import Iterable

from tqdm import tqdm
from tqdm.auto import tqdm

from .mirbase_constants import get_mature_df
from ..struct import Obo, Reference, Synonym, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/msigdb.py
Expand Up @@ -8,7 +8,7 @@

import click
from more_click import verbose_option
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Term, has_part
from ..utils.path import ensure_path
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/ncbigene.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, List, Mapping, Set

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..api import get_id_name_mapping
from ..constants import NCBITAXON_PREFIX
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/npass.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Synonym, Term
from ..utils.path import ensure_df
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/pathbank.py
Expand Up @@ -7,7 +7,7 @@
from typing import Iterable, Mapping, Set

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Term
from ..struct.typedef import has_part
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/pfam.py
Expand Up @@ -5,7 +5,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..struct import Obo, Reference, Term
from ..utils.path import ensure_df
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/pfam_clan.py
Expand Up @@ -4,7 +4,7 @@

from typing import Iterable

from tqdm import tqdm
from tqdm.auto import tqdm

from .pfam import get_pfam_clan_df
from ..struct import Obo, Reference, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/pombase.py
Expand Up @@ -7,7 +7,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

import pyobo
from pyobo import Reference
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/pubchem.py
Expand Up @@ -7,7 +7,7 @@

import bioversions
import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..api import get_name_id_mapping
from ..struct import Obo, Reference, Synonym, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/reactome.py
Expand Up @@ -8,7 +8,7 @@
from typing import Iterable, Mapping, Set

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from ..api import get_id_multirelations_mapping, get_name_id_mapping
from ..constants import NCBITAXON_PREFIX, SPECIES_REMAPPING
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/rgd.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, Optional

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo.struct import (
Obo,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/slm.py
Expand Up @@ -5,7 +5,7 @@
from typing import Iterable

import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Obo, SynonymTypeDef, Term
from pyobo.utils.path import ensure_df
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/umls/umls.py
Expand Up @@ -12,7 +12,7 @@

import bioregistry
import pandas as pd
from tqdm import tqdm
from tqdm.auto import tqdm
from umls_downloader import open_umls

from pyobo import Obo, Reference, Synonym, SynonymTypeDef, Term
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/uniprot/uniprot.py
Expand Up @@ -6,7 +6,7 @@
from typing import Iterable, Optional

import bioversions
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Obo, Reference
from pyobo.constants import NCBITAXON_PREFIX, RAW_MODULE
Expand Down
3 changes: 2 additions & 1 deletion src/pyobo/sources/uniprot/uniprot_ptm.py
Expand Up @@ -24,11 +24,12 @@
// Terminator Once; ends an entr
"""

import itertools as itt
from collections import defaultdict
from typing import DefaultDict, Iterable, List, Mapping, Optional, Tuple

from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Obo, Reference, Term
from pyobo.utils.path import ensure_path
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/sources/zfin.py
Expand Up @@ -6,7 +6,7 @@
from collections import defaultdict
from typing import Iterable, Optional

from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo.struct import (
Obo,
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/ssg/__init__.py
Expand Up @@ -9,7 +9,7 @@
import bioregistry
from bioregistry.constants import BIOREGISTRY_DEFAULT_BASE_URL
from jinja2 import Environment, FileSystemLoader
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import Obo
from pyobo.struct import part_of
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/struct/struct.py
Expand Up @@ -34,7 +34,7 @@
import pandas as pd
from more_click import force_option, verbose_option
from networkx.utils import open_file
from tqdm import tqdm
from tqdm.auto import tqdm
from typing_extensions import Literal

from .reference import Reference, Referenced
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/utils/io.py
Expand Up @@ -14,7 +14,7 @@
from xml.etree import ElementTree
from xml.etree.ElementTree import Element

from tqdm import tqdm
from tqdm.auto import tqdm

__all__ = [
"open_map_tsv",
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/utils/ndex_utils.py
Expand Up @@ -7,7 +7,7 @@
from typing import Any, Iterable, List, Mapping, Tuple

import requests
from tqdm import tqdm
from tqdm.auto import tqdm

from .path import prefix_directory_join

Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/xrefdb/bengo.py
Expand Up @@ -6,7 +6,7 @@

import bioregistry
import networkx as nx
from tqdm import tqdm
from tqdm.auto import tqdm

from pyobo import get_hierarchy
from pyobo.getters import SKIP
Expand Down
2 changes: 1 addition & 1 deletion src/pyobo/xrefdb/canonicalizer.py
Expand Up @@ -9,7 +9,7 @@
import networkx as nx
import pandas as pd
from more_itertools import pairwise
from tqdm import tqdm
from tqdm.auto import tqdm

from .priority import DEFAULT_PRIORITY_LIST
from .xrefs_pipeline import get_graph_from_xref_df
Expand Down

0 comments on commit be67ead

Please sign in to comment.