generated from jhudsl/OTTR_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from fhdsl/lesson1
Lesson1
- Loading branch information
Showing
22 changed files
with
1,914 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
bookdown::gitbook: | ||
css: assets/style.css | ||
includes: | ||
before_body: assets/big-image.html | ||
before_body: assets/big-image_fhdasl.html | ||
after_body: assets/footer.html | ||
highlight: tango | ||
config: | ||
toc: | ||
collapse: section | ||
before: | | ||
<a href="http://jhudatascience.org/"><img src="https://jhudatascience.org/images/dasl.png" style=" width: 80%; padding-left: 40px; padding-top: 8px; vertical-align: top "</a> | ||
<a href="https://hutchdatascience.org/" target="_blank"><img src="assets/big-dasl-stacked.png" style="width: 80%; padding-left: 34px; padding-top: 8px;"</a> | ||
after: | | ||
<p style="text-align:center;"> <a href="https://github.com/jhudsl/OTTR_Template" target="blank" > This content was published with</a> <a href="https://bookdown.org/" target="blank"> bookdown by:</a> </p> | ||
<p style="text-align:center;"> <a href="http://jhudatascience.org/"> The Johns Hopkins Data Science Lab </a></p> | ||
<p style="text-align:center;"> <a href="https://github.com/jhudsl/OTTR_Template" target="blank" > This content was published with</a> <a href="https://bookdown.org/" target="blank"> bookdown by: </a> </p> | ||
<p style="text-align:center;"> <a href="https://hutchdatascience.org/"> The Fred Hutch Data Science Lab </a></p> | ||
<p style="text-align:center; font-size: 12px;"> <a href="https://github.com/rstudio4edu/rstudio4edu-book/"> Style adapted from: rstudio4edu-book </a> <a href ="https://creativecommons.org/licenses/by/2.0/"> (CC-BY 2.0) </a></p> | ||
<p style="padding-left: 40px;"><div class="trapezoid" style = "padding-left: 40px;"><span> <a href="https://forms.gle/W6Mg4rzuMK6Yk3Am8"> Click here to provide feedback</a> <img src="assets/itcr_arrow.png" style=" width: 10%" ></span></div></p> |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
library(tidyverse) | ||
|
||
#Raw data downloaded from https://depmap.org/portal/download/all/. | ||
#Raw data too large to keep in repository. | ||
metadata = read.csv("../DepMap_23Q2_raw/Model.csv") | ||
mutation = read.csv("../DepMap_23Q2_raw/OmicsSomaticMutations.csv") | ||
expression = read.csv("../DepMap_23Q2_raw/OmicsExpressionProteinCodingGenesTPMLogp1.csv") | ||
|
||
|
||
#Simplify mutation data for classroom use | ||
#Pick genes that are Cosmic Hotspot, Driver, LikelyDriver, LoF | ||
#Description of these criteria found https://storage.googleapis.com/shared-portal-files/Tools/%5BDMC%20Communication%5D%2022Q4%20Mutation%20Pipeline%20Update.pdf | ||
mutation = summarise(group_by(mutation, ModelID, HugoSymbol), | ||
mutated = ifelse(length(which(CosmicHotspot == "True" | | ||
Driver == "True" | LoF == "True" | | ||
LikelyDriver == "True")) >= 1, TRUE, NA)) | ||
mutation = pivot_wider(mutation, names_from = "HugoSymbol", values_from = "mutated") | ||
|
||
idx = apply(mutation, MARGIN = 2, function(x) !all(is.na(x))) | ||
mutation = mutation[, idx] | ||
mutation[is.na(mutation)] = FALSE | ||
|
||
#Clean up expression data | ||
colnames(expression) = gsub("(.*)\\.\\..*", "\\1", colnames(expression)) | ||
#Subset expression data to be close to mutation data. | ||
idx = c(1, which(colnames(expression) %in% colnames(mutation))) | ||
expression = expression[, idx] | ||
|
||
#Clean up colnames in mutation and expression data | ||
colnames(mutation) = paste0(colnames(mutation), "_", "Mut") | ||
colnames(mutation)[1] = "ModelID" | ||
colnames(expression) = paste0(colnames(expression), "_", "Exp") | ||
colnames(expression)[1] = "ModelID" | ||
|
||
save(mutation, expression, metadata, file = "CCLE.RData") | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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