Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for bulk count to CPM/TPM/FPKM function #83

Open
erwusht opened this issue May 30, 2024 · 1 comment
Open

Request for bulk count to CPM/TPM/FPKM function #83

erwusht opened this issue May 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@erwusht
Copy link

erwusht commented May 30, 2024

Hi,

Is there any plan to add a function that converts count to CPM/TPM/FPKM?

Thank you very much!

@Starlitnightly
Copy link
Owner

@JuliaMYQ, Please add a function that converts count to CPM/TPM/FPKM in omicvese.bulk._Deseq2.py file, and named this function normalize_bulk, argument type='CPM'/'TPM'/'FPKM'/'RPKM'. If you need any additional parameters, please add them yourself.

The TPM formula in R like:

tpm <- function(counts, lengths) {
  rate <- counts / lengths
  rate / sum(rate) * 1e6
}

Starlitnightly added a commit that referenced this issue Jun 7, 2024
add descriptions and normalize_bulk function #83
Starlitnightly added a commit that referenced this issue Jun 7, 2024
Revise normalize_bulk function #83
@Starlitnightly Starlitnightly added the enhancement New feature or request label Jun 25, 2024
Starlitnightly added a commit that referenced this issue Jun 30, 2024
add descriptions and normalize_bulk function #83
Starlitnightly added a commit that referenced this issue Jun 30, 2024
Revise normalize_bulk function #83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants