Coder Social home page Coder Social logo

bioc2020anno's People

Contributors

j-lawson avatar jmacdon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bioc2020anno's Issues

Question: how best to integrate gene annotation with tidybulk?

Hello,

There was a question at our workshop at Bioc2020 (tidytranscriptomics) about whether there was any intended complimentary use of tidybulk with the annotation resources described in the previous workshop (your workshop).

I thought it was a good question and I've made a note here that we could maybe add some info on how to do that to future tidybulk workshops e.g. showing how to get and add gene symbols to a Drosophila RNA-seq counts table (tidybulk has an ensembl_to_symbol function but it only works for human and mouse).

But was wondering if what I've put (below) is how you'd recommend doing this?

# install annotation packages for species
# BiocManager::install(c("Organism.dplyr", "TxDb.Dmelanogaster.UCSC.dm6.ensGene", "org.Dm.eg.db"))

# load library 
library(Organism.dplyr)

# get annotation
src <- src_organism("TxDb.Dmelanogaster.UCSC.dm6.ensGene")
anno_table <- tbl(src, "id") %>% 
    
    # select desired columns
    dplyr::select(ensembl, symbol) %>% 
    
    # keep one symbol per gene id 
    group_by(ensembl) %>% 
    filter(row_number()==1) %>%
    
    # convert to tibble
    collect()

# add symbols to counts table 
counts_annot <- left_join(counts_tt, anno_table, by = c("feature" = "ensembl"))

Cheers,
Maria

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.