Skip to content

Commit badf349

Browse files
Minor fix to error in gwas tests
1 parent 8d4c10f commit badf349

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/inputs_from_gwas_config.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ end
5757
"--positivity-constraint=0"
5858
])
5959
TargeneCore.julia_main()
60-
6160
# Define SNP information to check string allele defintions
6261
snpdata = read_bed_chromosome(joinpath(TESTDIR, "data", "ukbb", "genotypes" , "ukbb_1."))
6362
snp_info = select(DataFrame(snpdata.snp_info), [:snpid, :allele1, :allele2])
@@ -98,6 +97,9 @@ end
9897
"--positivity-constraint=0.2"
9998
])
10099
TargeneCore.julia_main()
100+
# Define SNP information to check string allele defintions
101+
snpdata = read_bed_chromosome(joinpath(TESTDIR, "data", "ukbb", "genotypes" , "ukbb_1."))
102+
snp_info = select(DataFrame(snpdata.snp_info), [:snpid, :allele1, :allele2])
101103
# Check dataset
102104
dataset = DataFrame(Arrow.Table(joinpath(tmpdir, "final.data.arrow")))
103105
@test size(dataset) == (1940, 886)
@@ -116,7 +118,7 @@ end
116118
nrow = repeat([777], 5)
117119
)
118120

119-
check_estimands_levels_order(estimands)
121+
check_estimands_levels_order(estimands, snp_info)
120122
end
121123

122124
end

0 commit comments

Comments
 (0)