Skip to content

Commit

Permalink
Final tweaks/handle merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Mar 19, 2024
1 parent 2072fb1 commit 64bccb2
Show file tree
Hide file tree
Showing 26 changed files with 58 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:exclude-members: model_fields, model_config
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:exclude-members: model_fields, model_config
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:exclude-members: model_fields, model_config
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.chembl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.do.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.drugbank.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.ensembl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
wags_tails.ensembl_transcript_mappings
======================================

.. automodule:: wags_tails.ensembl_transcript_mappings
:members:
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.hemonc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.hgnc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.mondo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.ncbi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
wags_tails.ncbi_lrg_refseqgene
==============================

.. automodule:: wags_tails.ncbi_lrg_refseqgene
:members:
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
wags_tails.ncbi_mane_summary
============================

.. automodule:: wags_tails.ncbi_mane_summary
:members:
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.ncit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.oncotree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/sources/wags_tails.rxnorm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:inherited-members:
:exclude-members: model_fields, model_config, count, index
:exclude-members: model_fields, model_config, count, index
2 changes: 1 addition & 1 deletion docs/source/reference/api/wags_tails.base_source.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:private-members:
:exclude-members: model_fields, model_config, _abc_impl
:exclude-members: model_fields, model_config, _abc_impl
2 changes: 1 addition & 1 deletion docs/source/reference/api/wags_tails.custom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
:undoc-members:
:special-members: __init__
:private-members:
:exclude-members: model_fields, model_config, _abc_impl
:exclude-members: model_fields, model_config, _abc_impl
3 changes: 3 additions & 0 deletions docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ Data Sources
wags_tails.drugbank
wags_tails.drugsatfda
wags_tails.ensembl
wags_tails.ensembl_transcript_mappings
wags_tails.guide_to_pharmacology
wags_tails.hemonc
wags_tails.hgnc
wags_tails.mondo
wags_tails.ncbi
wags_tails.ncbi_lrg_refseqgene
wags_tails.ncbi_mane_summary
wags_tails.ncit
wags_tails.oncotree
wags_tails.rxnorm
Expand Down
8 changes: 6 additions & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Data source classes provide a :py:meth:`~wags_tails.base_source.DataSource.get_l
.. code-block:: pycon
>>> from wags_tails.mondo import MondoData
>>> m = MondoData()
>>> m = MondoData(silent=False)
>>> m.get_latest(force_refresh=True)
Downloading mondo.obo: 100%|█████████████████| 171M/171M [00:28<00:00, 6.23MB/s]
PosixPath('/Users/genomicmedlab/.local/share/wags_tails/mondo/mondo_v2023-09-12.obo'), 'v2023-09-12'
Expand All @@ -28,7 +28,7 @@ Additional parameters are available to force usage of the most recent locally-av
Configuration
-------------

All data is stored within source-specific subdirectories of a designated ``wags-tails`` data directory. By default, this location is ``~/.local/share/wags_tails/``, but it can be configured by passing a Path directly to a data class on initialization, via the ``$WAGS_TAILS_DIR`` environment variable, or via `XDG data environment variables <https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html>`_.
All data is stored within source-specific subdirectories of a designated ``wags-tails`` data directory. By default, this location is ``~/.local/share/wags_tails/``, but it can be configured by passing a Path directly to a data class on initialization, via the ``$WAGS_TAILS_DIR`` environment variable, or via `XDG data environment variables <https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html>`_. This is explicated in full in the :py:meth:`~wags_tails.utils.storage.get_data_dir()` method description.

.. _custom_data_source:

Expand All @@ -39,6 +39,10 @@ Custom Data Source

.. code-block:: python
import datetime
from pathlib import Path
import json
from wags_tails import CustomData, DataSource
from wags_tails.utils.versioning import DATE_VERSION_PATTERN
from wikibaseintegrator.wbi_helpers import execute_sparql_query
Expand Down
2 changes: 1 addition & 1 deletion src/wags_tails/ensembl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class EnsemblData(DataSource):
"""Provide access to Ensembl data."""
"""Provide access to Ensembl gene data."""

_src_name = "ensembl"
_filetype = "gff"
Expand Down
4 changes: 2 additions & 2 deletions src/wags_tails/ncbi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Provide data fetching for NCBI."""
"""Provide data fetching for NCBI gene data sources."""
import ftplib
import logging
import re
Expand Down Expand Up @@ -96,7 +96,7 @@ class NcbiGenePaths(NamedTuple):


class NcbiGeneData(DataSource):
"""Provide access to Guide to Pharmacology data."""
"""Provide access to NCBI Gene data."""

_src_name = "ncbi"
_filetype = "tsv"
Expand Down

0 comments on commit 64bccb2

Please sign in to comment.