Description Usage Arguments Value Examples
View source: R/protDistanceCompute.R
Compute distances between a particular protein or profile and all other proteins, and list the nearest ones
1 | nearestProts(protName, n.nearest = 5, distProts, protNames, profile)
|
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 |
List of the proteins in protName closest to protName or to the profile
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)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.