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 R script contains a simple screen scraping example, | |
## downloading the text of the articles in the CNN website | |
## rss feed. | |
library(RCurl) | |
library(XML) | |
options(stringsAsFactors = FALSE) | |
## get rss document |
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
[ | |
// Key remaps | |
// - a | |
{ "keys": ["alt + ' + a"], "command": "insert", "args": {"characters": "á"}}, | |
{ "keys": ["alt + ` + a"], "command": "insert", "args": {"characters": "à"}}, | |
{ "keys": ["alt + \" + a"], "command": "insert", "args": {"characters": "ä"}}, | |
{ "keys": ["alt + ~ + a"], "command": "insert", "args": {"characters": "ã"}}, | |
// - A |
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
library(ggplot2) | |
library(tidyr) | |
dat <- as.data.frame(matrix(rep(c(rep("A", 24), rep("B", 8)), 10), nrow=10, byrow=TRUE)) | |
dat$y <- rownames(dat) | |
dat %>% | |
gather(x, value, -y) %>% | |
mutate(x=as.numeric(gsub("V", "", x))) -> dat |
When I wrote the TCGA Toolbox and the TCGA.rppa module, one of biggest problems was to match samples and patients.
Both sample and patient files can be accessed through the Open Access HTTP Directory. For glioblastoma multiforme (gbm
), the samples can be found in the gbm/cgcc/mdanderson.org/mda_rppa_core/protein_exp/mdanderson.org_GBM.MDA_RPPA_Core.Level_3.1.0.0/
directory, and the patients can be found [in the nationwidechildrens.org_clinical_patient_gbm.txt
file in