Giter Site home page Giter Site logo

Comments (6)

bschilder avatar bschilder commented on June 18, 2024

https://onlinelibrary.wiley.com/doi/10.1002/humu.23763

Found this paper quite helpful in understanding pLI (and its many shortcomings as a metric).

Some additional (or alternative) metrics to consider:

from rare_disease_celltyping.

bschilder avatar bschilder commented on June 18, 2024

Ok, so while the data in VEP is super useful, the VEP software to access these annotations is a hot garbage fire that is virtually uninstallable. I tried everything under the sun:
https://gist.github.com/bschilder/8a64d266e0e3ab18075274ad539985ac

However, I was able to extract the AlphaMissense predictions directly! Turns out they already computed per gene scores for the entire protein-coding genome here (see their README):

AlphaMissense_gene_hg19.tsv.gz, AlphaMissense_gene_hg38.tsv.gz
Gene-level average predictions, which were computed by taking the mean
alphamissense_pathogenicity over all possible missense variants in a transcript
(canonical transcript).

With a little extra postprocessing, I got the gene symbols:

 am <- data.table::fread("https://storage.googleapis.com/dm_alphamissense/AlphaMissense_gene_hg38.tsv.gz")
  am$enst_id <- stringr::str_split(am$transcript_id,"\\.", simplify = TRUE)[,1] 
  map <- orthogene::map_genes(genes = unique(am$enst_id), 
                              target = "ENST",
                              species="human",
                              drop_na = FALSE, 
                              mthreshold = Inf)
  am_mapped <- unique(map[,c("input","name")]) |>
    data.table::data.table(key = "input") |>
    data.table::merge.data.table(am, by.x = "input", by.y = "enst_id")
am_mapped

Image

pLI is still problably worth looking at, but I think ML-based AlphaMissense metric circumvents many of the shortcomings of the rule-based pLI metric.

from rare_disease_celltyping.

bschilder avatar bschilder commented on June 18, 2024

Found the latest pLI data from gnomad as well:
https://gnomad.broadinstitute.org/downloads/#v4-constraint

Importing that now for comparison with AlphaMissense.

readme <- suppressWarnings(
    readLines("https://storage.googleapis.com/gcp-public-data--gnomad/release/v4.0/constraint/README.txt")
  )
  pli <- data.table::fread("https://storage.googleapis.com/gcp-public-data--gnomad/release/v4.0/constraint/gnomad.v4.0.constraint_metrics.tsv")
  data.table::setorderv(pli, "mane_select",order=-1)

mane <- pli[mane_select==TRUE, lapply(.SD, mean, na.rm=TRUE), 
              .SDcols = is.numeric, by="gene"][, mane_select:=TRUE]
  pli_agg <- data.table::rbindlist(
    list(
      mane,
      pli[!gene %in% mane$gene, lapply(.SD, mean, na.rm=TRUE), 
          .SDcols = is.numeric, by="gene"][, mane_select:=FALSE]
    )
  )

Image

from rare_disease_celltyping.

NathanSkene avatar NathanSkene commented on June 18, 2024

from rare_disease_celltyping.

KittyMurphy avatar KittyMurphy commented on June 18, 2024

Just having a look into what I did previously when looking at pLI and genes under selective pressure.

I used the pLI for human transcripts from this study: The mutational constraint spectrum quantified from variation in 141,456 humans.

I'm attaching the relevant supplementary table:
supplementary_dataset_11_full_constraint_metrics.tsv.zip.

But as you've shared @bschilder, there is a more up to date version of pLI data.

from rare_disease_celltyping.

bschilder avatar bschilder commented on June 18, 2024

How would an AI model give us population frequency? I thought current generation AI models of protein folding are also really bad at predicting variant effects?

@NathanSkene Are you talking about variant population frequency, phenotype frequency, or disease frequency?
In any case, none of these were the intended usage of pLI as outlined here:
#50 (comment)

Also see here for my explanation of why pLI would not be appropriate for estimating population prevalence. Instead, getting epidemiological stats on population prevalence would make much more sense.

from rare_disease_celltyping.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.