[Seqinr-commits] r1458 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Sep 11 11:31:37 CEST 2008


Author: simonpenel
Date: 2008-09-11 11:31:37 +0200 (Thu, 11 Sep 2008)
New Revision: 1458

Modified:
   pkg/man/dist.alignment.Rd
Log:
More description for dist.alignment.Rd


Modified: pkg/man/dist.alignment.Rd
===================================================================
--- pkg/man/dist.alignment.Rd	2008-09-01 08:21:22 UTC (rev 1457)
+++ pkg/man/dist.alignment.Rd	2008-09-11 09:31:37 UTC (rev 1458)
@@ -3,7 +3,12 @@
 \title{ Pairwise Distances from Aligned Protein or DNA/RNA Sequences }
 \description{
   These functions compute a matrix of pairwise distances from aligned sequences 
-  using similarity (Fitch matrix) or identity matrix.
+  using similarity (Fitch matrix, for protein sequences only) or identity matrix 
+  (for protein and DNA sequences).
+  The resulting matrix contains the squared root of the pairwise distances.
+  For example, if identity between 2 sequences is 80%, the matrix will gives
+  the squared root of (1.0 - 0.8) i.e. 0.4472136.
+
 }
 \usage{
 dist.alignment(x, matrix = c("similarity", "identity"))
@@ -30,5 +35,6 @@
  myseqs <- read.alignment(file = system.file("sequences/test.mase", 
  package = "seqinr"), format = "mase")
  dist.alignment(myseqs, matrix = "identity" )
+ as.matrix(dist.alignment(myseqs, matrix = "identity" ))
 }
 \keyword{ manip }



More information about the Seqinr-commits mailing list