Description Usage Arguments Details Value Author(s) See Also Examples
This function bootstraps K-means or hierarchical clusters and builds a consensus tree (consensus group for K-means) from the bootstrap result.
1 2 3 |
anovaobj |
The result object for fitting ANOVA model. |
term |
The factor (in formula) used in clustering. The expression level for this term will be used in clustering. This term has to correspond to the gene list, e.g, idx.gene in this function. The gene list should be the significant hits in testing this term. |
idx.gene |
A vector indicating the list of differentially expressed genes. The expression level of these genes will be used to construct the cluster. |
what |
What to be clustered, either gene or sample. |
method |
The clustering method. Right now hierarchical clustering ("hc") and K-means ("kmean") are available. |
dist.method |
Distance measure to be used in hierarchical
clustering. Besides the methods listed in |
hc.method |
The agglomeration method to be used in hierarchical
clustering. See |
kmean.ngroups |
The number of groups for K-means cluster. |
n.perm |
Number of bootstraps. If it is 1, this function will cluster the observed data. If it is bigger than 1, a bootstrap will be performed. |
Normally after the F test, user can select a list of differentially expressed
genes. The next step is to investigate the relationship among these
genes. Using the expression levels of these genes, the user can cluster the
genes or the samples using either hierarchical or K-means clustering
algorithm. In order to evaluate the stability of the relationship,
this function bootstraps the data, re-fits the model and recluster the
genes/samples. Then for a certain number of bootstrap iterations, say,
1000, we have 1000 cluster results. We can use
consensus
to build the consensus tree from
these 1000 trees.
Note that if you have a large number (say, more than 100) of genes/samples to cluster, hierarchical clustering could be very unstable. A slight change in the data can result in a big change in the tree structure. In that case, K-means will give better results.
An object of class macluster
.
Hao Wu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # load in data
data(abf1)
# fit the anova model
## Not run:
fit.fix = fitmaanova(abf1,formula = ~Strain)
# test Strain effect
test.fix = matest(abf1, fit.fix, term="Strain",n.perm= 1000)
# pick significant genes - pick the genes selected by Fs test
idx <- volcano(test.fix)$idx.Fs
# do k-means cluster on genes
gene.cluster <- macluster(fit.fix, term="Strain", idx, what="gene",
method="kmean", kmean.ngroups=5, n.perm=100)
# get the consensus group
consensus(gene.cluster, 0.5)
# HC cluster on samples
sample.cluster <- macluster(fit.fix, term="Strain", idx, what="sample",method="hc")
# get the consensus group
consensus(sample.cluster, 0.5)
## End(Not run)
|
Attaching package: 'maanova'
The following object is masked from 'package:base':
norm
Warning message:
In any(parsed.formula$random) :
coercing argument of type 'double' to logical
Doing F-test on observed data ...
Doing permutation. This may take a long time ...
Finish permutation # 100
Finish permutation # 200
Finish permutation # 300
Finish permutation # 400
Finish permutation # 500
Finish permutation # 600
Finish permutation # 700
Finish permutation # 800
Finish permutation # 900
Finish permutation # 1000
There were 50 or more warnings (use warnings() to see the first 50)
Permutation number 2
Permutation number 3
Permutation number 4
Permutation number 5
Permutation number 6
Permutation number 7
Permutation number 8
Permutation number 9
Permutation number 10
Permutation number 11
Permutation number 12
Permutation number 13
Permutation number 14
Permutation number 15
Permutation number 16
Permutation number 17
Permutation number 18
Permutation number 19
Permutation number 20
Permutation number 21
Permutation number 22
Permutation number 23
Permutation number 24
Permutation number 25
Permutation number 26
Permutation number 27
Permutation number 28
Permutation number 29
Permutation number 30
Permutation number 31
Permutation number 32
Permutation number 33
Permutation number 34
Permutation number 35
Permutation number 36
Permutation number 37
Permutation number 38
Permutation number 39
Permutation number 40
Permutation number 41
Permutation number 42
Permutation number 43
Permutation number 44
Permutation number 45
Permutation number 46
Permutation number 47
Permutation number 48
Permutation number 49
Permutation number 50
Permutation number 51
Permutation number 52
Permutation number 53
Permutation number 54
Permutation number 55
Permutation number 56
Permutation number 57
Permutation number 58
Permutation number 59
Permutation number 60
Permutation number 61
Permutation number 62
Permutation number 63
Permutation number 64
Permutation number 65
Permutation number 66
Permutation number 67
Permutation number 68
Permutation number 69
Permutation number 70
Permutation number 71
Permutation number 72
Permutation number 73
Permutation number 74
Permutation number 75
Permutation number 76
Permutation number 77
Permutation number 78
Permutation number 79
Permutation number 80
Permutation number 81
Permutation number 82
Permutation number 83
Permutation number 84
Permutation number 85
Permutation number 86
Permutation number 87
Permutation number 88
Permutation number 89
Permutation number 90
Permutation number 91
Permutation number 92
Permutation number 93
Permutation number 94
Permutation number 95
Permutation number 96
Permutation number 97
Permutation number 98
Permutation number 99
Permutation number 100
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 2
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 3
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 4
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 5
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 6
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 7
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 8
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 9
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 10
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 11
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 12
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 13
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 14
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 15
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 16
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 17
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 18
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 19
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 20
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 21
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 22
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 23
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 24
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 25
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 26
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 27
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 28
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 29
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 30
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 31
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 32
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 33
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 34
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 35
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 36
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 37
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 38
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 39
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 40
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 41
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 42
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 43
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 44
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 45
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 46
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 47
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 48
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 49
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 50
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 51
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 52
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 53
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 54
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 55
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 56
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 57
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 58
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 59
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 60
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 61
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 62
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 63
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 64
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 65
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 66
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 67
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 68
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 69
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 70
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 71
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 72
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 73
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 74
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 75
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 76
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 77
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 78
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 79
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 80
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 81
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 82
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 83
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 84
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 85
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 86
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 87
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 88
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 89
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 90
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 91
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 92
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 93
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 94
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 95
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 96
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 97
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 98
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 99
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Permutation number 100
The "ward" method has been renamed to "ward.D"; note new "ward.D2"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.