Learn R Programming

peplib (version 1.5.1)

simpleDescriptors: Function "simpleDescriptors"

Description

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.

Usage

simpleDescriptors(seqs, response = numeric(0), include.statistics = FALSE)

Arguments

seqs
An Sequences
response
An optional numeric vector which contains the responses for each sequence in seqs.
include.statistics
If p-values which estimate the importance of each descriptor are desired, set this to true.

Value

A Descriptors is returned. If the statistics were included, the p-values may be accessed in the pvalues slot (value@pvalues).

Details

See the descriptors method in Descriptors for details.

See Also

Descriptors

Examples

Run this code

##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)


Run the code above in your browser using DataLab