schemarecomb.restriction_enzymes.read_ligation_data

schemarecomb.restriction_enzymes.read_ligation_data(fn)

Read in ligation count data.

The file must have annealing counts for each pair of overhangs. See the $PKG_ROOT/src/schemarecomb/gg_data directory for examples. The data in this directory comes from Pryor, Potapov, et al. 2020, but directly converted to CSV for ease of input.

Parameters

fn (str) – Name of data file.

Return type

dict[tuple[str, str], Decimal]

Returns

Mapping from two overhang strings to number of ligations observed

between the two overhangs.