Source Operations

Source operations create the initial Pools from which all downstream Pools are constructed. They do not require an existing pool as input. Sources may represent user-specified sequences, DNA sequences generated using IUPAC ambiguity codes or position weight matrices, random k-mers, constrained barcodes, and more.

from_seq

Create a pool from a single sequence string, optionally with region tags.

from_seqs

Create a pool that draws uniformly from a list of sequences.

from_fasta

Load sequences from a FASTA file.

from_iupac

Enumerate all sequences consistent with an IUPAC ambiguity string.

from_motif

Sample sequences from a position-probability matrix.

get_kmers

Enumerate every k-mer of a given length over a specified alphabet.

get_barcodes

Generate DNA barcodes satisfying distance, GC, and homopolymer constraints.