GARS_create_rnd_population: Create a random chromosomes population

Description Usage Arguments Value Author(s) Examples

View source: R/GARS_createRndPopulation.R

Description

This function creates the initial random population of chromosomes

Usage

1
GARS_create_rnd_population(data, chr.len, chr.num = 1000)

Arguments

data

A SummarizedExperiment object or a matrix or a data.frame. In case of matrix or data.frame:

  • Rows and Cols have to be, respectively, observations and features. The variables are tipically genes;

  • GARS also accept other -omic features as well as any continuous or factorial variables (e.g. sex, age, cholesterol level,...);

  • Usually the number of observation is << than the number of features

'

chr.len

The length of chromosomes. This value corresponds to the desired length of the feature set.

chr.num

The number of chromosomes to generate. Default is 1000

Value

A matrix representing the chromosomes population: each column is a chromosome and each element correspond to the feature position in 'data'

Author(s)

Mattia Chiesa, Luca Piacentini

Examples

1
2
3
# use example data:
data(GARS_data_norm)
GARS_create_rnd_population(GARS_data_norm, chr.len=10, chr.num=100)

BioinfoMonzino/GARS documentation built on Aug. 2, 2021, 1:08 a.m.