コード例 #1
0
ファイル: test_inputs.py プロジェクト: bcgsc/pori_ipr_python
 def test_no_genes_error(self) -> None:
     with pytest.raises(ValueError):
         create_graphkb_sv_notation(
             IprStructuralVariant({
                 'gene1': '',
                 'gene2': '',
                 'exon1': 1,
                 'exon2': 2,
                 'key': 'x'
             }))
コード例 #2
0
ファイル: test_inputs.py プロジェクト: bcgsc/pori_ipr_python
 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)'
コード例 #3
0
ファイル: test_inputs.py プロジェクト: bcgsc/pori_ipr_python
 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)'
コード例 #4
0
ファイル: test_inputs.py プロジェクト: bcgsc/pori_ipr_python
 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)'