Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
pipaber committed Apr 30, 2024
1 parent 080f9b5 commit 627965c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _freeze/notebooks/TCGA/execute-results/html.json

Large diffs are not rendered by default.

Binary file modified _freeze/notebooks/TCGA/figure-html/fig-genesmut-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions notebooks/TCGA.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,27 @@ head(var_class_df)

We can visualize the most common mutated genes genes in rectum adenocarcinoma

```{r}
#| label: fig-genesmut
p <- var_class_df |>
as_tibble() |>
group_by(symbol,variant_class) |>
summarise(n = n()) |>
arrange(desc(n)) |>
ungroup() |>
slice_max(order_by = n, n = 20) |>
ungroup() |>
mutate(symbol = fct_reorder(symbol,n)) |>
ggplot(aes(n, symbol,fill=variant_class)) +
geom_col() +
facet_wrap(~variant_class) +
paletteer::scale_fill_paletteer_d("awtools::a_palette") +
labs(x = "samples with specific mutation", y="Gene Symbol", fill="Variant Class",
title="Top 20 Samples with READ")
print(p)
```

0 comments on commit 627965c

Please sign in to comment.