You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Straightforward way for getting most abundant categories #51
We need it regulary to get the top n of a category, e.g. v-gene or clonotype.
This can be achieved in a pandas onliner, if one knows how to do it...
# This is probably hacky, we might think about a better way, but we need the most abundant clonotypestop_clonotypes=adata.obs.clonotype.value_counts()[:8].index.values.tolist() # A better way might be needed especailly to take normalization into accounttop_vgenes=adata.obs.TRB_1_v_gene.value_counts()[:8].index.values.tolist()
It would be more user-friendly to have a convenience function to this,
for instance:
Activity
grst commentedon Apr 9, 2020
In GitLab by @szabogtamas on Apr 6, 2020, 10:53
created merge request !40 to address this issue
grst commentedon Apr 9, 2020
In GitLab by @szabogtamas on Apr 6, 2020, 10:53
mentioned in merge request !40
grst commentedon Apr 9, 2020
In GitLab by @grst on Apr 6, 2020, 14:35
changed the description
grst commentedon Oct 2, 2020
I'm currently in favor of creating a new module
scirpy.getand using a single function that can be used for all columns:grst commentedon Aug 18, 2022
Closing in favor of #184