simpleDescriptors: Function "simpleDescriptors"

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/peplib.R

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

1
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.

Details

See the descriptors method in Descriptors for details.

Value

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

Author(s)

Andrew White

See Also

Descriptors

Examples

 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)

peplib documentation built on May 29, 2017, 10:52 p.m.