Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 15, 2025
1 parent 50b47aa commit bcccc06
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions prymer/api/coordmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def get_closed_end(start: int, length: int) -> int:
```python
>>> get_closed_end(start=10, length=5)
14
```
"""
return start + length - 1
3 changes: 3 additions & 0 deletions prymer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class Span(Metric["Span"]):
Span(refname='chr1', start=6, end=10, strand=<Strand.POSITIVE: '+'>)
>>> print(span.length)
10
```
"""
Expand Down Expand Up @@ -158,6 +159,7 @@ def from_string(cls, line: str) -> "Span":
>>> span_string = "chr1:1-10:+"
>>> Span.from_string(span_string)
Span(refname='chr1', start=1, end=10, strand=<Strand.POSITIVE: '+'>)
```
"""
Expand Down Expand Up @@ -565,6 +567,7 @@ class PrimerPair:
Span(refname='chr1', start=1, end=120, strand=<Strand.POSITIVE: '+'>)
>>> list(primer_pair)
[Oligo(bases='GGGGGGGGGGGGGGGGGGGG', tm=70.0, span=Span(refname='chr1', start=1, end=20, strand=<Strand.POSITIVE: '+'>), penalty=-123.0, name=None, tm_homodimer=None, tm_3p_anchored_homodimer=None, tm_secondary_structure=None, tail=None), Oligo(bases='TTTTTTTTTTTTTTTTTTTT', tm=70.0, span=Span(refname='chr1', start=101, end=120, strand=<Strand.NEGATIVE: '-'>), penalty=-123.0, name=None, tm_homodimer=None, tm_3p_anchored_homodimer=None, tm_secondary_structure=None, tail=None)]
```
""" # noqa: E501
Expand Down
1 change: 1 addition & 0 deletions prymer/ntthal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def duplex_tm(self, s1: str, s2: str) -> float:
>>> t = NtThermoAlign()
>>> t.duplex_tm(s1 = "ACGT", s2 = "ACGT")
-46.542706
```
Returns:
Expand Down
1 change: 1 addition & 0 deletions prymer/primer3/primer3_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
PRIMER_WT_SELF_ANY_TH -> 0.0
PRIMER_WT_SELF_END_TH -> 0.0
PRIMER_WT_HAIRPIN_TH -> 0.0
```
"""
Expand Down

0 comments on commit bcccc06

Please sign in to comment.