stephens999 / gtex-viz

repo for code to visualize results of gtex project
1 stars 0 forks source link

eQTLs: how much are they tissue specific vs shared? #3

Open stephens999 opened 9 years ago

stephens999 commented 9 years ago

Put together an rmd file, with plots, showing main features of eQTLs identified. Eg, are they tissue specific, or shared. Which tissues tend to share eQTLs?

Possible plots/analyses include:

Possibly would be useful to apply these analyses to lfsr instead of posterior means? So in this case first plot would be somethign like a histogram of "number of tissues showing lfsr<0.05" for each eQTL.

Given the fact that brain tissues look somewhat different, might be worth doing the above separately for brain and non-brain tissues.

surbut commented 9 years ago

Here are some examples of tissue specific and fully shared eQTLS as quantified by posterior (shrunken) t stats using my Matrix Ash on 1188 components (ID, 5 SFA, rank 2 PC, rank 5 SFA, and 45 singleton/full configs) https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespec.Rmd and here is the distribution of the number of tissues with lfsr<0.10 per gene. https://github.com/stephens999/gtex-viz/blob/master/Plots/lfsrhist.Rmd

stephens999 commented 9 years ago

thanks sarah. Given you've pushed the html files too, probably best to link to those.

stephens999 commented 9 years ago

@surbut: can you prepare "nice" versions (ie with reader-friendly axis labels and titles like "number of tissues in which eQTL is "significant"") of a) the histogram, b) the t stats for a tissue-specific testes example; c) the tstats for a consistent example?

surbut commented 9 years ago

Sure - here is the lfsr hist https://github.com/stephens999/gtex-viz/blob/master/Plots/lfsrhist.html

surbut commented 9 years ago

just updated the lfsr histogram - I'm not sure what I should change in the tissue specific and shared examples since those are my 'nice plots' :) I put my plot function in the rmd if you'd like to change it?

On Jun 19, 2015, at 11:07 AM, stephens999 notifications@github.com wrote:

@surbut: can you prepare "nice" versions (ie with reader-friendly axis labels and titles like "number of tissues in which eQTL is "significant"") of a) the histogram, b) the t stats for a tissue-specific testes example; c) the tstats for a consistent example?

— Reply to this email directly or view it on GitHub.

surbut commented 9 years ago

added spacing and full title name to tissue specific shared example https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespec.html

surbut commented 9 years ago

added proportion of eQTLs shared by two tissues https://raw.githubusercontent.com/stephens999/gtex-viz/master/Plots/sharedQTLs.html

stephens999 commented 9 years ago

hmm. unfortunately linking to html doesn't help as I'd hoped since git doesn't render it nicely....

surbut commented 9 years ago

sorry - should I revert to linking to Rmd?

On Jun 19, 2015, at 1:00 PM, stephens999 notifications@github.com wrote:

hmm. unfortunately linking to html doesn't help as I'd hoped since git doesn't render it nicely....

— Reply to this email directly or view it on GitHub.

surbut commented 9 years ago

Here are tissue specific .Rmds:

https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespec.Rmd

Intersection heatmap:

https://github.com/stephens999/gtex-viz/blob/master/Plots/sharedQTLs.Rmd

lfsr histogram:

https://github.com/stephens999/gtex-viz/blob/master/Plots/lfsrhist.Rmd

surbut commented 9 years ago

added interactive sharing plot: https://github.com/stephens999/gtex-viz/blob/master/Plots/shinytest.Rmd

surbut commented 9 years ago

https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespecificbytissue.Rmd This is the plot of the number of QTLS that are tissue-specific per tissue. It is a shiny plot

surbut commented 9 years ago

Also added 'unshiny' with the tissue names above https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespecificbytissuenoshiny.Rmd. Just created a boolean matrix for each snps on whether the tissuelfsr was <=thresh, and then took the row sums. The rows with row sum =1 merited tissue-specific distinction, so we subset those rows, and then sum the columns to get the tissue specific hist.

surbut commented 9 years ago

really cool tissue specific barplot with interactive labels: https://plot.ly/~DemoAccount/866 Here's the rscript for producing it: https://github.com/stephens999/gtex-viz/blob/master/Plots/tissuespecificbarplot.Rmd