Dna.filter_barcodes#

Dna.filter_barcodes(completeness=50)#

Remove cells with missing information.

Parameters
completenessfloat [0, 100]

The percentage of variants for a barcode that must not have a missing value (NGT ∈ {0, 1, 2}) to keep that barcode.

Returns
np.ndarray

The list of barcodes with fewer missing variants than the threshold.

Notes

The NGT_FILTERED layer is used to measure completeness. Hence the sample.dna.filter_variants() method must be called before filtering barcodes.

The “completeness” parameter here has a different meaning from the completeness parameter in the context of [cell calling](https://support.missionbio.com/hc/en-us/articles/360042381634-Cell-calling)