Skip to content

Manually adjust x and y axis scales #679

Open

Description

@dominikburri

Is your feature request related to a problem? Please describe.

When going through Feature assay plots across multiple genes, the axis scales are always adjusted to cover the complete range. However, this makes it difficult to compare expression levels across genes. And when comparing conditions, differences are exaggerated.

Describe the solution you'd like

Be able to set the axis scales manually.

Describe alternatives you've considered

A tick box with "include 0" or "rescale to maximum range" would work too.

Activity

  1. kevinrue commented on Oct 31, 2024

    @kevinrue
    Member

    Thanks for your feedback!

    Excellent point. Please find below a few thoughts before we move to implementation.

    • Include zero makes complete sense in many cases, though we'd have to be careful around assays that may not range from zero to infinity (e.g. scaled assays).
    • Not sure what you mean by "rescale to maximum range". You just pointed out that the default behaviour is to cover the complete range.

    In any case, I'll think about it in more depth at the next opportunity to think of a compromise between maximum flexibility for the user, and minimum number of additional UI elements needed to achieve that. We generally want to avoid overcrowding the interface unnecessarily.

    EDIT: (Apologies about the closing/reopening of the issue. I accidentally misclicked while typing).

  2. csoneson commented on Oct 31, 2024

    @csoneson
    Member

    Just a note here that we also considered multi-feature FeatureAssayPlots at some point (which could make it easier to keep a consistent y-axis). I believe we had a working implementation but that we were still discussing to what extent we could generalise the approach.

  3. dominikburri commented on Nov 1, 2024

    @dominikburri
    Author

    Hi @kevinrue and @csoneson ,
    thanks for the swift answers.

    Not sure what you mean by "rescale to maximum range".

    I mean pretty much what @csoneson is writing; that is to have a fixed scale for an assay, resp. the same y-axis. Basically that would be range(0, max(ASSAY)). But I'm quite curious how the multi-feature FeatureAssayPlots would look like.

  4. kevinrue commented on Nov 1, 2024

    @kevinrue
    Member

    Ok, because to me "max range" means from the minimum observed value to the maximum observed value (what ggplot does by default)

    Given that iSEE users can potentially throw in any kind of assay of any range (not constrained by zero), "max range" can be relatively ambiguous.

    I'm starting to picture an approach that offers flexibility without overloading the UI. Bear with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions