Multibatchnorm / between library batch normalization
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 779
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 27
Description
What kind of feature would you like to request?
Additional function parameters / changed functionality / changed defaults?
Please describe your wishes
Hi,
Is there an equivalent function to multiBatchNorm in Python, or another method that can perform per-batch normalization?
My goal is to compute psuedobulk per indiviudal, Each individual sample has replicates that are processed across different libraries,
a- Simply summing the raw counts across replicates would likely introduce bias due to library-specific batch effects.
b- Taking the mean of normalized counts across replicates (scranPY normalized counts) doesn’t account for differences in size factors across the libraries, making normalization inconsistent between batches.
important note :
replicates are distributed across different libraries
Individual x might have replicate 1 in library 1 and replicate 2 in library 3, while
Individual y might have replicate 1 in library 1 but replicate 2 in library 4.
so thats why summing raw / normalized counts directly seem inaccurate
I’d greatly appreciate any advice.
In R, I’ve previously used multiBatchNorm from the scran package, which normalizes and scale the size factors within each batch to handle such batch effects. However, given the size of my current dataset, using R is not feasible.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No Scanpy file, test, or entry point is identified. Start by comparing Scanpy’s existing normalization options with R scran’s multiBatchNorm for the described cross-library replicates, then define the supported API and validation case for per-batch size-factor normalization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- bioinformatics, data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100