PCR Assembly Primer Design
primerize.util
Module¶Convert a DNA sequence input to RNA.
sequence – str
: Input DNA sequence.
str
– String of RNA
Convert a RNA sequence input to DNA.
sequence – str
: Input RNA sequence.
str
– String of DNA
Convert a DNA sequence input to its complement strand.
sequence – str
: Input DNA sequence.
str
– String of complement DNA strand.
ValueError – For illegal sequence.
Convert a 96-Well Coordinate string to number (1-based).
coord – str
: Input WellPosition coordinate string, e.g. 'A01'
.
int
or None
if illegal input.
Find base-pairs that are not present in all secondary structure inputs. Each input secondary structure is compared to all the others.
structures – list(str)
: Input secondary structures.
offst – int
: (Optional) Index numbering offset for output numbers.
flag – bool
: (Optional) Overriding flag for excluding shared helices.
list(list(tuple(int, int)))
– List of helices, and each helix is a list of tuple of base-pairs with their seqpos
.
Validate and calculate mutation range based on input sequence and offset. If mutation range exceeds possible range, the maximum possible range is returned.
mut_start – int
: Lower limit of mutation range, should be based on offset.
mut_end – int
: Upper limit of mutation range, should be based on offset.
offset – int
: Index numbering offset.
sequence – str
: The sequence (length used).
(which_muts, mut_start, mut_end)
which_muts - list(int)
: The final range of mutations.
mut_start - int
: The valid mut_start.
mut_end - int
: The valid mut_end.
Mutate a single nucleotide.
nt – str
: The nucleotide of interest.
lib –
int
: The mutation library choice; choose from (1
, 2
, 3
, 4
):
* 1 represents "A->U, U->A, C->G, G->C",
* 2 represents "A->C, U->C, C->A, G->A",
* 3 represents "A->G, U->G, C->U, G->U",
* 4 represents "A->C, U->G, C->A, G->U",
* 5 represents "A->C, U->G, C->G, G->C".
str
ValueError – For illegal lib input.
Convert a 96-Well Coordinate number (1-based) to string.
num – int
: Input WellPosition coordinate number, e.g. 96
.
str
or None
if illegal input.
Convert a DNA sequence input to its reverse order.
sequence – str
: Input DNA sequence.
str
– String of reverse DNA strand.
Convert a DNA sequence input to its reverse complement strand.
sequence – str
: Input DNA sequence.
str
– String of reverse complement DNA strand.
Convert a dot-bracket secondary structure into base-pair tuples.
structure – str
: Input secondary struture.
offset – int
: (Optional) Index numbering offset for output numbers.
list(list(tuple(int, int)))
– List of helices, and each helix is a list of tuple of base-pairs with their seqpos
.
Check if two nucleotides form a valid Watson-Crick base-pair.
nt_1 – str
: Nucleotide.
nt_2 – str
: Nucleotide.
bool
Built with Sphinx using a RiboKit Theme . Hosted on GitHub Pages.
© Copyright 2008-2024 The Board of Trustees of the Leland Stanford Junior University. All Rights Reserved.
Last updated on Dec 13, 2024.