Bases: flotilla.data_model.base.BaseData
Instantiate an object of downsampled splicing data
| Parameters: | df : pandas.DataFrame
experiment_design_data: pandas.DataFrame |
|---|
Notes
Warning: this data is usually HUGE (we’re taking like 10GB raw .tsv files) so make sure you have the available memory for dealing with these.
| Returns: | event_count_df : pandas.DataFrame
|
|---|
PLot a “histogram” via colored bars of the number of events shared by different iterations at a particular sampling probability
| Parameters: | figure_dir : str
|
|---|
Plot the percentage of all events detected at that iteration, shared by at least ‘min_iter_shared’
| Parameters: | min_iter_shared : int
figure_dir : str
|
|---|
Bases: flotilla.data_model.splicing.SplicingData
Class to hold splice junction information from SJ.out.tab files from STAR
Constructor for SpliceJunctionData
| Parameters: | data, experiment_design_data |
|---|
Bases: flotilla.data_model.base.BaseData
Instantiate a object for percent spliced in (PSI) scores
| Parameters: | data : pandas.DataFrame
n_components : int
binsize : float
excluded_max : float
included_max : float
|
|---|
Notes
‘thresh’ from BaseData is not used.
Assigned modalities for these samples and features.
| Parameters: | sample_ids : list of str
feature_ids : list of str
bootstrapped : bool
bootstrappped_kws : dict
|
|---|---|
| Returns: | modality_assignments : pandas.Series
|
Count the number of each modalities of these samples and features
| Parameters: | sample_ids : list of str
feature_ids : list of str
bootstrapped : bool
bootstrappped_kws : dict
|
|---|---|
| Returns: | modalities_counts : pandas.Series
|
Plot stacked bar graph of each modality
| Parameters: | bootstrapped : bool
bootstrappped_kws : dict
|
|---|
Plot “lavalamp” scatterplot of each event
| Parameters: | sample_ids : None or list of str
feature_ids : None or list of str
color : None or matplotlib color
x_offset : numeric
axes : None or list of matplotlib.axes.Axes objects
use_these_modalities : bool
bootstrapped : bool
bootstrappped_kws : dict
|
|---|
Plot modality assignments in DataFrameNMF space (option for lavalamp?)
| Parameters: | bootstrapped : bool
bootstrappped_kws : dict
|
|---|
Return splicing events which pooled samples are consistently different from the single cells.
| Parameters: | singles_ids : list-like
pooled_ids : list-like
feature_ids : None or list-like
fraction_diff_thresh : float |
|---|---|
| Returns: | large_diff : pandas.DataFrame
|
| Parameters: |
|
|---|---|
| Returns: | reducer object |