Skip to content

Documentation for rank_genes_groups  #446

Open

Description

@sinclaircooper

Hi,

Thanks for the great tools included in scanpy.

I was searching to see what the logfoldchange numbers in the rank_genes_groups are. i.e. is it natural log/log base 10 or log2? The code in https://github.com/theislab/scanpy/blob/master/scanpy/tools/_rank_genes_groups.py shows that it is log2foldchange.

Perhaps this should be made clear in the documentation? Or logfoldchange should be chnaged to log2foldchange.

Cheers,
S

Activity

  1. falexwolf commented on Jan 24, 2019

    @falexwolf
    Member

    Thank you for the kind words!

    Hm, it's in the docs in the returns section. Should it be somewhere else?

    But you're right, I'm also not completely happy with the name logfoldchange. We'll harmonize with what's out there at some point and I'm currently tending to log2FC because @davidsebfischer started to using that in diffxpy and I guess it's also used in some R tools.

  2. sinclaircooper commented on Jan 25, 2019

    @sinclaircooper
    Author

    Whoops, sorry, I read that returns section a couple of times but somehow missed the log2 bit! Apologies.

    However, I agree with you that renaming the log2FC would remove any ambiguity.

  3. davidsebfischer commented on Jan 25, 2019

    @davidsebfischer

    @falexwolf, yes I think overall fold changes with 2 as a basis are more intuitive than with e as a basis for most people, similar to basis=10, but basis 2 gives a more sensible dynamic range than 10 does on gene expression data.

  4. falexwolf commented on Jan 26, 2019

    @falexwolf
    Member

    Thanks David, I completely agree, but I was really just talking about the naming convention: log2FC vs. log2foldchange vs. logfoldchange vs. other possibilities... 🙂

  5. a-munoz-rojas commented on Feb 7, 2019

    @a-munoz-rojas
    Contributor

    Hi all - I just saw this and I agree that log2FC is a better name. I would be happy to help with this small change if necessary!

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