Skip to content

Commit 2a1ad0d

Browse files
authored
Fix documentation inaccuracies across codebase (#146)
- LocusRead.reference_positions: base-1 → base-0 (#128) - run_isovar docstring: fix param name decompress_threads → decompression_threads, fix return type "Generator" → "list of IsovarResult" (#129) - README: protein_sequence_matches_predicted_effect → protein_sequence_matches_predicted_mutation_effect (#133) - DataFrameBuilder.exclude docstring: "should be used" → "should be omitted" (#135) Fixes #128, #129, #133, #135
1 parent a0ffe85 commit 2a1ad0d

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ A variant which fails one or more filters is not excluded from the result collec
170170
If a result collection is flattened into a DataFrame then each filter is included as a column.
171171

172172
It's also possible to filter on boolean properties (without numerical thresholds) by passing `filter_flags` to `run_isovar`. These boolean
173-
properties can be further negated by prepending 'not_' to the property name, so that both `'protein_sequence_matches_predicted_effect'` and `'not_protein_sequence_matches_predicted_effect'` are valid names for `filter_flags`.
173+
properties can be further negated by prepending 'not_' to the property name, so that both `'protein_sequence_matches_predicted_mutation_effect'` and `'not_protein_sequence_matches_predicted_mutation_effect'` are valid names for `filter_flags`.
174174

175175
## Commandline
176176

isovar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
__version__ = "1.4.9"
13+
__version__ = "1.4.10"
1414

1515

1616
from .allele_read import AlleleRead

isovar/dataframe_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def __init__(
4949
named '_fields' which is a list of field names.
5050
5151
exclude : set
52-
Field names from element_class which should be used as columns for
53-
the DataFrame we're building
52+
Field names from element_class which should be omitted from the
53+
DataFrame we're building
5454
5555
converters : dict
5656
Dictionary of names mapping to functions. These functions will be

isovar/locus_read.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
cDNA sequence
5656
5757
reference_positions : list of (int or None)
58-
For every base in the sequence, which base-1 reference position
58+
For every base in the sequence, which base-0 reference position
5959
does it map to, or None if the read base is an insertion or soft-clipped
6060
6161
quality_scores : array of int

isovar/main.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,15 @@ def run_isovar(
122122
they can also be negated by prepending "not_",
123123
such as "not_has_protein_sequence".
124124
125-
decompress_threads : int
125+
decompression_threads : int
126126
Number of threads used by htslib to decompress BAM/CRAM
127127
files.
128128
129-
Generator of IsovarResult objects, one for each variant. The
130-
`protein_sequences` field of the IsovarVar result will be empty
131-
if no sequences could be determined.
129+
Returns
130+
-------
131+
list of IsovarResult
132+
One per variant. The `protein_sequences` field will be empty
133+
if no sequences could be determined.
132134
"""
133135
if filter_thresholds is None:
134136
filter_thresholds = OrderedDict(DEFAULT_FILTER_THRESHOLDS)

0 commit comments

Comments
 (0)