Open jburos opened 7 years ago
I think this resolved (or at least a slightly different discussion) with the new API. Now every plotting function should take a dictionary similar to { 'Nice Name' : compute_func }
Should we allow the "pretty name" versions of fields to be set at the cohort level?
Should we allow the "pretty name" versions of fields to be set at the cohort level?
I think for functions that we provide that could make sense, since we know all of those functions, i.e. snv_count
, missense_snv_coun
, but would hard in general, since there is not a complete collection of possible functions.
Yeah that makes sense. I was thinking of allowing a user to pass in a dictionary of pretty names on cohort creation which, if defined for a function, could be the default display name.
At first glance I like that idea @jburos 👍
Taking (now closed) PR #116 & turning it into a feature request for discussion.
Goal
Rather than printing
missense_snv_col
in plots, printMissense SNV Count / MB
orMissense SNV Count
, depending on the params.however
(here quoting from the PR)