question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about normalization

See original GitHub issue

Hi, and thanks for a great software package! I have a couple of questions related to the normalization procedure in scVelo.

  • When determining whether the data should be normalized: https://github.com/theislab/scvelo/blob/dea2f64c0eec4566ecfacef928c21dbed77316ec/scvelo/preprocessing/utils.py#L295-L296 the logic is different for dense and sparse matrices (and sometimes gives different conclusions). What is the reason behind this choice?

  • I’m using counts estimated by alevin as input to scVelo. These are not necessarily integers, and thus in some cases scVelo concludes that the data is already normalized. My solution was to run the four filtering/normalization steps separately, and enforce the normalization. I was wondering if the enforce argument of normalize_per_cell() perhaps could be propagated to filter_and_normalize(), to allow running all steps in one.

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
csonesoncommented, May 19, 2020

Thank you! That sounds great. I think it’s hard to detect by just looking at the counts (there could be many or few non-integer values). Perhaps one could imagine something similar to the log argument of filter_and_normalize, allowing the user to specify whether the data has been normalized or not, which would override the internal checks?

0reactions
csonesoncommented, May 21, 2020

Yes, this seems like a good solution. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

11 Interview Questions About Normalization (With Sample ...
Normalization interview questions with sample answers · 1. What's normalization, and how does it differ from denormalization? · 3. What are keys ...
Read more >
QUESTIONS ON NORMALIZATION - Javatpoint
QUESTIONS ON NORMALIZATION · 1. Given a relation R( A, B, C, D) and Functional Dependency set FD = { AB → CD,...
Read more >
20 Database Normalization Interview Questions and Answers
1. What is database normalization? · 2. Why do you need to use functional dependencies while normalizing databases? · 3. What are the...
Read more >
Explain Normalization?(SQL Server Interview questions with ...
Normalization is a technique where we break data in to logical pieces for a better design. The main purpose of normalization is to...
Read more >
257 questions with answers in NORMALIZATION | Science topic
Explore the latest questions and answers in Normalization, and find Normalization experts. Questions (257) ... asked a question related to Normalization.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found