transposon: transposon

Description Usage Arguments Examples

Description

Operator for transposons.

Usage

1
transposon(individuals, chrConf, mutationChance)

Arguments

individuals

dataset returned by Individuals().

chrConf

Configuration of chromosomes returned by splitChromosomes().

mutationChance

Chance for a transposon mutation to occur.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
library(ALL)
data(ALL)

demoALL<-ALL[1:12,1:8]

set.seed(1234)
population<-InitialPopulation(demoALL, 4, 9)
individuals<-Individuals(population)

chrConf<-splitChromosomes(demoALL, 2)
chrConf
individuals

set.seed(123)
transposon(individuals, chrConf, 20)
 
## End(Not run)

Example output

Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package:BiocGenericsThe following objects are masked frompackage:parallel:

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked frompackage:stats:

    IQR, mad, sd, var, xtabs

The following objects are masked frompackage:base:

    anyDuplicated, append, as.data.frame, basename, cbind, colnames,
    dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
    grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
    rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: MLInterfaces
Loading required package: Rcpp
Loading required package: annotate
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors

Attaching package:S4VectorsThe following object is masked frompackage:base:

    expand.grid

Loading required package: XML
Loading required package: cluster

Generating the initial population...
Generating random chromosomes...

No rest...
	Generating Individuals...
 [1] 1 1 1 1 1 1 2 2 2 2 2 2
  Id 1000_at 1001_at 1002_f_at 1003_s_at 1004_at 1005_at 1006_at 1007_s_at
1  1       0       1         0         1       0       1       1         1
2  1       0       0         1         1       1       1       1         1
3  2       1       0         1         1       1       1       1         1
4  2       1       0         1         1       1       1       1         0
  1008_f_at 1009_at 100_g_at 1010_at
1         1       1        1       1
2         1       1        1       0
3         0       0        1       1
4         1       1        0       1
	Applying 1 Transposons mutations...
  Id 1000_at 1001_at 1002_f_at 1003_s_at 1004_at 1005_at 1006_at 1007_s_at
1  1       0       1         0         1       0       1       1         1
2  1       0       0         1         1       1       1       1         1
3  2       1       0         1         1       1       1       1         1
4  2       1       0         1         0       1       1       1         0
  1008_f_at 1009_at 100_g_at 1010_at
1         1       1        1       1
2         1       1        1       0
3         0       0        1       1
4         1       1        0       1

dGAselID documentation built on May 2, 2019, 1:27 p.m.