meanScaledHydropathy {idpr} | R Documentation

## Calculate the Mean Scaled Hydropathy

### Description

This function utilizes the scaledHydropathyGlobal() function and easily returns the averaged hydropathy as a numeric value.

### Usage

    meanScaledHydropathy(sequence, roundScore = NA)

### Arguments

`sequence` | amino acid sequence as a single character string, a vector of single characters, or an AAString object. It also supports a single character string that specifies the path to a .fasta or .fa file.
`roundScore` | Number of decimals the score will be rounded to. NA by default.

### Value

A numeric value equal to the Mean Scaled Hydropathy.

### References

Kyte, J., & Doolittle, R. F. (1982). A simple method for displaying the hydropathic character of a protein. Journal of molecular biology, 157(1), 105-132.

### See Also

`KDNorm` for residue values.

Other scaled hydropathy functions: `KDNorm`, `scaledHydropathyGlobal()`, `scaledHydropathyLocal()`

### Examples

    #Amino acid sequences can be character strings
    aaString <- "ACDEFGHIKLMNPQRSTVWY"
    #Amino acid sequences can also be character vectors
    aaVector <- c("A", "C", "D", "E", "F",
                  "G", "H", "I", "K", "L",
                  "M", "N", "P", "Q", "R",
                  "S", "T", "V", "W", "Y")
     #Alternatively, .fasta files can also be used by providing

    #Calculate the mean scaled hydropathy
     meanScaledHydropathy(aaString)
     meanScaledHydropathy(aaVector)

[Package idpr version 1.2.0 Index]