Skip to content

Commit

Permalink
adding distance.R module for computing genetic relationship matrices …
Browse files Browse the repository at this point in the history
…(including distance matrices) and their inverses for gBLUP models
  • Loading branch information
jeffersonfparil committed Oct 1, 2024
1 parent ad7ef84 commit 8759faf
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
40 changes: 20 additions & 20 deletions R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -224,26 +224,26 @@
#' + 1.15. fn_merge_genotype_and_phenotype
#' + 1.16. fn_subset_merged_genotype_and_phenotype
#' + 1.17. fn_estimate_memory_footprint
#' 2. cross_validation.R
#' + 2.1. fn_cv_1
#' + 2.2. fn_cross_validation_preparation
#' + 2.3. fn_cross_validation_within_population
#' + 2.4. fn_cross_validation_across_populations_bulk
#' + 2.5. fn_cross_validation_across_populations_pairwise
#' + 2.6. fn_cross_validation_across_populations_lopo
#' 3. models.R
#' + 3.1. fn_ols
#' + 3.2. fn_ridge
#' + 3.3. fn_lasso
#' + 3.4. fn_elastic_net
#' + 3.5. fn_Bayes_A
#' + 3.6. fn_Bayes_B
#' + 3.7. fn_Bayes_C
#' + 3.8. fn_gBLUP
#' 4. metrics.R
#' + 4.1. fn_prediction_performance_metrics
#' 5. distances.R
#' + 5.1. fn_grm_and_dist
#' 2. distances.R
#' + 2.1. fn_grm_and_dist
#' 3. cross_validation.R
#' + 3.1. fn_cv_1
#' + 3.2. fn_cross_validation_preparation
#' + 3.3. fn_cross_validation_within_population
#' + 3.4. fn_cross_validation_across_populations_bulk
#' + 3.5. fn_cross_validation_across_populations_pairwise
#' + 3.6. fn_cross_validation_across_populations_lopo
#' 4. models.R
#' + 4.1. fn_ols
#' + 4.2. fn_ridge
#' + 4.3. fn_lasso
#' + 4.4. fn_elastic_net
#' + 4.5. fn_Bayes_A
#' + 4.6. fn_Bayes_B
#' + 4.7. fn_Bayes_C
#' + 4.8. fn_gBLUP
#' 5. metrics.R
#' + 5.1. fn_prediction_performance_metrics
#' @examples
#' list_sim = fn_simulate_data(n=300, n_pop=3, verbose=TRUE)
#' df_pheno = read.delim(list_sim$fname_pheno_tsv, header=TRUE)
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ devtools::install_github("jeffersonfparil/gp")
R/
└── main.R
├── io.R
├── distances.R
└── cross_validation.R
└── models.R
└── metrics.R
```

1. main.R - main function
2. io.R - input, output, filtering, and simulation
3. cross_validation.R - k-fold cross validation within and across populations, pairwise-cross-validation, and leave-one-population-out cross-validation
4. models.R - genomic prediction models with the consistent signatures
5. metrics.R - genomic prediction accuracy metrics
3. distances.R - genetic relationship, distance matrices and their inverses
4. cross_validation.R - k-fold cross validation within and across populations, pairwise-cross-validation, and leave-one-population-out cross-validation
5. models.R - genomic prediction models with the consistent signatures
6. metrics.R - genomic prediction accuracy metrics

## Models

Expand Down

0 comments on commit 8759faf

Please sign in to comment.