Previous topic

bioa.Amplicons.random_amplicons

Next topic

Priority Queue

This Page

bioa.Amplicons.build_uniform_amplicons

classmethod Amplicons.build_uniform_amplicons(reads, amplicon_len, overlap, ref_len)

Generate amplicons that have uniform length and overlap. This is useful for simulated data.

Parameters :

reads : (str, int)

Tuple of the sequence and aligned starting position.

amplicon_len : int

The length of each amplicon.

overlap : int

How much each amplicon overlaps with its neighbors.

ref_len : int

The length of the reference genome. Reads are assumed to span the entire reference.

Returns :

amplicons : Amplicons

The randomly generated amplicons.