Skip to content

Commit

Permalink
still working on load functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonfparil committed May 27, 2024
1 parent 4384f35 commit 2aefb76
Show file tree
Hide file tree
Showing 18 changed files with 1,333 additions and 684 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/
4 changes: 4 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Suggests:
Remotes:
jeffersonfparil/simquantgen
Imports:
parallel,
cluster,
mgcv,
nlme,
glmnet,
BGLR,
sommer,
Expand Down
12 changes: 12 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by roxygen2: do not edit by hand

export(fn_G_extract_names)
export(fn_G_non_numeric_to_numeric)
export(fn_G_numeric_to_non_numeric)
export(fn_G_split_off_alternative_allele)
export(fn_G_to_vcf)
export(fn_classify_allele_frequencies)
export(fn_filter_loci)
export(fn_load_genotype)
export(fn_simulate_data)
export(fn_vcf_to_G)
8 changes: 4 additions & 4 deletions R/cross_validation.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dirname_functions = dirname(sys.frame(1)$ofile)
# dirname_functions = "/group/pasture/Jeff/genomic_selection/src"
library(testthat)
source(paste0(dirname_functions, "/models.R"))
# dirname_functions = dirname(sys.frame(1)$ofile)
# # dirname_functions = "/group/pasture/Jeff/genomic_selection/src"
# library(testthat)
# source(paste0(dirname_functions, "/models.R"))

fn_kfold_cross_validation = function(i, vec_set_partition_groupings, mat_idx_shuffle, mat_params, G, y, COVAR=NULL, prefix_tmp="gsTmp", mem_mb=1000){
# i = 34
Expand Down
891 changes: 543 additions & 348 deletions R/load.R

Large diffs are not rendered by default.

456 changes: 228 additions & 228 deletions R/main.R

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions R/models.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ suppressWarnings(suppressPackageStartupMessages(library(BGLR)))
suppressWarnings(suppressPackageStartupMessages(library(sommer)))
# suppressWarnings(suppressPackageStartupMessages(library(epistasisfeatures)))

dirname_functions = dirname(sys.frame(1)$ofile)
# dirname_functions = "/group/pasture/Jeff/genomic_selection/src"
source(paste0(dirname_functions, "/metrics.R"))
# dirname_functions = dirname(sys.frame(1)$ofile)
# # dirname_functions = "/group/pasture/Jeff/genomic_selection/src"
# source(paste0(dirname_functions, "/metrics.R"))

### New models can be added by having the same input structure, i.e.:
### 1.) nxp matrix of numeric genotype data without missing values
Expand Down
35 changes: 35 additions & 0 deletions man/fn_G_extract_names.Rd

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

32 changes: 32 additions & 0 deletions man/fn_G_non_numeric_to_numeric.Rd

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

31 changes: 31 additions & 0 deletions man/fn_G_numeric_to_non_numeric.Rd

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

30 changes: 30 additions & 0 deletions man/fn_G_split_off_alternative_allele.Rd

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

33 changes: 33 additions & 0 deletions man/fn_G_to_vcf.Rd

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

37 changes: 37 additions & 0 deletions man/fn_classify_allele_frequencies.Rd

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

62 changes: 62 additions & 0 deletions man/fn_filter_loci.Rd

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

49 changes: 49 additions & 0 deletions man/fn_load_genotype.Rd

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

Loading

0 comments on commit 2aefb76

Please sign in to comment.