-
-
Save hurrialice/9de64bbccfdc96a1ed761f7fee4b40b7 to your computer and use it in GitHub Desktop.
quick R snippets in Jupyter Notebooks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Annotation | |
%%R -i dedf -o annot_chr | |
library(biomaRt) | |
ensembl <- useMart("ensembl",dataset="hsapiens_gene_ensembl") | |
columns(ensembl) | |
annot_chr = select(ensembl, keys=dedf[["gene_id"]], columns=c('ensembl_gene_id_version','chromosome_name'), | |
keytype='ensembl_gene_id_version') | |
### Genomic Ranges Manipulation (with bedtools equivalent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment