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

Execution workflow: APAtrap - report Format 04 BED file in workflow (per-PAS fractional relative usage) #416

Closed
Tracked by #382
faricazjj opened this issue Sep 6, 2022 · 0 comments · Fixed by #417
Assignees

Comments

@faricazjj
Copy link
Collaborator

faricazjj commented Sep 6, 2022

Parent issue - #382

Disclaimer
The implementation in this PR has been discussed in the POC to calculate relative usage in tools #278

Background
APAtrap's original absolute TPM quantification output for control_r1 looks like the following:
Screen Shot 2022-08-24 at 5 53 32 AM
For each transcript id, we have a list of all identified PAS and their expression levels from the most proximal to most distal if the strand is +, and the opposite for a - strand (source: APAtrap wiki).

Implementing relative usage calculation and output
The raw output above is then transformed into the following quantification output file:
Screen Shot 2022-08-30 at 8 28 09 PM

To get relative usage output, we would get each PAS in the transcript divided by the total sum of expression levels of all the PAS in the same transcript. For example, the screenshot above of the original output would be converted to the following:
Screen Shot 2022-08-30 at 8 27 34 PM

Taking the example of ENSMUST00000023572.14, from the quantification output file, we get the following:

ENSMUST00000023572.14|16|78336188-78340752|+    0.0
ENSMUST00000023572.14|16|78336188-78340752|+    50.15
ENSMUST00000023572.14|16|78336188-78340752|+    35.57   

In the relative quantification output file, the score column of the corresponding rows become:

ENSMUST00000023572.14|16|78336188-78340752|+    0.0
ENSMUST00000023572.14|16|78336188-78340752|+    0.5850443303779748 
ENSMUST00000023572.14|16|78336188-78340752|+    0.4149556696220252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant