gcell.rna.gene.TSS.get_sample_from_peak

gcell.rna.gene.TSS.get_sample_from_peak#

TSS.get_sample_from_peak(peak_df, focus=100)[source]#

Get the sample from the peak_df, with the peak_id as the center, and focus as the window size

Parameters:
peak_df pd.DataFrame

The peak dataframe.

focus int

The window size.

Return type:

DataFrame

Returns:

pd.DataFrame The sample from the peak_df.