Protein.convolve#
missionbio.mosaic.protein.Protein.convolve
- static Protein.convolve(data: DataFrame, labels: ndarray, convolve: float) bool #
Convolve the data in-place based on the given labels.
- Parameters:
- datapd.DataFrame
The data to be convolved.
- labelsnp.ndarray
The labels to be used for convolution.
- convolvefloat [0, 100]
The percentage of barcodes from the label with the fewest barcodes that is used to average out the signal. If 0, then no convolution is performed, and if 100, the mean per label is returned.
- Returns:
- convolvedbool
Whether the data was convolved or not.
< Class Protein