Skip to content

Commit

Permalink
Fixes a few variables and activates a forgotten conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
StuntsPT committed Aug 5, 2020
1 parent 029be09 commit 210ecf2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pyRona/R/LFMM2_workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ lfmm_estimates = function(env_file,

env_file = env_file_compat(env_file)

mod = lfmm2(input=genetic_data,
mod = lfmm2(input=geno_data,
env=env_file,
K=PCA_points)

pv <- lfmm2.test(object=mod,
input=genetic_data,
env=env_file, linear = TRUE)
input=geno_data,
env=env_file,
linear = TRUE)

pvalues <- t(pv$pvalues)

Expand Down Expand Up @@ -120,7 +121,7 @@ write_associations_table = function(assoc_table, pvalues){
}

## Function invocation
#convert_file(original_vcf, target_lfmm)
convert_file(original_vcf, target_lfmm)
genetic_data = read.lfmm(target_lfmm)

PCA_points = preliminary_pca(genetic_data, PCA_points)
Expand Down

0 comments on commit 210ecf2

Please sign in to comment.