Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a4328cb
updated seq class: use base class slicing, added full_sequence property
BjornFJohansson Sep 18, 2025
c32cabb
Added override of Bio.Restriction.FormattedSeq._table
BjornFJohansson Sep 21, 2025
00501ba
Added dicts and tables _ambiguous_dna_complement, _keys, _values, _co…
BjornFJohansson Sep 21, 2025
1b58d37
1. import inspect module, tables and dicts from utils module
BjornFJohansson Sep 21, 2025
ddf6acc
Dseq + empty string now returns the Dseq obj unchanged. collected al…
BjornFJohansson Sep 21, 2025
1188320
1. A new CircularString class. Work in progress, should be natively b…
BjornFJohansson Sep 23, 2025
d6b9eda
_annealing_positions new implementation using _iupac_compl_regex from…
BjornFJohansson Sep 23, 2025
b06e843
fixed fill_left and fill_right and a FIXME
BjornFJohansson Sep 23, 2025
a8cb12e
fixed initiation
BjornFJohansson Sep 23, 2025
78c6ea3
deleted
BjornFJohansson Sep 23, 2025
07838f5
anneal_from_left function and more regexes and tables
BjornFJohansson Sep 23, 2025
0977340
updated test for USER cloning
BjornFJohansson Sep 24, 2025
033b406
moved all imports to the beginning. Changed some tests. There is a FI…
BjornFJohansson Sep 24, 2025
aa12fcb
removed if __name__ == __main__
BjornFJohansson Sep 24, 2025
e816d98
removed main test and moved imports to the top
BjornFJohansson Sep 24, 2025
e12bf12
1. Exchanged xxxx and yyyy to 1111 and 2222 respectively. This becaus…
BjornFJohansson Sep 24, 2025
56814d9
Updated docstrings in Dseq class for clarity, work in progress
BjornFJohansson Sep 25, 2025
24969cd
fix doctests
BjornFJohansson Sep 25, 2025
7473bd8
removed main chunk
BjornFJohansson Oct 1, 2025
7d7be27
moved import
BjornFJohansson Oct 1, 2025
561ab90
removed reference to .length property
BjornFJohansson Oct 1, 2025
3b215b0
removed reference to .length property
BjornFJohansson Oct 1, 2025
5a64679
removed code regarding the alphabet, not in the alphabet module
BjornFJohansson Oct 1, 2025
5e60e26
broke out the __repr__ code to a function for clarity, reintroduced t…
BjornFJohansson Oct 1, 2025
3a536b1
alphabet related code in src/pydna/alphabet.py
BjornFJohansson Oct 1, 2025
d9acc60
mostly comments
BjornFJohansson Oct 7, 2025
faec78b
Commented out code to be removed.
BjornFJohansson Oct 7, 2025
6bfd6e6
CircularString -> CircularBytes (a byte string version).
BjornFJohansson Oct 7, 2025
fa88fcb
Only check for start of error message.
BjornFJohansson Oct 7, 2025
e8d3627
Clearer names for some dicts
BjornFJohansson Oct 7, 2025
9a886cf
Replaced numbers 1111 and 2222 with bbbb and rrrr, respectively. Numb…
BjornFJohansson Oct 7, 2025
2c08dd1
Added tests.
BjornFJohansson Oct 7, 2025
8a0a544
Moved imports to top. removed main block
BjornFJohansson Oct 7, 2025
3c52562
bugfix for USER cloning, USER design example in design module
BjornFJohansson Oct 8, 2025
fe3f38e
remove empty file `master`
manulera Oct 8, 2025
307b14f
refactor to simplify + address #452
manulera Oct 8, 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