Learn R Programming

ProteinDescriptors (version 0.1.0)

ShiftedDiscreteSparse: Discrete sparse descriptor.

Description

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

Usage

ShiftedDiscreteSparse(x)

Arguments

x
A string

Value

A 20 dimensional numeric vector

Examples

Run this code
x = "LALHLLLLHMHMMDRSLLLH"
ShiftedDiscreteSparse(x)

Run the code above in your browser using DataLab