Description Usage Arguments Details Value Author(s) See Also Examples
This produces a Descriptors
object which is smaller and
more simple than those produced by a default call to the normal method for
producing descriptors, Descriptors
.
1 | simpleDescriptors(seqs, response = numeric(0), include.statistics = FALSE)
|
seqs |
An |
response |
An optional numeric vector which contains the responses for each
sequence in |
include.statistics |
If p-values which estimate the importance of each descriptor are desired, set this to true. |
See the descriptors
method in Descriptors
for details.
A Descriptors
is returned. If the statistics were
included, the p-values may be accessed in the pvalues slot (value@pvalues).
Andrew White
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##Finding correlation with a response
## Not run:
data(AMPSequences)
data(AMPSequences.response)
AMP.desc <- simpleDescriptors(AMPSequences, response=AMPSequences.response[,1])
print(cor(AMP.desc))
## End(Not run)
##Discovering which descriptors are important
data(TULASequences)
TULA.desc <- simpleDescriptors(TULASequences, include.statistics=TRUE)
print(TULA.desc@pvalues)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.