Description Usage Arguments Details Value Author(s) Examples
View source: R/load.molecular.aberration.data.R
Load the molecular aberration profiles/feature annotation
1 | load.molecular.aberration.data(file, patients = NULL, annotation.fields = NULL);
|
file |
file name of the matrix containing molecular and annotation data. If it does not contain an _absolute_ path, the file name is _relative_ to the current working directory, 'getwd()' as in read.table. |
patients |
vector of patients IDs. Must match colnames from aberration file |
annotation.fields |
vector referencing the column names for the feature annotation columns |
The annotation.fields argument will look for any colnames which contain the values specified in annotation.fields and then the column will be renamed to the value that matched from annotation.fields.
If the patients argument is specified then the patient molecular aberration profiles are returned. If the annotation.fields argument is specified then the feature annotation is returned. If both are specified then the two matrices are returned in a list. If neither is specified then the entire matrix with the mix of patients and annotation is returned.
Natalie Fox
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | example.aberration.data <- paste0(
path.package('iSubGen'),
'/exdata/cna_profiles.txt'
);
# Load the CNA profiles for patients EP001 through EP030
cna.profiles <- load.molecular.aberration.data(
example.aberration.data,
patients = c(paste0('EP00',1:9), paste0('EP0',10:30))
);
# Load feature annotation for the CNA data
cna.annotation <- load.molecular.aberration.data(
example.aberration.data,
annotation.fields = c('gene','start','end')
);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.