nearestProts: Compute distances between a particular protein or profile and...

Description Usage Arguments Value Examples

View source: R/protDistanceCompute.R

Description

Compute distances between a particular protein or profile and all other proteins, and list the nearest ones

Usage

1
nearestProts(protName, n.nearest = 5, distProts, protNames, profile)

Arguments

protName

Name of protein to which distances are to be computed

n.nearest

Number of nearest proteins to list

distProts

distance matrix created by, for example

protNames

A list of all proteins in a dataset

profile

dataframe of profiles for proteins

Value

List of the proteins in protName closest to protName or to the profile

Examples

1
2
3
4
5
data(protNSA_AT5tmtMS2)
distUse <- dist(protNSA_AT5tmtMS2[,seq_len(9)], method="euclidean")
protsUse <- names(protNSA_AT5tmtMS2)
nearestProts(protName="CTSD", n.nearest=10,  distProts=distUse,
  protNames=protsUse, profile=protNSA_AT5tmtMS2[,seq_len(9)])

mooredf22/protlocassign0p1p1 documentation built on Feb. 7, 2022, 1:55 a.m.