pyprobound.table
Module for loading and scoring count tables and sequences.
Members are explicitly re-exported in pyprobound.
A count table consists of sequences and their corresponding counts within each selection round. For example, a three-round SELEX table might be:
AAAA 0 0 2
ACGA 2 1 0
CGAA 0 1 5
TCAG 1 0 0
A table might also contain flanking sequences on the left and right, which are prepended and appended, respectively, to every sequence in the table.
Functions
|
Merges a sequence of Batches into a single Batch. |
|
Loads tab-delimited count tables into columns on a Pandas dataframe. |
|
Randomly samples n_counts total counts each column of a dataframe. |
|
Randomly samples from a dataframe evenly by enrichment. |
|
Scores a batch using a chosen function, automatically managing devices. |
Classes
|
A protocol for a set of rows from a table. |
|
A protocol for a set of rows from a count table. |
|
A tensor encoding of a count table with flank management. |
|
Evenly sample across the range of indices |
|
Combines multiple dataloaders for multitask learning. |
|
A generic tensor encoding of a table, should implement flank management. |