Skip to content

Commit

Permalink
remove too stringent test
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierlabayle committed May 23, 2024
1 parent 41c78b6 commit 8088b90
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions test/random_variants_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,8 @@ end
)

# Check criteria
expected_mapped_rsids = Dict(
:RSID_103 => [
"RSID_110", "RSID_10", "RSID_79", "RSID_6", "RSID_179",
"RSID_142", "RSID_42", "RSID_106", "RSID_61", "RSID_57"
],
:RSID_198 => [
"RSID_20", "RSID_58", "RSID_197", "RSID_120", "RSID_65",
"RSID_127", "RSID_98", "RSID_188", "RSID_165", "RSID_158",
]
)
for (key, mapped_rsids) in expected_mapped_rsids
variant = variant_map[key][1]
mapped_variants = variant_map[key][2]
for (key, (variant, mapped_variants)) in variant_map
@test Symbol(rsid(variant)) == key
# Ensures the process is deterministic
@test [rsid(v) for v in mapped_variants] == mapped_rsids
target_maf = mean(minor_allele_dosage!(b, variant))
@test all(TargeneCore.same_maf(b, v, target_maf, reltol=reltol) for v in mapped_variants)
@test all(!TargeneCore.is_in_regulatory_region(v) for v in mapped_variants)
Expand Down

0 comments on commit 8088b90

Please sign in to comment.