Beispiel #1
0
 def test_no_genes_error(self) -> None:
     with pytest.raises(ValueError):
         create_graphkb_sv_notation(
             IprStructuralVariant({
                 'gene1': '',
                 'gene2': '',
                 'exon1': 1,
                 'exon2': 2,
                 'key': 'x'
             }))
Beispiel #2
0
 def test_one_exon_missing(self) -> None:
     notation = create_graphkb_sv_notation(
         IprStructuralVariant({
             'gene1': 'A',
             'gene2': 'B',
             'exon1': '',
             'exon2': 2
         }))
     assert notation == '(A,B):fusion(e.?,e.2)'
Beispiel #3
0
 def test_first_gene_missing(self) -> None:
     notation = create_graphkb_sv_notation(
         IprStructuralVariant({
             'gene1': '',
             'gene2': 'B',
             'exon1': 1,
             'exon2': 2
         }))
     assert notation == '(B,?):fusion(e.2,e.1)'
Beispiel #4
0
 def test_both_genes_and_exons(self) -> None:
     notation = create_graphkb_sv_notation(
         IprStructuralVariant({
             'gene1': 'A',
             'gene2': 'B',
             'exon1': 1,
             'exon2': 2
         }))
     assert notation == '(A,B):fusion(e.1,e.2)'