VariantSubcloneTable.format_subclone_df#
missionbio.mosaic.workflows.variant_subclone_table.VariantSubcloneTable.format_subclone_df
- VariantSubcloneTable.format_subclone_df(subclone_df: DataFrame, annotations: DataFrame) DataFrame #
Moves the values around in the subclone_df to improve readability and appends the gene name to the variants
- Parameters:
- subclone_dfpd.DataFrame
The output of GroupByGenotype.subclone_table
- annotationspd.DataFrame
The output of sample.dna.get_annotations
- Returns:
- pd.DataFrame:
Subclone data formatted for readability
< Class VariantSubcloneTable