Discrete sparse descriptor.

Description

DiscreteSparse returns the sum of sparse descriptors of amino acids in a protein sequence.

Usage

1

Arguments

x

A string of amino acid letters

Value

A 20 dimensional numeric vector

Examples

1
2
x = "LALHLLLLHMHMMDRSLLLH"
DiscreteSparse(x)