Create and activate an environment
conda create -n python2 python=2.7 anaconda
source activate python2
Deactivate environment
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
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 |
[ | |
// 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 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 |