Skip to content
Snippets Groups Projects
Commit c8981ee9 authored by Blaise Li's avatar Blaise Li
Browse files

Fixing groupby axis.

parent cb177e00
Branches
No related tags found
No related merge requests found
__copyright__ = "Copyright (C) 2022-2023 Blaise Li, Marie Anselmet" __copyright__ = "Copyright (C) 2022-2023 Blaise Li, Marie Anselmet"
__licence__ = "GNU GPLv3" __licence__ = "GNU GPLv3"
__version__ = "0.28.3" __version__ = "0.28.4"
from .libcodonusage import ( from .libcodonusage import (
aa2colour, aa2colour,
aa_usage, aa_usage,
... ...
......
...@@ -552,7 +552,7 @@ def group_codons_by_class( ...@@ -552,7 +552,7 @@ def group_codons_by_class(
# getattr accesses the method whose name is in argument *mode* # getattr accesses the method whose name is in argument *mode*
# and this method is called to get the result of the groupby operation. # and this method is called to get the result of the groupby operation.
codon_counts_grouped = getattr( codon_counts_grouped = getattr(
codon_counts_pre_group.groupby(level=["aa", "codon"]), codon_counts_pre_group.groupby(level=["aa", "codon"], axis=1),
mode)() mode)()
if keep_only_groups: if keep_only_groups:
return codon_counts_grouped return codon_counts_grouped
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment