Skip to content

Commit

Permalink
Merge pull request #20 from 3mmaRand/draft-omics-03
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
3mmaRand authored Oct 22, 2023
2 parents 94a6172 + 32e04e6 commit 8edcaa6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion omics/week-5/workshop.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -495,20 +495,27 @@ ensembl <- useMart(biomart = "ensembl",
```


# See what info we can retrieve:
See what info we can retrieve:
```{r}
listAttributes(mart = ensembl) |> View()
```


We need
ensembl_gene_id: because we will need to merge the info
external_gene_name: name for gene
description: description

```{r}
gene_info <- getBM(filters = "ensembl_gene_id",
attributes = c("ensembl_gene_id",
"external_gene_name",
"description"),
values = prog_hspc_results$ensembl_gene_id,
mart = ensembl)
```



Notice the dataframe returned only has 279 rows, not 280. Which one is missing?

Expand Down

0 comments on commit 8edcaa6

Please sign in to comment.