Giter Club home page Giter Club logo

analysis-vignettes's Introduction

Biological analysis vignettes

Jay Hesselberth

Ribosome footprinting

python3 ribo-profiling/rpfs_by_codon.py

Illustrates position of the “ribosome shadow” established by ribosomes stalled at histidine codons in cells starved for histidine and histidinyl-tRNAs.

library(tidyverse)
library(cowplot)

tbl <- read_tsv(
  "ribo-profiling/rpfs.iso.tsv.gz",
  col_names = c("codon", "aa", "offset", "signal")
)

tbl
## # A tibble: 1,324 x 4
##    codon aa    offset signal
##    <chr> <chr>  <dbl>  <dbl>
##  1 TCA   Ser        0  66825
##  2 TCA   Ser       -6  46632
##  3 TCA   Ser       -3  46056
##  4 TCA   Ser       -2  45570
##  5 TCA   Ser       -1  46082
##  6 TCA   Ser        1  58346
##  7 TCA   Ser       -8  33891
##  8 TCA   Ser       -7  42053
##  9 TCA   Ser       -5  35769
## 10 TCA   Ser       -4  44854
## # … with 1,314 more rows

By amino acid

group_by(tbl, aa) %>%
  mutate(prop.signal = signal / sum(signal)) %>%
  ggplot(aes(offset, prop.signal)) +
    geom_col() +
    facet_wrap(~ aa) + 
    theme_minimal_hgrid() +
    labs(
      x = "Codon offset",
      y = "Proportion of reads"
    )

By isodecoder

tbl %>%
  group_by(codon) %>%
  mutate(prop.signal = signal / sum(signal)) %>%
  ggplot(aes(offset, prop.signal)) +
    geom_col() +
    facet_wrap(~ codon) + 
    theme_minimal_hgrid() +
    labs(
      x = "Codon offset",
      y = "Proportion of reads"
    )

Exercises

  1. Include data from minus strand genes.

  2. Break up by tRNA isodecoder (done, takes a few hours to run)

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.