bsxplorer.UniversalBatch
- class UniversalBatch(data: DataFrame, raw: Table | RecordBatch | None)[source]
Class for storing and converting methylation report data.
Methods
Filter data by expression or keyword arguments
Filter cytosines which have 0 reads.
- returns:
Dictionary with column names and data types for polars.
- returns:
DataFrame with methylation data as bedGraph.
- returns:
DataFrame with methylation data as Bismark methylation report.
- returns:
DataFrame with methylation data as CGmap.
- returns:
DataFrame with methylation data as coverage.
- classmethod pl_schema() OrderedDict [source]
- Returns:
Dictionary with column names and data types for polars.
- Return type:
collections.OrderedDict
- to_bismark()[source]
- Returns:
DataFrame with methylation data as Bismark methylation report.
- Return type:
polars.DataFrame
- to_cgmap()[source]
- Returns:
DataFrame with methylation data as CGmap.
- Return type:
polars.DataFrame
- to_coverage()[source]
- Returns:
DataFrame with methylation data as coverage.
- Return type:
polars.DataFrame
- to_bedGraph()[source]
- Returns:
DataFrame with methylation data as bedGraph.
- Return type:
polars.DataFrame
- filter_data(**kwargs)[source]
Filter data by expression or keyword arguments
- Parameters:
kwargs – keywords arguements to pass to polars.filter()
- Return type: