Skip to content

Commit 8bbd4db

Browse files
committed
Incorporates recommendations for improving the docs
1 parent 8b90639 commit 8bbd4db

8 files changed

Lines changed: 52 additions & 41 deletions

File tree

docs/api.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.. |Functionality| replace:: Provides API functionality
2+
.. |Interface for| replace:: Provides wrapper methods for
3+
14
API
25
===
36
**Note:** Many KEGG entry IDs contain colons and ``kegg_pull`` saves KEGG entry files with their ID in the file name. When running on Windows, all file names with colons will have their colons replaced with underscores.

docs/cli.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.. |Functionality| replace:: Provides commandline functionality
2+
.. |Interface for| replace:: Provides commandline functionality for accessing
3+
14
CLI
25
===
36
**Note:** Many KEGG entry IDs contain colons and ``kegg_pull`` saves KEGG entry files with their ID in the file name. When running on Windows, all file names with colons will have their colons replaced with underscores.
@@ -15,7 +18,7 @@ Top-level commandline interface.
1518
:start-after: """
1619
:end-before: """
1720

18-
A JSON file, called ``pull-results.json``, is saved describing the results of the pull. Below is the interpretation of each of the fields:
21+
A JSON file, called ``pull-results.json``, is saved, describing the results of the pull. Below is the interpretation of each of the fields:
1922

2023
**percent-success:** The percentage of the requested entries that were successfully pulled and saved in a file.
2124

docs/tutorial.rst

Lines changed: 39 additions & 34 deletions
Large diffs are not rendered by default.

src/kegg_pull/entry_ids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Pulling Lists of KEGG Entry IDs
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4-
Functionality for pulling lists of KEGG entry IDs from the KEGG REST API.
4+
|Functionality| for pulling lists of KEGG entry IDs from the KEGG REST API.
55
"""
66
from . import rest as r
77
from . import kegg_url as ku

src/kegg_pull/map.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Constructing Mappings From KEGG "link" And "conv" Operations
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4-
Functionality for converting the output from the KEGG "link" or "conv" REST operations into mappings of the entry IDs from one database to the IDs of related entries.
4+
|Functionality| for converting the output from the KEGG "link" or "conv" REST operations into mappings of the entry IDs from one database to the IDs of related entries.
55
"""
66
import typing as t
77
import json
@@ -246,7 +246,7 @@ def indirect_link(
246246
raise ValueError(
247247
f'The source, intermediate, and target database must all be unique. Databases specified: {source_database}, '
248248
f'{intermediate_database}, {target_database}.')
249-
source_to_target = dict()
249+
source_to_target = KEGGmapping()
250250
source_to_intermediate = _to_dict(
251251
kegg_rest=kegg_rest, KEGGurl=ku.DatabaseLinkKEGGurl, source_database=source_database,
252252
target_database=intermediate_database)

src/kegg_pull/pathway_organizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Flattening A Pathways Brite Hierarchy
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4-
Functionality for flattening a pathways Brite hierarchy (ID: 'br:br08901') into a collection of its nodes, mapping a node ID to information about it, enabling combinations with other KEGG data.
4+
|Functionality| for flattening a pathways Brite hierarchy (ID: 'br:br08901') into a collection of its nodes, mapping a node ID to information about it, enabling combinations with other KEGG data.
55
"""
66
from __future__ import annotations
77
import json

src/kegg_pull/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Pulling, Parsing, and Saving KEGG Entries
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4-
Functionality for pulling KEGG entries from the KEGG REST API, parsing them, and saving the entries as files.
4+
|Functionality| for pulling KEGG entries from the KEGG REST API, parsing them, and saving the entries as files.
55
"""
66
import multiprocessing as mp
77
import os

src/kegg_pull/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
KEGG REST API Operations
33
~~~~~~~~~~~~~~~~~~~~~~~~
4-
Interface for the KEGG REST API including all its operations.
4+
|Interface for| the KEGG REST API including all its operations.
55
"""
66
import typing as t
77
import enum as e

0 commit comments

Comments
 (0)