Skip to content

Commit

Permalink
Added breaking test to GeneReassignerTest for #224
Browse files Browse the repository at this point in the history
  • Loading branch information
julesjacobsen committed Aug 18, 2017
1 parent 59de5dc commit e393c30
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,22 @@ public void assignsRegulatoryVariantToBestPhenotypicMatch_variantNotOriginallyAs
assertThat(variant, isAssignedTo(gene1));
}

@Test
public void assignsRegulatoryVariantToBestPhenotypicMatch_variantInTadButNotAssignedToKnownGene() {
addPriorityResultWithScore(gene1, 1d);
addPriorityResultWithScore(gene2, 0d);

TopologicalDomain tad = makeTad(1, 1, 20000, gene1, gene2);
instance = makeInstance(PriorityType.HIPHIVE_PRIORITY, tad);

Gene noKnownGene = new Gene(".", -1);

VariantEvaluation variant = regulatoryVariantInTad(tad, noKnownGene);
instance.reassignRegulatoryRegionVariantToMostPhenotypicallySimilarGeneInTad(variant);

assertThat(variant, isAssignedTo(gene1));
}


@Test
public void noneTypePrioritiser() {
Expand Down

0 comments on commit e393c30

Please sign in to comment.