Last active
April 11, 2016 19:46
-
-
Save MarcinKosinski/913dafa7fbc99f078c1de853f4483c80 to your computer and use it in GitHub Desktop.
information gain for RTCGA BRCA
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(devtools) | |
devtools::install_github('RTCGA/RTCGA') | |
library(RTCGA) | |
installTCGA('RTCGA.clinical') | |
installTCGA('RTCGA.rnaseq') | |
library(RTCGA.rnaseq) | |
library(RTCGA.clinical) | |
library(dplyr) | |
survivalTCGA(BRCA.clinical) %>% | |
left_join( | |
BRCA.rnaseq %>% | |
mutate( | |
bcr_patient_barcode = | |
substr(bcr_patient_barcode, 1, 12) | |
), | |
by = "bcr_patient_barcode") -> BRCA.rnaseq_and_status | |
#status BRCA.rnaseq_and_status$patient.vital_status | |
library(FSelector) | |
information.gain(patient.vital_status~., data = BRCA.rnaseq_and_status) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment