[Rcolony-commits] r73 - in pkg: . R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Nov 16 11:29:50 CET 2012


Author: jonesor
Date: 2012-11-16 11:29:49 +0100 (Fri, 16 Nov 2012)
New Revision: 73

Modified:
   pkg/DESCRIPTION
   pkg/R/build.colony.input.R
Log:
Fixed bug in delimiter. Now is a comma rather than empty quotes

Modified: pkg/DESCRIPTION
===================================================================
--- pkg/DESCRIPTION	2012-07-15 22:07:13 UTC (rev 72)
+++ pkg/DESCRIPTION	2012-11-16 10:29:49 UTC (rev 73)
@@ -1,8 +1,8 @@
 Package: rcolony
 Type: Package
 Title: Tools for implementation and visualisation of Colony and its outputs.
-Version: 0.1
-Date: 2009-04-16
+Version: 0.2
+Date: 2012-11-16
 Author: Owen R. Jones
 Maintainer: Owen R. Jones <owen.jones at ioz.ac.uk>
 Description: The RColony package provides tools for the implementation of the Colony pedigree analysis software. In addition it provides tools for visualising, and summarising the results of the Colony analyses.

Modified: pkg/R/build.colony.input.R
===================================================================
--- pkg/R/build.colony.input.R	2012-07-15 22:07:13 UTC (rev 72)
+++ pkg/R/build.colony.input.R	2012-11-16 10:29:49 UTC (rev 73)
@@ -159,7 +159,7 @@
 Sys.sleep(.2)
 flush.console()
 colonyfile$AlleleFreqPATH<-file.choose()
-colonyfile$delim.for.allele.freq<-""
+colonyfile$delim.for.allele.freq<-","
 colonyfile$allele.frequency<-read.table(colonyfile$AlleleFreqPATH,header=FALSE,colClasses=c("character"),sep=colonyfile$delim.for.allele.freq,fill=TRUE,flush=TRUE,na.string="",col.names=1:max(count.fields(colonyfile$AlleleFreqPATH)))
 flush.console()
 }
@@ -261,7 +261,7 @@
   flush.console()
   colonyfile$MarkerPATH<-file.choose()
 
-  colonyfile$delim.for.markers<-""
+  colonyfile$delim.for.markers<-","
 
   colonyfile$Markers<-read.table(colonyfile$MarkerPATH,header=FALSE,colClasses=c("character"),sep=colonyfile$delim.for.markers) 
 
@@ -291,7 +291,7 @@
   colonyfile$OSGenotypePATH<-file.choose()
 
   
-  colonyfile$delim.for.OSGenotype<-""
+  colonyfile$delim.for.OSGenotype<-","
 
 
   colonyfile$Offspring<-read.table(colonyfile$OSGenotypePATH,header=FALSE,colClasses=c("character"),sep=colonyfile$delim.for.OSGenotype) 
@@ -357,7 +357,7 @@
 flush.console()
 colonyfile$fathersPATH<-file.choose()
 
-colonyfile$delim.for.fathers<-""
+colonyfile$delim.for.fathers<-","
 
 colonyfile$fathers<-read.table(colonyfile$fathersPATH,header=FALSE,sep=colonyfile$delim.for.fathers,colClasses=c("character"))
 if(colonyfile$n.father!=dim(colonyfile$fathers)[1]){
@@ -367,7 +367,7 @@
 }
 }else{
 colonyfile$fathersPATH<-NA
-colonyfile$delim.for.fathers<-""
+colonyfile$delim.for.fathers<-","
 colonyfile$fathers<-matrix(nrow=1,ncol=1)
 }
 
@@ -409,7 +409,7 @@
 colonyfile$mothersPATH<-file.choose()
 
 flush.console()
-colonyfile$delim.for.mothers<-""
+colonyfile$delim.for.mothers<-","
 
 colonyfile$mothers<-read.table(colonyfile$mothersPATH,header=FALSE,sep=colonyfile$delim.for.mothers,colClasses=c("character")) 
 if(colonyfile$n.mother!=dim(colonyfile$mothers)[1]){colonyfile<-colonyfile[which(names(colonyfile)!="mothersPATH")];
@@ -418,7 +418,7 @@
 }
 }else{
 colonyfile$mothersPATH<-NA
-colonyfile$delim.for.mothers<-""
+colonyfile$delim.for.mothers<-","
 colonyfile$mothers<-matrix(nrow=1,ncol=1)
 }
 
@@ -466,7 +466,7 @@
 	flush.console()
 	colonyfile$paternities.and.sibships.PATH<-file.choose()
 
-colonyfile$delim.for.paternities.and.sibships.PATH<-""
+colonyfile$delim.for.paternities.and.sibships.PATH<-","
 
 #Read in the data...
 colonyfile$paternities.and.sibships<-read.table(colonyfile$paternities.and.sibships.PATH,header=FALSE,colClasses=c("character"),sep=colonyfile$delim.for.paternities.and.sibships.PATH,fill=TRUE,flush=TRUE,na.string="",col.names=1:max(count.fields(colonyfile$paternities.and.sibships.PATH)))
@@ -556,7 +556,7 @@
 	flush.console()
 	colonyfile$maternities.and.sibships.PATH<-file.choose()
 
-colonyfile$delim.for.maternities.and.sibships.PATH<-""
+colonyfile$delim.for.maternities.and.sibships.PATH<-","
 
 #Read in the data...
 colonyfile$maternities.and.sibships<-read.table(colonyfile$maternities.and.sibships.PATH,header=FALSE,colClasses=c("character"),sep=colonyfile$delim.for.maternities.and.sibships.PATH,fill=TRUE,flush=TRUE,na.string="",col.names=1:max(count.fields(colonyfile$maternities.and.sibships.PATH)))
@@ -684,7 +684,7 @@
 	flush.console()
 	colonyfile$excluded.paternities.PATH<-file.choose()
 
-colonyfile$delim.for.excluded.paternities.PATH<-""
+colonyfile$delim.for.excluded.paternities.PATH<-","
 
 #Read in the data...
 colonyfile$excluded.paternities<-read.table(colonyfile$excluded.paternities.PATH,header=FALSE,sep=colonyfile$delim.for.excluded.paternities.PATH,colClasses=c("character"),fill=TRUE,flush=TRUE,na.strings="")
@@ -768,7 +768,7 @@
 	flush.console()
 	colonyfile$excluded.maternities.PATH<-file.choose()
 
-colonyfile$delim.for.excluded.maternities.PATH<-""
+colonyfile$delim.for.excluded.maternities.PATH<-","
 
 #Read in the data...
 colonyfile$excluded.maternities<-read.table(colonyfile$excluded.maternities.PATH,header=FALSE,sep=colonyfile$delim.for.excluded.maternities.PATH,colClasses=c("character"),fill=TRUE,flush=TRUE,na.strings="")
@@ -850,7 +850,7 @@
 	flush.console()
 	colonyfile$excluded.paternal.sibships.PATH<-file.choose()
 
-colonyfile$delim.for.excluded.paternal.sibships.PATH<-""
+colonyfile$delim.for.excluded.paternal.sibships.PATH<-","
 
 #Read in the data...
 colonyfile$excluded.paternal.sibships<-read.table(colonyfile$excluded.paternal.sibships.PATH,header=FALSE,sep=colonyfile$delim.for.excluded.paternal.sibships.PATH,colClasses=c("character"),fill=TRUE,flush=TRUE,na.strings="")
@@ -916,7 +916,7 @@
     flush.console()
     colonyfile$excluded.maternal.sibships.PATH<-file.choose()
         
-    colonyfile$delim.for.excluded.maternal.sibships.PATH<-""
+    colonyfile$delim.for.excluded.maternal.sibships.PATH<-","
     
     #Read in the data...
     colonyfile$excluded.maternal.sibships<-read.table(colonyfile$excluded.maternal.sibships.PATH,header=FALSE,sep=colonyfile$delim.for.excluded.maternal.sibships.PATH,colClasses=c("character"),fill=TRUE,flush=TRUE,na.strings="")



More information about the Rcolony-commits mailing list