Skip to content

159 add rpkm normalization - #160

Open
NassimBoutouchent wants to merge 6 commits into
masterfrom
159-add-rpkm-normalization
Open

NassimBoutouchent wants to merge 6 commits into
masterfrom
159-add-rpkm-normalization

Conversation

@NassimBoutouchent

@NassimBoutouchent NassimBoutouchent commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

Add RPKM (Reads Per Kilobase per Million mapped reads) normalization to Moonstone, as proposed in issue #159.
The implementation supports automatic sequencing depth calculation by summing the raw read counts per sample, or user-provided sequencing depths.

Changelogs

  • Implement RPKMNormalization following the existing normalization architecture.
  • Add input validation for counts, feature lengths, and sequencing depths.
  • Add unit tests covering RPKM calculations, normalization options, and invalid inputs.
  • Update API documentation and user guide with a usage example.

Issue(s)

Add RPKM normalization (#159)

Definition of Done

  • New code is tested with unit tests
  • Documentation has been updated
  • Pull Request has been revised by a maintainer of the project

Closes #159

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.64%. Comparing base (dce31eb) to head (3d7e378).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #160      +/-   ##
==========================================
+ Coverage   91.58%   91.64%   +0.05%     
==========================================
  Files          73       74       +1     
  Lines        5491     5529      +38     
  Branches      917      927      +10     
==========================================
+ Hits         5029     5067      +38     
  Misses        315      315              
  Partials      147      147              
Files with missing lines Coverage Δ
moonstone/normalization/counts/rpkm.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@NassimBoutouchent
NassimBoutouchent marked this pull request as ready for review November 12, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RPKM normalization

1 participant