Skip to content

Commit

Permalink
Add phylogenetic signal as a numeric output in results object
Browse files Browse the repository at this point in the history
  • Loading branch information
Katie Saund committed Jul 11, 2020
1 parent 430c04b commit 56afa57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/run_continuous.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ run_continuous <- function(args){
results_object$sig_hits <- corrected_pvals_all_trans$sig_pvals
results_object$convergence <- convergence
results_object$non_FDR_hit_pvals <- -log(results_all_transitions$pvals)
results_object$phylogenetic_signal <- unname(calculate_lambda(args$phenotype,
args$tree))
save_results_as_r_object(args$output_dir,
args$output_name,
results_object,
Expand Down
2 changes: 2 additions & 0 deletions R/run_phyc.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ run_phyc <- function(args){
results_object$dropped_genotypes <-
hi_conf$dropped_genotypes
results_object$convergence <- convergence
results_object$phylogenetic_signal <- unname(calculate_d(args$phenotype,
args$tree))
save_results_as_r_object(args$output_dir,
args$output_name,
results_object,
Expand Down
2 changes: 2 additions & 0 deletions R/run_synchronous.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ run_synchronous <- function(args){
hi_conf$num_high_conf_trans_edges
results_object$dropped_genotypes <- hi_conf$dropped_genotypes
results_object$convergence <- convergence
results_object$phylogenetic_signal <- unname(calculate_d(args$phenotype,
args$tree))
save_results_as_r_object(args$output_dir,
args$output_name,
results_object,
Expand Down

0 comments on commit 56afa57

Please sign in to comment.