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

Help getting transcript length to calculate TPM #454

Open
Arcfury opened this issue Dec 19, 2024 · 1 comment
Open

Help getting transcript length to calculate TPM #454

Arcfury opened this issue Dec 19, 2024 · 1 comment

Comments

@Arcfury
Copy link

Arcfury commented Dec 19, 2024

With , we can get counts/CPM for transcript. But how to get transcript length for TPM calculation, especially novel transcript length. Kindly respond.

@cying111
Copy link
Collaborator

Hi @Arcfury ,

for getting transcript length, you can simply use the following code to get it:
sum(width(rowRanges(se)[rowData(se)$novelTranscript == TRUE]))

Hope this helps and let me know if you need further assistance!
Thank you
Warm regards,
Ying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants