Protein.get_signal_profile#

Protein.get_signal_profile(ab: str, attribute: Optional[Union[str, numpy.ndarray]] = None, features: Optional[Sequence] = None, bw: float = 0.02, show_plot: bool = False, random_state: Optional[int] = None) pandas.core.frame.DataFrame#

Identify the peaks and valleys in the antibody signal

Parameters
abstr

The id of the antibdoy for which the profile is to be ascertained.

attributestr / np.array

The layer to use to get the signal profile. Uses _Assay.get_attribute() to retrieve the values constrained by row. If None, then the signal profile is calculated using the asinh normalizatioin.

featureslist-like

Passed to _Assay.get_attribute() if the attribute is not None

bwfloat

The bandwidth used for fitting the kernel density on the signal profile.

show_plotbool

Whether to show diagnostic plots or not.

random_state: int

This sets the random_state used to calcualte the normalized reads when no attribute is provided. The random state is used for the slight jitter that is added to avoid high densities near 0 when normalizing the reads.

Returns
pd.DataFrame

The raw count value of the peak or valley for the given antibodies