Skip to content

Commit

Permalink
config now includes data/geno/ped files; stat gen var comp now comput…
Browse files Browse the repository at this point in the history
…ed in vcs2mcmc
  • Loading branch information
Timothée Flutre committed Mar 4, 2018
1 parent 5fbe7ea commit 4a33041
Show file tree
Hide file tree
Showing 11 changed files with 135 additions and 93 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rgs3
Title: R package wrapping the GS3 program for genomic selection (http://
snp.toulouse.inra.fr/~alegarra/)
Version: 0.5.2
Version: 0.5.3
Authors@R: c(
person("Timothée", "Flutre", email = "timothee.flutre@inra.fr", role = c("cre", "aut")),
person("Hélène", "Muranty", email = "helene.muranty@inra.fr", role = c("ctb")))
Expand Down
163 changes: 103 additions & 60 deletions R/gs3.R

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion man/crossValFold.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/crossValRepWithGs3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions man/crossValWithGs3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion man/getDefaultConfig.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/getPartitionGenos.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions man/vcs2mcmc.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions man/writeConfigForGs3.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vignettes/crossval-rgs3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ results.cv <- crossValWithGs3(
dat = phenos,
config = config,
task.id = task.id,
ped.file = NULL,
nb.folds = 5,
seed = 123,
remove.files = "all",
Expand Down
13 changes: 6 additions & 7 deletions vignettes/intro-rgs3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,14 @@ Write the configuration file for GS3 (you can also use the helper function `getD
nlevels=c(Q,
0),
stringsAsFactors=FALSE))
config <- list(num.loci=P,
config <- list(data.file=phenos.file.gs3,
genos.file=genos.file.gs3,
ped.file="",
num.loci=P,
method="VCE",
simul="F",
niter=1*10^4,
burnin=1*10^3,
thin=10,
## niter=2000, burnin=200, thin=2, # debug
niter=1*10^4, burnin=1*10^3, thin=10,
conv.crit="1d-8",
correct=1000,
vcs.file=paste0(getwd(), "/", task.id, "var.txt"),
Expand All @@ -360,9 +362,6 @@ config <- list(num.loci=P,
blasso=FALSE)
isValidConfig(config=config)
config.file <- writeConfigForGs3(config=config,
data.file=phenos.file.gs3,
ped.file=NULL,
genos.file=genos.file.gs3,
task.id=task.id)
```

Expand Down

0 comments on commit 4a33041

Please sign in to comment.