pyproteonet.metrics.abundance_comparison.compare_columns_molecule_groups
- pyproteonet.metrics.abundance_comparison.compare_columns_molecule_groups(dataset: Dataset, molecule: str, columns: List[str], comparison_column: str, id_groups: Dict[str, Index] | None = None, *args, **kwargs) DataFrame
Similar to compare_columns() but comparison is done in individual groups of molecule specified by their ids.
- Parameters:
dataset (Union[Dataset, List[Dataset]]) – Either a single dataset or a list of datasets to evaluate. If multiple datasets are given they should alll share the same molecule and the results are concatenated.
molecule (str) – The molecule type to evaluate (e.g. ‘protein’, ‘peptide’, …).
columns (List[str]) – The columns to compare against the reference column.
comparison_column (str) – The reference column to compare against.
id_groups (Optional[Dict[str, pd.Index]], optional) – Dictionary of group names and the corresponding molecule ids for each groups. Defaults to None.
**kwargs – Additional arguments passed to compare_columns().
- Returns:
A dataframe with the evaluation results.
- Return type:
pd.DataFrame