Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
5f3eb2e
updated seq class: use base class slicing, added full_sequence property
BjornFJohansson Sep 18, 2025
8f4dd7c
Added override of Bio.Restriction.FormattedSeq._table
BjornFJohansson Sep 21, 2025
3dc3f48
Added dicts and tables _ambiguous_dna_complement, _keys, _values, _co…
BjornFJohansson Sep 21, 2025
210a6d5
1. import inspect module, tables and dicts from utils module
BjornFJohansson Sep 21, 2025
0bc3678
Dseq + empty string now returns the Dseq obj unchanged. collected al…
BjornFJohansson Sep 21, 2025
55761a1
1. A new CircularString class. Work in progress, should be natively b…
BjornFJohansson Sep 23, 2025
e7eceae
_annealing_positions new implementation using _iupac_compl_regex from…
BjornFJohansson Sep 23, 2025
c48646d
fixed fill_left and fill_right and a FIXME
BjornFJohansson Sep 23, 2025
6ac6149
fixed initiation
BjornFJohansson Sep 23, 2025
7eecce4
deleted
BjornFJohansson Sep 23, 2025
04a5ea4
anneal_from_left function and more regexes and tables
BjornFJohansson Sep 23, 2025
9c7689d
updated test for USER cloning
BjornFJohansson Sep 24, 2025
d523aff
moved all imports to the beginning. Changed some tests. There is a FI…
BjornFJohansson Sep 24, 2025
e938341
removed if __name__ == __main__
BjornFJohansson Sep 24, 2025
d801d55
removed main test and moved imports to the top
BjornFJohansson Sep 24, 2025
6d5470e
1. Exchanged xxxx and yyyy to 1111 and 2222 respectively. This becaus…
BjornFJohansson Sep 24, 2025
45705d3
Updated docstrings in Dseq class for clarity, work in progress
BjornFJohansson Sep 25, 2025
8e79a54
fix doctests
BjornFJohansson Sep 25, 2025
89e6b60
removed main chunk
BjornFJohansson Oct 1, 2025
c73970e
moved import
BjornFJohansson Oct 1, 2025
42cd797
removed reference to .length property
BjornFJohansson Oct 1, 2025
39ea20b
removed reference to .length property
BjornFJohansson Oct 1, 2025
a092087
removed code regarding the alphabet, not in the alphabet module
BjornFJohansson Oct 1, 2025
27f5e78
broke out the __repr__ code to a function for clarity, reintroduced t…
BjornFJohansson Oct 1, 2025
f998c25
alphabet related code in src/pydna/alphabet.py
BjornFJohansson Oct 1, 2025
98416f4
mostly comments
BjornFJohansson Oct 7, 2025
c061519
Commented out code to be removed.
BjornFJohansson Oct 7, 2025
6863915
CircularString -> CircularBytes (a byte string version).
BjornFJohansson Oct 7, 2025
b551729
Only check for start of error message.
BjornFJohansson Oct 7, 2025
417e62e
Clearer names for some dicts
BjornFJohansson Oct 7, 2025
2acd618
Replaced numbers 1111 and 2222 with bbbb and rrrr, respectively. Numb…
BjornFJohansson Oct 7, 2025
28dc615
Added tests.
BjornFJohansson Oct 7, 2025
3393265
Moved imports to top. removed main block
BjornFJohansson Oct 7, 2025
1b8127a
remove empty file `master`
manulera Oct 8, 2025
deed36a
refactor to simplify + address #452
manulera Oct 8, 2025
a026c47
Commented out unused code.
BjornFJohansson Oct 9, 2025
4ecbbc3
Added a stub for the new user_assembly_design function.
BjornFJohansson Oct 9, 2025
bf8f875
more details in test_USERcloning.py
BjornFJohansson Oct 9, 2025
592a541
Added back apply_cut based on processing with translation tables.
BjornFJohansson Oct 9, 2025
c8b8c32
better code comment
BjornFJohansson Oct 9, 2025
d290f98
These slices behave differently with the new simplified Dseq.__getite…
BjornFJohansson Oct 9, 2025
19fc089
code clarification
BjornFJohansson Oct 9, 2025
0676d7c
alphabet defitition now in docstring
BjornFJohansson Oct 29, 2025
8e56b6d
strip data before setting ._data property
BjornFJohansson Oct 29, 2025
5d50b64
instead of testing for identity we test if seq_u and seq_v anneal
BjornFJohansson Oct 29, 2025
5ed57de
test for feeding Dseq with watson/crick having leading whitespace
BjornFJohansson Oct 29, 2025
67e29d9
Changed how dscode_to_watson_table and dscode_to_crick_table are buil…
BjornFJohansson Nov 6, 2025
ba0062c
Improved implementation of looped method with bugfixes. More tests ne…
BjornFJohansson Nov 6, 2025
2e2d261
1. Modified __add__ to accept single stranded sequences. This is nece…
BjornFJohansson Nov 6, 2025
e514c44
1. reimplemented a part of the assemble function to be able to deal w…
BjornFJohansson Nov 6, 2025
b600789
Fixed tests regarding looped. More tests are needed.
BjornFJohansson Nov 6, 2025
872cbce
Numbered feature types in test misc -> misc1..misc18. Two tests still…
BjornFJohansson Nov 6, 2025
8606ec7
spelling error
BjornFJohansson Nov 8, 2025
14109b8
Edited out Dseq.from_string method and switched to Dseq.quick in Dseq…
BjornFJohansson Nov 8, 2025
8916ea4
fixed tests switching Dseq.from_string to Dseq.quick
BjornFJohansson Nov 8, 2025
28b6227
better Dseq.__str__ docstring
BjornFJohansson Nov 8, 2025
24e90ce
added a find method to the CircularBytes class.
BjornFJohansson Nov 8, 2025
9f4ebba
docsstring for get_parts function.
BjornFJohansson Nov 9, 2025
6f30729
Commented out test_cas9(), since this tests an obsolete feature.
BjornFJohansson Nov 9, 2025
b9fd704
Commented out obsolete cas9 method.
BjornFJohansson Nov 9, 2025
b5d6043
Bugfix!
BjornFJohansson Nov 10, 2025
a53e3ae
watson_ovhg is a property
BjornFJohansson Nov 10, 2025
3c80f9d
Mostly better docstrings, interactive examples and comments.
BjornFJohansson Nov 10, 2025
0d1d4a6
moved big regexes to alphabet and expressed them in terms of dscode a…
BjornFJohansson Nov 10, 2025
15103a1
docstring stubs for factory functions
BjornFJohansson Nov 10, 2025
310953c
copied tests from Dseq4 branch
BjornFJohansson Nov 10, 2025
df48c17
all melt tests pass
BjornFJohansson Nov 10, 2025
8c9149f
fixed the range test so that two of the melt tests pass
BjornFJohansson Nov 10, 2025
27eabf3
fix looped and add docstring to overridden pcr linear assembly function
manulera Nov 11, 2025
c38a3bd
watson_ovhg is now a property.
BjornFJohansson Nov 14, 2025
6d44914
Added import.
BjornFJohansson Nov 14, 2025
db68d00
better docstrings.
BjornFJohansson Nov 14, 2025
c7b5ff5
docstrings
BjornFJohansson Nov 14, 2025
86796e4
deleted tolinear
BjornFJohansson Nov 14, 2025
0235627
handle edge-case where feature spans both overhangs, solved by droppi…
manulera Nov 14, 2025
0c178c2
812 Bugfix in Dseq slice. Dseq[0:0] resulted in the complete sequence.
BjornFJohansson Nov 15, 2025
581a0f5
Added initiation tests, slice, cut and nibble
BjornFJohansson Nov 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/pydna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# license. Please see the LICENSE.txt file that should have been included
# as part of this package.


"""
:copyright: Copyright 2013-2023 by Björn Johansson. All rights reserved.
:license: This code is part of the pydna package, governed by the
Expand Down Expand Up @@ -142,7 +143,7 @@
# import configparser as _configparser
# import tempfile as _tempfile
from pydna._pretty import PrettyTable as _PrettyTable

from Bio.Restriction import FormattedSeq

__author__ = "Björn Johansson"
__copyright__ = "Copyright 2013 - 2023 Björn Johansson"
Expand Down Expand Up @@ -396,3 +397,18 @@ def logo():
f = Figlet()
message = f.renderText(message)
return _pretty_str(message)


## Override Bio.Restriction.FormattedSeq._table


def _make_FormattedSeq_table() -> bytes:
table = bytearray(256)
upper_to_lower = ord("A") - ord("a")
for c in b"ABCDEFGHIJKLMNOPQRSTUVWXYZ": # Only allow IUPAC letters
table[c] = c # map uppercase to uppercase
table[c - upper_to_lower] = c # map lowercase to uppercase
return bytes(table)


FormattedSeq._table = _make_FormattedSeq_table()
Loading
Loading