Skip to content

Commit

Permalink
biomart loading
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentQLai committed Sep 13, 2024
1 parent 6e90748 commit 94f7469
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vignettes/seismicGWAS.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ Next, to aid in result interpretation we make use of the `biomaRt` package to
convert entrez ids to gene symbols.
```{r message=FALSE}
# convert ids to symbols using biomaRt
library(biomaRt)
if (!require(biomaRt)){
if (!require(BiocManager, quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("biomaRt")
library(biomaRt)
}
ensembl <- useMart("ensembl", dataset = "hsapiens_gene_ensembl")
hsa.map <- getBM(attributes = c('entrezgene_id', 'hgnc_symbol'),
Expand Down

0 comments on commit 94f7469

Please sign in to comment.