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

feat: Calculate average & delta PAUs for provided contrasts #3

Open
SamBryce-Smith opened this issue May 16, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@SamBryce-Smith
Copy link
Member

Alongside using DEXSeq to perform differential usage analysis, it would be good to calculate group-mean/median PAU expressions and usages along with a delta PAU for each contrast, as this relative expression metric is more interpretable than DEXSeq's log2FC in PAS usage.

Another nice to have would be to calculate LABRAT's psi metric for each gene/last exon, as I'm using this fairly often in my analyses and it provides a decent alternative method to summarise general changes in PAS usage for a region.

I'd suggest the following approach...

Inputs:

  • qapa quant results table (output of rule qapa_quant)
  • contrast name, base & contrast keys (so have groups of interest)
  • sample table (so can extract samples of interest)

Snakemake:

  • similar set-up to rule dexseq_apa - run for each provided contrast

Outputs:

  • TSV of PAS metadata with average expressions and delta expressions. Mean and median TPMs for each condition. Mean and median PAUs for each condition. delta PAUs (contrast vs base condition) using mean and median PAUs.

    • Column names should be 'general' e.g. mean_pau_contrast, mean_pau_base
    • Additional columns of 'contrast_name', 'base_key', 'contrast_key' should probably also be added (contrast name most important)
  • (Bonus) - calculate per-sample, condition-wise and overall mean expression for genes/last exons, outputting as a separate TSV. Calculated by simply summing the expression (TPM) of polyA sites of a gene. perhaps needs to be a separate script (only needs to be done once really...)

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

1 participant