patient | R Documentation |
A number of qualities describing 58 colon cancer patients.
The same patient samples are described in the "microarray
", "SNV
"
and "CNA
" datasets.
patient
A data frame with 5 columns and 58 rows. Each row indicates a different patient sample, with the following columns describing a feature of the sample:
The sex of the paient, either "male" or "female"
The stage of the patient's cancer, one of "I", "II", "III", "IV", or NA
The microsatellite instabiltiy of the cancer, either "MSS" or "MSI-High"
The proportion of C to A or G to T base changes between the sample and reference genome
The proportion of C to T or G to A base changes between the sample and reference genome
The proportion of C to G or G to C base changes between the sample and reference genome
The proportion of T to A or A to T base changes between the sample and reference genome
The proportion of T to G or A to C base changes between the sample and reference genome
The proportion of T to C or A to G base changes between the sample and reference genome
Christine P'ng
# use sample to set colour scheme
sex.colours <- replace(as.vector(patient$sex), which(patient$sex == 'male'),'dodgerblue');
sex.colours <- replace(sex.colours, which(patient$sex == 'female'), 'pink');
len <- apply(SNV[1:15], 2, function(x){mutation.count <- length(which(x == 1))});
create.barplot(
# filename = tempfile(pattern = 'Using_patient_dataset', fileext = '.tiff'),
formula = len ~ colnames(SNV[1:15]) ,
data = SNV,
main = 'patient dataset',
xaxis.rot = 45,
ylimits = c(0,30),
yat = seq(0,30,5),
col = sex.colours,
description = 'Barplot created by BoutrosLab.plotting.general'
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.