Skip to content

Commit

Permalink
Merge branch 'dev_bjorn'
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Nov 6, 2023
2 parents ee7bb86 + 8bb0dc6 commit de2e04b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "3.11"
sphinx:
configuration: docs/conf.py

build:
image: latest

conda:
environment: docs/rtdenv.yml

python:
install:
- method: pip
Expand Down
22 changes: 11 additions & 11 deletions src/pydna/dseq.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,22 @@ class Dseq(_Seq):
The ovhg parameter controls the stagger at the five prime end::
dsDNA ovhg
dsDNA overhang
XXX 2
XXXXX
nnn... 2
nnnnn...
XXXX 1
XXXXX
nnnn... 1
nnnnn...
XXXXX 0
XXXXX
nnnnn... 0
nnnnn...
XXXXX -1
XXXX
nnnnn... -1
nnnn...
XXXXX -2
XXX
nnnnn... -2
nnn...
Example of creating Dseq objects with different amounts of stagger:
Expand Down
1 change: 1 addition & 0 deletions src/pydna/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
def embl_gb_fasta(raw, ds, path=None):
# regex = r"^>.+?^(?=$|LOCUS|ID|>|\#)|^(?:LOCUS|ID).+?^//"
regex = r"(?:>.+\n^(?:^[^>]+?)(?=\n\n|>|" r"LOCUS|ID))|(?:(?:LOCUS|ID)(?:(?:.|\n)+?)^//)"
"(?:^>.+\n^(?:^[^>]+?)(?=\n\n|>|^LOCUS|ID))|(?:(?:^LOCUS|ID)(?:(?:.|\n)+?)^//)"

result_list = []

Expand Down
2 changes: 1 addition & 1 deletion src/pydna/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def smallest_rotation(s):
"""
from pydivsufsort import min_rotation

k = min_rotation(s)
k = min_rotation(bytes(s, "ascii"))
return s[k:] + s[:k]


Expand Down

0 comments on commit de2e04b

Please sign in to comment.