Previous topic

bioa.FrequencyMatrix.construct_normalized_freq_matrix

Next topic

bioa.FrequencyMatrix.__iter__

This Page

bioa.FrequencyMatrix.__init__

FrequencyMatrix.__init__(amplicons, include_pairs=False, nthreads=1)

This will construct the frequency matrix based on the amplicons in the amplicons. Columns correspond to the absolute frequency (i.e. counts) distributions of distinct reads in the amplicons and rows correspond to distinct read-representatives with their associated frequencies.

Parameters :

amplicons : list

List of amplicons where each amplicon is a list of reads. This will be used to construct the frequency matrix.

include_pairs : bool (optional, default=False)

Whether or not to output the tuple (read, count) for each item in the frequency matrix rather than just count.