Skip to content

STARsolo Matrix with Velocyto --> Anndata function #1860

Description

@JBreunig

The scanpy.read_10X_mtx works well for reading in the STARsolo output matrices, which are based on the CellRanger Outputs.

However, it would be nice to have a function or modification of the read_10X_mtx function (e.g. a boolean for STARsolo velocyto) to automate inputting the velocyto matrices that STARsolo outputs and placing them in the appropriate layers. A boolean switch for filtered versus raw matrices would be a good addition as well.

Activity

  1. JBreunig commented on May 28, 2021

    @JBreunig
    Author
  2. added this to the 1.9.0 milestone on Jul 5, 2021
  3. ivirshup commented on Jul 5, 2021

    @ivirshup
    Member

    Thanks for the suggestion.

    @WeilerP, do you think this would be more appropriate in scvelo? (Side note, I have thought that tutorial
    of going from BAMs through scvelo would be quite useful)

  4. WeilerP commented on Jul 5, 2021

    @WeilerP
    Contributor

    @WeilerP, do you think this would be more appropriate in scvelo? (Side note, I have thought that tutorial
    of going from BAMs through scvelo would be quite useful)

    Hm, not sure if the functionality would match the expectation. In scvelo, we'd store only unspliced and spliced counts (spliced both in adata.X and adata.layers). Based on the proposed code snippet in alexdobin/STAR#774 (comment), the expected output would be to read all of the available information?

  5. ivirshup commented on Jul 5, 2021

    @ivirshup
    Member

    It doesn't look to me like it's reading in much other than those. Just the obs and var that you'd get from any cell ranger experiment and an ambiguous layer.

    What additional things are you concerned about?

  6. WeilerP commented on Jul 5, 2021

    @WeilerP
    Contributor

    Yes, agreed, ambiguous isn't really a problem (could be read in optionally via a keyword argument). I was more concerned about adata.X being the original count matrix - unless I am misunderstanding the code snippet ...

  7. ivirshup commented on Jul 6, 2021

    @ivirshup
    Member

    I was more concerned about adata.X

    Ah, yeah I see what you mean. But isn't that fine for scvelo? I guess it wasn't obvious to me from the documentation that X wasn't supposed to be "total" counts.

    Also it looks like the output formats may not be documented or finalized. It might be worth reaching out to the devs to see what's up before anything is implemented.

  8. JBreunig commented on Jul 6, 2021

    @JBreunig
    Author

    Just from an end user perspective, I hadn't recognized spliced is put into adata.X and it seems that the other STARsolo users in the original thread didn't either. For my edification, would it cause any problems for me to modify the code to put spiced into adata.X or am I missing something else?

  9. WeilerP commented on Jul 12, 2021

    @WeilerP
    Contributor

    @ivirshup, @JBreunig using the absolute counts isn't a problem per se. It's simply that the scvelo paper used the spliced counts in adata.X based on which the highly variable genes are selected and PCA, neighbor graph and UMAP embedding are calculated.
    @JBreunig, shouldn't be a problem to put spliced into adata.X as the dimensions of spliced and total counts are the same.

  10. modified the milestones: 1.9.0, 1.10.0 on Mar 21, 2022
  11. modified the milestones: 1.10.0, 1.11.0 on Feb 20, 2024
  12. modified the milestones: 1.11.0, 1.12.0 on Dec 20, 2024
  13. modified the milestones: 1.12.0, 1.13.0 on Nov 10, 2025
  14. modified the milestones: 1.13.0, 1.14.0 on Nov 13, 2026
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

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions