[Rcolony-commits] r36 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue May 5 14:33:14 CEST 2009


Author: jonesor
Date: 2009-05-05 14:33:13 +0200 (Tue, 05 May 2009)
New Revision: 36

Modified:
   pkg/man/build.colony.input.Rd
   pkg/man/get.colony.data.Rd
   pkg/man/get.interm.data.Rd
   pkg/man/get.parentage.Rd
   pkg/man/monitor.colony.Rd
   pkg/man/plotsibs.Rd
   pkg/man/rcolony-package.Rd
   pkg/man/run.colony.Rd
Log:
Fixed some errors reported by R-Forge

Modified: pkg/man/build.colony.input.Rd
===================================================================
--- pkg/man/build.colony.input.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/build.colony.input.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -19,21 +19,21 @@
 
 \details{
 
-This ``wizard'' will guide you through the process of creating an input file to be executed by Colony2.
+This wizard will guide you through the process of creating an input file to be executed by Colony2.
 
-You are first requested to specify the \textbf{male and female mating system}. Here in our specific context, male``monogamous'' signifies that two offspring in the OFS sample must be fathered by 2 different males if they have separate mothers. In other words, male ``monogamous'' specifies that no paternal halfsibs exist in the OFS sample. Note that the mating system herein is defined with regard to the samples being analyzed, not to the population or species from where the samples are taken. For example, consider a population in which males mate singly with females in a breeding season but mate with different females in different breeding seasons. An OFS sample with individuals taken from multiple breeding seasons may contain offspring from different mothers but from a single male (i.e. paternal halfsibs). Therefore, for the purpose of the Colony analysis, the male mating system should still be set as ``polygamous''. The female mating system is similarly defined. Note also that when both males and females are defined as polygamous and the markers have genotyping errors, the computation can become very slow simply because all offspring in the OFS can be related in the pedigree and must be considered together in computing the likelihood of a configuration.
+You are first requested to specify the \textit{male and female mating system}. Here in our specific context, male monogamous signifies that two offspring in the OFS sample must be fathered by 2 different males if they have separate mothers. In other words, male monogamous specifies that no paternal halfsibs exist in the OFS sample. Note that the mating system herein is defined with regard to the samples being analyzed, not to the population or species from where the samples are taken. For example, consider a population in which males mate singly with females in a breeding season but mate with different females in different breeding seasons. An OFS sample with individuals taken from multiple breeding seasons may contain offspring from different mothers but from a single male (i.e. paternal halfsibs). Therefore, for the purpose of the Colony analysis, the male mating system should still be set as polygamous. The female mating system is similarly defined. Note also that when both males and females are defined as polygamous and the markers have genotyping errors, the computation can become very slow simply because all offspring in the OFS can be related in the pedigree and must be considered together in computing the likelihood of a configuration.
 
-\textbf{Species ploidy:} Colony can be used for both diploid species and haplodiploid species. In both cases, the offspring are always assumed to be diploid (for haploid offspring, please use a previous version of Colony). In the haplodiploid case, males and females are assumed to be haploid and diploid respectively (for species with diploid males and haploid females, you just need to swap the two sexes).
+\textit{Species ploidy:} Colony can be used for both diploid species and haplodiploid species. In both cases, the offspring are always assumed to be diploid (for haploid offspring, please use a previous version of Colony). In the haplodiploid case, males and females are assumed to be haploid and diploid respectively (for species with diploid males and haploid females, you just need to swap the two sexes).
 
-\textbf{Length of run:} Longer runs consider more configurations in the searching process and thus are more likely to find the maximum likelihood configuration, but take more time to do so. In most cases, a medium run is a good compromise.
+\textit{Length of run:} Longer runs consider more configurations in the searching process and thus are more likely to find the maximum likelihood configuration, but take more time to do so. In most cases, a medium run is a good compromise.
 
-\textbf{Update allele frequency:} Allele frequencies are required in calculating the likelihood of a configuration. These frequencies can be provided by the user (see below) or are calculated by Colony using the genotypes in OFS, CMS (optional) and CFS (optional). In the latter case, you can ask Colony to update allele frequency estimates by taking into account of the inferred sibship and parentage relationships during the process of searching for the maximum likelihood configuration. However, updating allele frequencies could increase computational time substantially, and may not improve relationship inference much if the genetic structure of your sample is not strong (i.e. family sizes small and evenly distributed, most candidates are not assigned parentage). I suggest not updating allele frequencies except when family sizes (unknown) are large relative to sample size.
+\textit{Update allele frequency:} Allele frequencies are required in calculating the likelihood of a configuration. These frequencies can be provided by the user (see below) or are calculated by Colony using the genotypes in OFS, CMS (optional) and CFS (optional). In the latter case, you can ask Colony to update allele frequency estimates by taking into account of the inferred sibship and parentage relationships during the process of searching for the maximum likelihood configuration. However, updating allele frequencies could increase computational time substantially, and may not improve relationship inference much if the genetic structure of your sample is not strong (i.e. family sizes small and evenly distributed, most candidates are not assigned parentage). I suggest not updating allele frequencies except when family sizes (unknown) are large relative to sample size.
 
-\textbf{Number of runs:} For the same dataset and parameters of a project, multiple runs can be conducted so that the best configuration with the maximum likelihood is more likely to be found and the uncertainties of the estimates (see below) are more reliable. However, it is very time costly to do multiple runs. Furthermore, in typical situations a single run suffices.
+\textit{Number of runs:} For the same dataset and parameters of a project, multiple runs can be conducted so that the best configuration with the maximum likelihood is more likely to be found and the uncertainties of the estimates (see below) are more reliable. However, it is very time costly to do multiple runs. Furthermore, in typical situations a single run suffices.
 
-\textbf{Random number seed:} Colony takes a simulated annealing algorithm to search for the ML configuration. It is a Monte Carlo method similar to MCMC, with a fine control of re-configuration acceptance rate though ÒtemperatureÓ. Starting from the initial configuration in which all individuals are unrelated except for those individuals with known relationships, a random change is made to part of the configuration to generate a new configuration. The likelihoods of the new and old configurations are then calculated and compared to determine whether the new one is accepted or rejected. If the new likelihood is larger than the old one, then the new configuration is accepted. Otherwise, an acceptance rate is calculated using the current temperature, the new and old likelihood values, and is compared with a random number drawn from a uniform distribution in the range of [0,1]. If the random number value is smaller than the acceptance rate, the new configuration is still accepted although it is inferior to the old one. This is intended to avoid the algorithm getting stuck on a local maximum in the likelihood surface. Therefore, the random number seed partially determines the searching path. With exactly the same data and parameter values, different runs using different random number seeds may give slightly different final best configuration and likelihood values. Such a case occurs occasionally when there is not enough information in the maker data to infer the genetic structure, the actual genetic structure of the sample is extremely weak, or the sample size is very large (i.e. thousands of individuals). For example, when the number of markers is small, and/or the markers are not informative (few alleles with uneven frequency distribution), and/or most families are extremely small (e.g. one offspring per sibship), it is difficult to have replicate runs (using different random number seeds) converge to the same best configuration. One can do multiple runs for the same dataset by using different random number seeds to check/confirm the reliability of the analysis results. In the case replicate runs yield different results, the good news is that relationships reliably inferred are usually reconstructed consistently among runs, while dubious relationships are inferred inconsistently among the runs. One just needs to focus on those reliable, consistent relationships and ignore (abandon) those unreliable, inconsistent relationships in downstream analyses.
+\textit{Random number seed:} Colony takes a simulated annealing algorithm to search for the ML configuration. It is a Monte Carlo method similar to MCMC, with a fine control of re-configuration acceptance rate though ÒtemperatureÓ. Starting from the initial configuration in which all individuals are unrelated except for those individuals with known relationships, a random change is made to part of the configuration to generate a new configuration. The likelihoods of the new and old configurations are then calculated and compared to determine whether the new one is accepted or rejected. If the new likelihood is larger than the old one, then the new configuration is accepted. Otherwise, an acceptance rate is calculated using the current temperature, the new and old likelihood values, and is compared with a random number drawn from a uniform distribution in the range of [0,1]. If the random number value is smaller than the acceptance rate, the new configuration is still accepted although it is inferior to the old one. This is intended to avoid the algorithm getting stuck on a local maximum in the likelihood surface. Therefore, the random number seed partially determines the searching path. With exactly the same data and parameter values, different runs using different random number seeds may give slightly different final best configuration and likelihood values. Such a case occurs occasionally when there is not enough information in the maker data to infer the genetic structure, the actual genetic structure of the sample is extremely weak, or the sample size is very large (i.e. thousands of individuals). For example, when the number of markers is small, and/or the markers are not informative (few alleles with uneven frequency distribution), and/or most families are extremely small (e.g. one offspring per sibship), it is difficult to have replicate runs (using different random number seeds) converge to the same best configuration. One can do multiple runs for the same dataset by using different random number seeds to check/confirm the reliability of the analysis results. In the case replicate runs yield different results, the good news is that relationships reliably inferred are usually reconstructed consistently among runs, while dubious relationships are inferred inconsistently among the runs. One just needs to focus on those reliable, consistent relationships and ignore (abandon) those unreliable, inconsistent relationships in downstream analyses.
  
-\textbf{Number of threads:} The current version of Colony allows parallel computation using multiple cores/CPUs with shared memory in a single computer. With slight modification, it can also use multiple CPUs with distributed memory in different computers. The parallelization is realized by using MPI, Message  Passing Interface. In brief, parallization is realized at the calculation of likelihood over loci. Each thread calculates the sub-sum of the log-likelihood of a subset of the loci. Once all threads have compeleted their share of computation, the sub-sums are summed and returned as the total log-likelihood. The number of threads specifies how many CPUs/cores of your computer you want to use in the computation. Ideally it should always be defined an integer not larger than the total number of CPUs/Cores of your computer or the number of loci, whichever is smaller. Too many threads actually slows down the computation because of the inter-CPU communication cost. This parallization algorithm is implemented in the current version of Colony.
+\textit{Number of threads:} The current version of Colony allows parallel computation using multiple cores/CPUs with shared memory in a single computer. With slight modification, it can also use multiple CPUs with distributed memory in different computers. The parallelization is realized by using MPI, Message  Passing Interface. In brief, parallization is realized at the calculation of likelihood over loci. Each thread calculates the sub-sum of the log-likelihood of a subset of the loci. Once all threads have compeleted their share of computation, the sub-sums are summed and returned as the total log-likelihood. The number of threads specifies how many CPUs/cores of your computer you want to use in the computation. Ideally it should always be defined an integer not larger than the total number of CPUs/Cores of your computer or the number of loci, whichever is smaller. Too many threads actually slows down the computation because of the inter-CPU communication cost. This parallization algorithm is implemented in the current version of Colony.
 
 Another parallization algorithm is that each thread generates a new configuration and calculates its log-likelihood. Then all the threads poll to see whether any new configuration is accepted. If the number of accepted new configurations is zero, then all threads go on. Otherwise, the accepted new configuration of the largest likelihood is broadcased to all threads. The number of threads specifies how many CPUs/cores of your computer you want to use in the computation. Ideally it should be equal to the total number of CPUs/Cores of your computer. When the number of threads is larger than this optimum, the computation becomes slower because of the intercommunication cost among the threads. This parallization algorithm is not included in the current version of Colony.
 
@@ -42,9 +42,9 @@
 
 If 2 or more threads are specified, you need your user credentials to launch Colony for parallel computation. The first time you start the run, you will be asked for the your user account, password and domain. These 3 pieces of information are the same as those you give when you logon the computer. 
 
-\textbf{Note to the project.} (not yet implemented in this R version) You can put anything in the text box, such as when you set up the project, notes to the dataset, etc.
+\textit{Note to the project.} (not yet implemented in this R version) You can put anything in the text box, such as when you set up the project, notes to the dataset, etc.
 
-\textbf{Sibship size prior.} You can choose to use or not use a prior distribution for the paternal and maternal sibship sizes of the offspring. Select ``No'' if you have no idea about the average sibship size, or you simply do not want to use a prior. Select ``Yes'' if you have a rough estimate of the average paternal and maternal sibship sizes and want to use them in the inference. If you select ``Yes'', you are required to provide the average paternal ($np$) and maternal ($nm$) sibship sizes. Using paternal sibship prior as an example, the prior probability is calculated using EwenÕs sampling formula as follows. Suppose paternal sibship size distribution is $m={m1, m2,..., mn}$, where $mi (i=1, ..., n)$ is the number of paternal sibships each consisting of exactly $i$ offspring. The total number of offspring is EQUATION, and the average number of non-empty paternal sibships (= the number of contributing fathers) is $k =$ EQUATION, where $\alpha$ is a concentration parameter that determines the degree to which individuals are allocated to the same father. We can substitute k by $n/np$ and solve numerically for $\alpha$. Given $\alpha$, the prior probability of $m={m1, m2, ..., mn}$ is .
+\textit{Sibship size prior.} You can choose to use or not use a prior distribution for the paternal and maternal sibship sizes of the offspring. Select No if you have no idea about the average sibship size, or you simply do not want to use a prior. Select Yes if you have a rough estimate of the average paternal and maternal sibship sizes and want to use them in the inference. If you select Yes, you are required to provide the average paternal ($np$) and maternal ($nm$) sibship sizes. Using paternal sibship prior as an example, the prior probability is calculated using EwenÕs sampling formula as follows. Suppose paternal sibship size distribution is $m={m1, m2,..., mn}$, where $mi (i=1, ..., n)$ is the number of paternal sibships each consisting of exactly $i$ offspring. The total number of offspring is EQUATION, and the average number of non-empty paternal sibships (= the number of contributing fathers) is $k =$ EQUATION, where $\alpha$ is a concentration parameter that determines the degree to which individuals are allocated to the same father. We can substitute k by $n/np$ and solve numerically for $\alpha$. Given $\alpha$, the prior probability of $m={m1, m2, ..., mn}$ is .
 
 Note that whenever the male or female mating system parameters have changed, the sibship prior is reset automatically to the default value. Therefore, if you decide to use the sibship prior, you should input the prior parameters \textit{after} setting the mating system parameters.
 
@@ -102,10 +102,10 @@
 }
 
 \value{
-A text file is produced.
+A text file is produced. This file can be used by Colony2 as an input file.
 }
 
-\references{}
+\references{ Wang, J. (2004) Sibship reconstruction from genetic data with typing errors.  Genetics 166: 1963-1979. }
 \author{Owen R. Jones}
 \note{}
 \seealso{\code{\link{run.colony}}}

Modified: pkg/man/get.colony.data.Rd
===================================================================
--- pkg/man/get.colony.data.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/get.colony.data.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -1,36 +1,32 @@
 \name{get.colony.data}
 \alias{get.colony.data}
 
-\title{This function creates a data object from the Colony2 outputs. }
-\description{
-When provided with the directory name, and the name of the *.DAT colony input file, this function creates a list object containing pertinent information from the Colony output files.}
-\usage{
-get.colony.data(datadir, filename)
-}
+\title{This function creates a data object from the Colony2 outputs.}
 
+\description{When provided with the directory name, and the name of the *.DAT colony input file, this function creates a list object containing pertinent information from the Colony output files.}
+
+\usage{get.colony.data(datadir, filename)}
+
 \arguments{
   \item{datadir}{The path to the directory that contains the Colony output files and the *.DAT Colony input file.}
   \item{filename}{Optional. The name of the Colony input file. If this argument is omitted, the command will search for a *.DAT file in the data directory (datadir) and use that as the input file.}
 }
-\details{
-}
-\value{
-A list, containing data extracted from the Colony output files
-}
-\references{http://www.zoo.cam.ac.uk/ioz/software.htm#COLONY}
-\author{Owen R. Jones}
-\note{ ~~further notes~~ 
+\details{}
+\value{A list, containing data extracted from the Colony output files}
 
- ~Make other sections like Warning with \section{Warning }{....} ~
-}
-\seealso{ ~~objects to See Also as \code{\link{help}}, ~~~ }
+\references{\url{http://www.zoo.cam.ac.uk/ioz/software.htm#COLONY}}
+
+\author{Owen R. Jones}
+\note{}
+\seealso{\code{\link{run.colony}}, \code{\link{build.colony.input}}}
 \examples{
 #Not run
 #mynewdata<-get.colony.data("/Users/FredBlogs/Documents/Example/")
 #mynewdata<-get.colony.data("/Users/FredBlogs/Documents/Example/","Example1.DAT")
 
 }
-% Add one or more standard keywords, see file 'KEYWORDS' in the
-% R documentation directory.
-\keyword{ ~kwd1 }
-\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line
+
+
+\keyword{manip}
+
+

Modified: pkg/man/get.interm.data.Rd
===================================================================
--- pkg/man/get.interm.data.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/get.interm.data.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -1,73 +1,54 @@
 \name{get.interm.data}
 \alias{get.interm.data}
-%- Also NEED an '\alias' for EACH other topic documented here.
-\title{ A funciton to collect intermediate data produced by Colony2 while it is running. }
+
+\title{ A function to collect intermediate data produced by Colony2 while it is running. }
 \description{
-While it is running, Colony2 produces output to indicate it's progress. }
+While it is running, Colony2 produces output to indicate it's progress. This function allows R to import the outputs produced.}
+
 \usage{
 get.interm.data(v1="CrLogL",datadir=getwd())
 }
 %- maybe also 'usage' for other objects documented here.
 \arguments{
-  \item{colony.object}{ ~~Describe \code{colony.object} here~~ }
-  \item{maintitle}{ ~~Describe \code{maintitle} here~~ }
-  \item{prob}{ ~~Describe \code{prob} here~~ }
-  \item{pairwise}{ ~~Describe \code{pairwise} here~~ }
+  \item{v1}{The name of the variable required. }
+  \item{datadir}{ ~~Describe \code{colony.object} here~~ }
+
 }
 \details{
-  ~~ If necessary, more details than the description above ~~
+The intermediate results available are:
+
+\textit{Run} : The replicate run number. Variable
+\textit{Tmr} : The number of temperature reductions so far within the run. Variable
+\textit{Itr} : The number of iterates (reconfigurations considered) so far within the run. Variable
+\textit{NSucc} : The number of successful (accepted) reconfigurations so far within the temperature. Variable
+\textit{NSuccLmt} : Maximum (Limit) number of successful reconfigurations allowed within the temperature. Constant
+\textit{NFail1} : The number of reconfigurations since the last update of the best likelihood within the temperature. Variable
+\textit{NFail1Lmt} : Maximum (Limit) value of  NFail1 within the temperature. Constant
+\textit{NFail2} : The total number of reconfigurations since the last update of the best likelihood within the run. Variable
+\textit{NFail2Lmt} : Maximum (Limit) value of  NFail2 within a run. Constant. The run terminates when NFail2Lmt=NFail2 and the successful rate (see below) < 0.01
+\textit{SucRate\%} : =NSucc / Itr. Variable
+\textit{SucLmt\%} : =NSucc / NSuccLmt. Variable
+\textit{FailLmt\%} : =NFail1 / NFail1Lmt. Variable
+\textit{IterLmt\%} : = (Number of iterates) / (Maximum number of iterates) within a temperature. Variable
+\textit{CrLogL} : The log likelihood of the current configuration. Variable
+\textit{#F1} : Current number of paternal sib families. Variable
+\textit{#F2} : Current number of maternal sib families. Variable
+\textit{#F3} : Current number of sib family clusters. Variable
+\textit{#FS} : Current number of full sib families. Variable
+\textit{HSPair} : Current number of half-sib dyads. Variable
+\textit{FSPair} : Current number of full-sib dyads. Variable
+\textit{#AssgnC1} : Current number of candidate males that are assigned parentage. Variable
+\textit{#AssgnC2} : Current number of candidate females that are assigned parentage. Variable
+\textit{#AssgnP1} : Current number of offspring that have assigned paternity. Variable
+\textit{#AssgnP2} : Current number of offspring that have assigned maternity. Variable
 }
 \value{
-  ~Describe the value returned
-  If it is a LIST, use
-  \item{comp1 }{Description of 'comp1'}
-  \item{comp2 }{Description of 'comp2'}
-  ...
-}
-\references{ ~put references to the literature/web site here ~ }
-\author{ ~~who you are~~ }
-\note{ ~~further notes~~ 
+  
+  }
+\references{ Wang, J. (2004) Sibship reconstruction from genetic data with typing errors.  Genetics 166: 1963-1979. }
+\author{Owen R. Jones}
+\note{ }
+\seealso{\code{\link{monitor.colony}} }
+\examples{}
 
- ~Make other sections like Warning with \section{Warning }{....} ~
-}
-\seealso{ ~~objects to See Also as \code{\link{help}}, ~~~ }
-\examples{
-##---- Should be DIRECTLY executable !! ----
-##-- ==>  Define data, use random,
-##--	or do  help(data=index)  for the standard data sets.
-
-## The function is currently defined as
-
-get.interm.data<-function(v1="CrLogL",datadir=getwd()){
-
-getval<-function(v1,xx){
-
-ind<-grep(paste(v1,"=",sep=""),xx)
-s1<-"[A-Za-z =0-9,]*"
-s2<-"[ ]*([-.+E0-9]+),[A-Z#a-z =0-9,]*"
-s3<-paste(s1,paste(v1,"=",sep=""),s2,sep="")
-x.out<-NULL
-
-for (i in 1:length(ind)){
-	x.out[i]<-as.numeric(sub(s3,"\\1",xx[ind][i]))
-	}
-
-return(x.out)}
-
-outfile<-readLines(paste(datadir,"temp.txt",sep=""))
-
-Itr<-getval("Itr",outfile)
-CrLogL<-getval(v1,outfile)
-chk<-c(length(Itr),length(CrLogL))
-
-df1<-data.frame(Itr=Itr[1:min(chk)],CrLogL=CrLogL[1:min(chk)])
-return(df1)
-}
-
-
-
-}
-% Add one or more standard keywords, see file 'KEYWORDS' in the
-% R documentation directory.
-\keyword{ ~kwd1 }
-\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line
+\keyword{ datagen }

Modified: pkg/man/get.parentage.Rd
===================================================================
--- pkg/man/get.parentage.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/get.parentage.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -8,13 +8,14 @@
 \usage{get.parentage(colony.object, pairwise = FALSE)}
 
 \arguments{
-  \item{colony.object}{A list created by \code{\link{get.colony.data}}}.}
-  \item{pairwise}{TRUE/FALSE: should the parentage information be derived from the pairwise likelihood estimates (TRUE), of from the full likelihood methods (FALSE). See Wang et al. for details.}
+  \item{colony.object}{A list created by \code{\link{get.colony.data}}}.
+  \item{pairwise}{Should the parentage information be derived from the pairwise likelihood estimates (TRUE), of from the full likelihood methods (FALSE). See Wang et al. for details.}
+}
 \details{}
 \value{
   A data frame with 3 columns. (1) mums, (2) dads, (3) frequency. 
 }
-\references{}
+\references{ Wang, J. (2004) Sibship reconstruction from genetic data with typing errors.  Genetics 166: 1963-1979. }
 \author{Owen R. Jones}
 \note{}
 

Modified: pkg/man/monitor.colony.Rd
===================================================================
--- pkg/man/monitor.colony.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/monitor.colony.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -1,13 +1,65 @@
 \name{monitor.colony}
 \alias{monitor.colony}
 
-\title{A function to monitor the log-likelihood of the sibship analysis being undertaken by Colony.}
+\title{A function to monitor the intermediate results of the analysis being undertaken by Colony2.}
 \description{
-This function examines the intermediate outputs (*.MidResult) from the Colony program. It plots the log-likelihood as a function of the iteration number thereby allowing the user to monitor progress.
-The function repeatedly calls a plot at an interval that can be set by the user (the default is 3 seconds). 
+This function examines the intermediate outputs from the Colony2 program. These should be stored in a text file called "temp.txt" in the working directory. 
+It plots the selected variable as a function of the iteration number thereby allowing the user to monitor progress.
+The function repeatedly calls a plot at an interval that can be set by the user (the default is 2 seconds). 
 It keeps running until the Colony analysis has finished, or until the user interupts it (by pressing the Esc key).
+}
+\usage{monitor.colony(datadir=getwd(),variable="CrLogL",interv.t=2,last.few=10,n=1,showres=FALSE)}
 
+\arguments{
+ \item{datadir}{The path to the directory that contains the Colony output files.}
+  \item{variable}{The name of the variable that you wish to monitor. See details.}
+\item{interv.t}{The interval (in seconds) at which R should retrieve intermediate data.}
+  \item{last.few}{(not yet implemented) How many datapoints should be displayed. Set to -1 to show all data. If the number is a positive integer, then the last x datapoints are shown.}
+\item{n}{If there are two variables witht he same name, which one should be used? See details.}
+\item{showres}{Should R show the results obtained in a table in the R console window? Boolean.}
+
+
 }
-\usage{}
+\details{
+The intermediate results available are:
 
+\textit{Run} : The replicate run number. Variable
+\textit{Tmr} : The number of temperature reductions so far within the run. Variable
+\textit{Itr} : The number of iterates (reconfigurations considered) so far within the run. Variable
+\textit{NSucc} : The number of successful (accepted) reconfigurations so far within the temperature. Variable
+\textit{NSuccLmt} : Maximum (Limit) number of successful reconfigurations allowed within the temperature. Constant
+\textit{NFail1} : The number of reconfigurations since the last update of the best likelihood within the temperature. Variable
+\textit{NFail1Lmt} : Maximum (Limit) value of  NFail1 within the temperature. Constant
+\textit{NFail2} : The total number of reconfigurations since the last update of the best likelihood within the run. Variable
+\textit{NFail2Lmt} : Maximum (Limit) value of  NFail2 within a run. Constant. The run terminates when NFail2Lmt=NFail2 and the successful rate (see below) < 0.01
+\textit{SucRate\%} : =NSucc / Itr. Variable
+\textit{SucLmt\%} : =NSucc / NSuccLmt. Variable
+\textit{FailLmt\%} : =NFail1 / NFail1Lmt. Variable
+\textit{IterLmt\%} : = (Number of iterates) / (Maximum number of iterates) within a temperature. Variable
+\textit{CrLogL} : The log likelihood of the current configuration. Variable
+\textit{BtLogL} : The best log likelihood reached with the current configuration. Variable
+
+\textit{#F1} : Current number of paternal sib families. Variable
+\textit{#F2} : Current number of maternal sib families. Variable
+\textit{#F3} : Current number of sib family clusters. Variable
+\textit{#FS} : Current number of full sib families. Variable
+\textit{HSPair} : Current number of half-sib dyads. Variable
+\textit{FSPair} : Current number of full-sib dyads. Variable
+\textit{#AssgnC1} : Current number of candidate males that are assigned parentage. Variable
+\textit{#AssgnC2} : Current number of candidate females that are assigned parentage. Variable
+\textit{#AssgnP1} : Current number of offspring that have assigned paternity. Variable
+\textit{#AssgnP2} : Current number of offspring that have assigned maternity. Variable
+
+F1, F2, F3, FS, HSPair, FSPair, AssgnC1, AssgnC2, AssgnP1 and AssgnP2 appear twice in the intermediate outputs of Colony2. Their first appearance is for the current status. While the second appearance is for the best status so far (i.e. the maximum value).
+Users wishing to plot any of these values should use the \textit{n} argument to select the appropriate value (1 for the current value, 2 for best value).
+
+}
+\value{}
+\author{Owen R. Jones}
+\note{}
+
+\seealso{ \code{\link{get.interm.data}} }
+
+\examples{monitor.colony(variable="CrLogL",interv.t=2)}
+
 \keyword{ data }

Modified: pkg/man/plotsibs.Rd
===================================================================
--- pkg/man/plotsibs.Rd	2009-04-30 16:51:36 UTC (rev 35)
+++ pkg/man/plotsibs.Rd	2009-05-05 12:33:13 UTC (rev 36)
@@ -1,42 +1,33 @@
 \name{plotsibs}
 \alias{plotsibs}
-%- Also NEED an '\alias' for EACH other topic documented here.
+
 \title{ A function to plot the sibships (full and half-sibs) in an x-y style plot. }
-\description{
-This function plots the estimated sibships from Colony data. Both the x and y axis represent individuals in the population and points indicate a sibship assignment between individuals x and y.
-\usage{
-plotsibs(colony.object, maintitle = "sibships", prob = 0.8, pairwise = FALSE)
-}
-%- maybe also 'usage' for other objects documented here.
+
+\description{This function plots the estimated sibships from Colony data. Both the x and y axis represent individuals in the population and points indicate a sibship assignment between individuals x and y.
+
+\usage{plotsibs(colony.object, maintitle = "sibships", prob = 0.8, pairwise = FALSE)}
+
 \arguments{
   \item{colony.object}{ A list object derived from the colony data (\code{\link{get.colony.data}}). }
   \item{maintitle}{ The plot's title. }
   \item{prob}{ Assignment probability threshold. The probability of sibship must be greater than this value to be included in the plot.}
[TRUNCATED]

To get the complete diff run:
    svnlook diff /svnroot/rcolony -r 36


More information about the Rcolony-commits mailing list