varcode 9.3.1__tar.gz → 9.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {varcode-9.3.1/varcode.egg-info → varcode-9.3.3}/PKG-INFO +1 -1
- varcode-9.3.3/tests/test_sv_selenocysteine.py +224 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_sv_sequence_changes.py +209 -0
- varcode-9.3.3/varcode/effects/sequence_change.py +329 -0
- varcode-9.3.3/varcode/version.py +1 -0
- {varcode-9.3.1 → varcode-9.3.3/varcode.egg-info}/PKG-INFO +1 -1
- {varcode-9.3.1 → varcode-9.3.3}/varcode.egg-info/SOURCES.txt +1 -0
- varcode-9.3.1/varcode/effects/sequence_change.py +0 -142
- varcode-9.3.1/varcode/version.py +0 -1
- {varcode-9.3.1 → varcode-9.3.3}/LICENSE +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/MANIFEST.in +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/README.md +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/pyproject.toml +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/requirements.txt +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/setup.cfg +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_annotator_divergence_scenarios.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_annotator_parity_adversarial.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_annotators.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_bnd_retained_segments.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_cli_effects.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_cli_genes.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_cli_without_pkg_resources.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_collection_filtering.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_collection_variants_attr_consistency.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_common.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_cosmic_mutations.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_cryptic_exons.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_csv_roundtrip.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_dbnsfp_validation.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_default_structural_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_documentation_examples.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_annotation_errors.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_candidates.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_classes.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_collection.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_collection_serialization.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_collection_sort_order.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effect_hypotheses.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_effects_from_mutagenix_variants.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_exacto_fusions.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_exonic_splice_site.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_fast_path.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_frameshift_cterminus_regression.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_frameshift_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_fusion_partner_candidates.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_genome_contig_validation.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_genome_sequence.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_genomic_layout.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_genotype.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_genotype_from_vcf.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_germline_context.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_germline_effects.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_haplotype_effect.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_maf.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_mitochondrial.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_mm10_klf6_frameshift.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_mouse.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_mutant_transcript.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_mutate.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_no_duplicate_variants.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_nonlocal_sv_transcripts.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_osteosarc_fusions.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_partial_annotators.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_premature_stop_short_description.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_problematic_variants.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_protein_diff_parity.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_read_phase_resolver.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_real_world_callers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_reference.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_reference_mismatch_error.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_reference_segments.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_rna_evidence.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_rna_haplotype_sequences.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_rna_read_phasing_source.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_selenocysteine.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_silent_aa_pos.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_silent_hgvs_description.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_splice_graph.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_splice_outcomes.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_splice_site_effects.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_stop_codon_classification_bugs.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_string_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_structural_variant_annotator.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_structural_variants.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_sv_tabular_metadata.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_symbolic_alleles.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_symbolic_sv_padding.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_timings.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_transcript_layout.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_transcript_model.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_transforms_left_align.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_transforms_pair_breakends.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_variant.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_variant_collection.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_vcf.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_vcf_output.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_vcf_parsing.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_vcf_phase_resolver.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/tests/test_vcf_spec_examples.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/__init__.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/annotators/__init__.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/annotators/fast.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/annotators/protein_diff.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/annotators/registry.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/__init__.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/effects_script.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/genes_script.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/logging.conf +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/variant_args.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cli/version_info.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/common.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/cryptic_exons.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/csv_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effect_candidates.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effect_hypotheses.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/__init__.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/classify.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/codon_tables.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/common.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_classes.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_collection.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_ordering.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_prediction.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_prediction_coding.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_prediction_coding_frameshift.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/effect_prediction_coding_in_frame.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/fast_path.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/mutate.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/structural.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/transcript_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/effects/translate.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/errors.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/exacto.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/genome.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/genome_sequence.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/genomic_layout.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/genotype.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/germline.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/maf.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/mutant_transcript.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/nucleotides.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/phasing.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/realized_effects.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/reference.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/rna_evidence.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/rna_read_phasing.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/splice_graph.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/splice_outcomes.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/string_helpers.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/structural_variant.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/sv_allele_parser.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/transcript_layout.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/transcript_model.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/transforms/__init__.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/ucsc_reference_names.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/util.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/variant.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/variant_collection.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/vcf.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/vcf_output.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode/vcf_parsing.py +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode.egg-info/dependency_links.txt +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode.egg-info/entry_points.txt +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode.egg-info/requires.txt +0 -0
- {varcode-9.3.1 → varcode-9.3.3}/varcode.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"""SV change flags read annotated selenocysteine UGA codons as the reference does.
|
|
2
|
+
|
|
3
|
+
Ensembl marks Sec as U in the reference protein. UGA encodes Sec only with a
|
|
4
|
+
SECIS element in the same mRNA's 3' UTR, which isn't annotated, so decoding
|
|
5
|
+
is known only where a model keeps the transcript through its 3' end.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from dataclasses import replace
|
|
9
|
+
|
|
10
|
+
import pytest
|
|
11
|
+
from pyensembl import cached_release
|
|
12
|
+
|
|
13
|
+
from varcode import (
|
|
14
|
+
MutantTranscript, ReferenceSegment, StructuralVariant, make_fusion_outcome,
|
|
15
|
+
)
|
|
16
|
+
from varcode.effects import (
|
|
17
|
+
EffectCollection, GeneFusion, LargeDeletion, StructuralVariantEffect,
|
|
18
|
+
)
|
|
19
|
+
from varcode.effects import structural
|
|
20
|
+
|
|
21
|
+
# GPX1 (-), GPX4 (+), SEPP1 (-, ten Sec), TXNRD1 (+, Sec is the penultimate residue).
|
|
22
|
+
SELENOPROTEINS = ["ENST00000419783", "ENST00000354171", "ENST00000514985", "ENST00000525566"]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@pytest.fixture
|
|
26
|
+
def isolate_span(monkeypatch):
|
|
27
|
+
monkeypatch.setattr(structural, "_fusion_partners", lambda *args: ())
|
|
28
|
+
monkeypatch.setattr(structural, "_enumerate_and_attach_cryptics", lambda *args: None)
|
|
29
|
+
monkeypatch.setattr(structural, "_enumerate_and_attach_splice_outcomes", lambda *args: None)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _transcript(transcript_id):
|
|
33
|
+
return cached_release(81).transcript_by_id(transcript_id)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _effect(transcript, cdna, segments=None, protein=None, evidence=None):
|
|
37
|
+
variant = StructuralVariant(transcript.contig, transcript.start, "BND",
|
|
38
|
+
genome=transcript.genome)
|
|
39
|
+
model = MutantTranscript(
|
|
40
|
+
reference_transcript=transcript, reference_segments=segments,
|
|
41
|
+
cdna_sequence=cdna, mutant_protein_sequence=protein, evidence=evidence)
|
|
42
|
+
return StructuralVariantEffect(variant, transcript, mutant_transcript=model)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _sec_offset(transcript, nth=0):
|
|
46
|
+
start = min(transcript.start_codon_spliced_offsets)
|
|
47
|
+
return start + 3 * [i for i, aa in enumerate(transcript.protein_sequence) if aa == "U"][nth]
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _with_codon(sequence, pos, codon):
|
|
51
|
+
return sequence[:pos] + codon + sequence[pos + 3:]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@pytest.mark.parametrize("transcript_id", SELENOPROTEINS)
|
|
55
|
+
def test_unchanged_selenoprotein_is_unchanged(transcript_id):
|
|
56
|
+
t = _transcript(transcript_id)
|
|
57
|
+
effect = _effect(t, t.sequence, (ReferenceSegment(t, 0, len(t.sequence)),))
|
|
58
|
+
assert effect.modifies_coding_sequence is False
|
|
59
|
+
assert effect.modifies_protein_sequence is False
|
|
60
|
+
assert len(EffectCollection([effect]).drop_silent_and_noncoding()) == 0
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@pytest.mark.parametrize("transcript_id", SELENOPROTEINS)
|
|
64
|
+
@pytest.mark.parametrize("change,coding,protein", [
|
|
65
|
+
("sec_to_trp", True, True), ("sec_to_stop", True, True),
|
|
66
|
+
("missense_before", True, True), ("synonymous_before", True, False),
|
|
67
|
+
])
|
|
68
|
+
def test_changes_at_and_around_selenocysteine(transcript_id, change, coding, protein):
|
|
69
|
+
t = _transcript(transcript_id)
|
|
70
|
+
sec = _sec_offset(t)
|
|
71
|
+
start = min(t.start_codon_spliced_offsets)
|
|
72
|
+
cdna = t.sequence
|
|
73
|
+
if change == "sec_to_trp":
|
|
74
|
+
cdna = _with_codon(cdna, sec, "TGG")
|
|
75
|
+
elif change == "sec_to_stop":
|
|
76
|
+
cdna = _with_codon(cdna, sec, "TAA")
|
|
77
|
+
elif change == "missense_before":
|
|
78
|
+
cdna = _with_codon(cdna, start + 3, "TGG" if cdna[start + 3:start + 6] != "TGG" else "GCT")
|
|
79
|
+
else:
|
|
80
|
+
# Leucine CTN codons are four-fold degenerate at the third base.
|
|
81
|
+
pos = next(i for i in range(start + 3, sec, 3) if cdna[i:i + 2] == "CT")
|
|
82
|
+
cdna = _with_codon(cdna, pos, "CT" + ("A" if cdna[pos + 2] != "A" else "G"))
|
|
83
|
+
effect = _effect(t, cdna, (ReferenceSegment(t, 0, len(t.sequence)),))
|
|
84
|
+
assert effect.modifies_coding_sequence is coding
|
|
85
|
+
assert effect.modifies_protein_sequence is protein
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def test_change_after_a_decoded_selenocysteine_is_found():
|
|
89
|
+
t = _transcript("ENST00000354171")
|
|
90
|
+
pos = _sec_offset(t) + 6
|
|
91
|
+
codon = "TGG" if t.sequence[pos:pos + 3] != "TGG" else "GCT"
|
|
92
|
+
effect = _effect(t, _with_codon(t.sequence, pos, codon),
|
|
93
|
+
(ReferenceSegment(t, 0, len(t.sequence)),))
|
|
94
|
+
assert effect.modifies_coding_sequence is True
|
|
95
|
+
assert effect.modifies_protein_sequence is True
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def test_split_segments_still_retain_the_three_prime_end():
|
|
99
|
+
t = _transcript("ENST00000354171")
|
|
100
|
+
cut = _sec_offset(t) + 1
|
|
101
|
+
segments = (ReferenceSegment(t, 0, cut), ReferenceSegment(t, cut, len(t.sequence)))
|
|
102
|
+
effect = _effect(t, t.sequence, segments)
|
|
103
|
+
assert effect.modifies_protein_sequence is False
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@pytest.mark.parametrize("transcript_id", SELENOPROTEINS)
|
|
107
|
+
@pytest.mark.parametrize("region,coding,protein", [
|
|
108
|
+
("5utr", False, False), ("3utr", False, None)])
|
|
109
|
+
def test_utr_deletions_respect_secis_uncertainty(transcript_id, region, coding, protein,
|
|
110
|
+
isolate_span):
|
|
111
|
+
# A 3' UTR deletion may remove the SECIS element, so Sec decoding is unknown.
|
|
112
|
+
t = _transcript(transcript_id)
|
|
113
|
+
exon = t.exons[0] if region == "5utr" else t.exons[-1]
|
|
114
|
+
at_low_end = (region == "5utr") == (t.strand == "+")
|
|
115
|
+
start, end = (exon.start, exon.start + 9) if at_low_end else (exon.end - 9, exon.end)
|
|
116
|
+
variant = StructuralVariant(t.contig, start, "DEL", end=end, genome=t.genome)
|
|
117
|
+
effect = variant.effect_on_transcript(t)
|
|
118
|
+
assert isinstance(effect, LargeDeletion)
|
|
119
|
+
assert effect.modifies_coding_sequence is coding
|
|
120
|
+
assert effect.modifies_protein_sequence is protein
|
|
121
|
+
assert len(EffectCollection([effect]).drop_silent_and_noncoding()) == int(protein is None)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
@pytest.mark.parametrize("breakpoint,coding,protein", [
|
|
125
|
+
("three_prime_utr", False, None), ("after_sec", True, True)])
|
|
126
|
+
def test_fusion_of_a_selenoprotein_five_prime_partner(breakpoint, coding, protein):
|
|
127
|
+
t = _transcript("ENST00000354171")
|
|
128
|
+
partner = _transcript("ENST00000003084")
|
|
129
|
+
if breakpoint == "three_prime_utr":
|
|
130
|
+
position = t.end - 10
|
|
131
|
+
else:
|
|
132
|
+
# GPX4 is on the forward strand: walk exons to a CDS base past the Sec codon.
|
|
133
|
+
offset = _sec_offset(t) + 30
|
|
134
|
+
for exon in t.exons:
|
|
135
|
+
if offset < exon.end - exon.start + 1:
|
|
136
|
+
position = exon.start + offset
|
|
137
|
+
break
|
|
138
|
+
offset -= exon.end - exon.start + 1
|
|
139
|
+
model = structural._build_fusion_mutant_transcript(t, t, position, partner, partner.end - 10)
|
|
140
|
+
variant = StructuralVariant(t.contig, position, "BND", genome=t.genome)
|
|
141
|
+
effect = GeneFusion(variant, t, partner, mutant_transcript=model)
|
|
142
|
+
assert effect.modifies_coding_sequence is coding
|
|
143
|
+
assert effect.modifies_protein_sequence is protein
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def test_three_prime_utr_duplication_leaves_cds_unchanged(isolate_span):
|
|
147
|
+
t = _transcript("ENST00000354171")
|
|
148
|
+
start = t.exons[-1].end - 20
|
|
149
|
+
effect = StructuralVariant(t.contig, start, "DUP", end=start + 5,
|
|
150
|
+
genome=t.genome).effect_on_transcript(t)
|
|
151
|
+
assert effect.modifies_coding_sequence is False
|
|
152
|
+
assert effect.modifies_protein_sequence is None
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def test_losing_the_whole_three_prime_utr_truncates_at_selenocysteine(isolate_span):
|
|
156
|
+
# No 3' UTR, so no SECIS: the CDS is intact, but UGA now terminates.
|
|
157
|
+
t = _transcript("ENST00000354171")
|
|
158
|
+
variant = StructuralVariant(t.contig, max(t.stop_codon_positions) + 1, "DEL",
|
|
159
|
+
end=t.end, genome=t.genome)
|
|
160
|
+
effect = variant.effect_on_transcript(t)
|
|
161
|
+
assert effect.modifies_coding_sequence is False
|
|
162
|
+
assert effect.modifies_protein_sequence is True
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
@pytest.mark.parametrize("transcript_id", SELENOPROTEINS)
|
|
166
|
+
def test_unmapped_import_of_selenoprotein_is_unknown_not_changed(transcript_id):
|
|
167
|
+
# Without coordinates, only the reference Sec index marks a possible Sec UGA.
|
|
168
|
+
t = _transcript(transcript_id)
|
|
169
|
+
variant = StructuralVariant(t.contig, t.start, "BND", genome=t.genome)
|
|
170
|
+
candidate = make_fusion_outcome(variant, t, sequence=t.sequence,
|
|
171
|
+
cds_start=min(t.start_codon_spliced_offsets),
|
|
172
|
+
transcript_model_id="observed-model")
|
|
173
|
+
assert candidate.effect.modifies_coding_sequence is False
|
|
174
|
+
assert candidate.effect.modifies_protein_sequence is None
|
|
175
|
+
start = min(t.start_codon_spliced_offsets)
|
|
176
|
+
missense = _with_codon(t.sequence, start + 3,
|
|
177
|
+
"TGG" if t.sequence[start + 3:start + 6] != "TGG" else "GCT")
|
|
178
|
+
changed = make_fusion_outcome(variant, t, sequence=missense, cds_start=start,
|
|
179
|
+
transcript_model_id="observed-model")
|
|
180
|
+
assert changed.effect.modifies_protein_sequence is True
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def test_peptide_ending_at_selenocysteine_is_not_a_truncation():
|
|
184
|
+
# Exacto translates UGA as a stop, so its peptide ends at the Sec residue.
|
|
185
|
+
t = _transcript("ENST00000354171")
|
|
186
|
+
start, sec = min(t.start_codon_spliced_offsets), _sec_offset(t)
|
|
187
|
+
effect = _effect(t, t.sequence, protein=t.protein_sequence[:(sec - start) // 3],
|
|
188
|
+
evidence={"protein_completeness": "start_to_stop",
|
|
189
|
+
"cds_start": start, "cds_end": sec + 3})
|
|
190
|
+
assert effect.modifies_coding_sequence is False
|
|
191
|
+
assert effect.modifies_protein_sequence is None
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@pytest.mark.parametrize("reaches_three_prime_end", [True, False])
|
|
195
|
+
def test_partial_observation_reads_through_only_decoded_selenocysteine(reaches_three_prime_end):
|
|
196
|
+
t = _transcript("ENST00000354171")
|
|
197
|
+
sec = _sec_offset(t)
|
|
198
|
+
left = sec - 30
|
|
199
|
+
right = len(t.sequence) if reaches_three_prime_end else max(t.stop_codon_spliced_offsets) + 1
|
|
200
|
+
cdna = t.sequence[left:right]
|
|
201
|
+
pos = sec - left + 6
|
|
202
|
+
cdna = _with_codon(cdna, pos, "TGG" if cdna[pos:pos + 3] != "TGG" else "GCT")
|
|
203
|
+
effect = _effect(t, cdna, (ReferenceSegment(t, left, right),), evidence={
|
|
204
|
+
"protein_completeness": "partial_start", "cds_start": 0,
|
|
205
|
+
"cds_end": max(t.stop_codon_spliced_offsets) + 1 - left})
|
|
206
|
+
assert effect.modifies_coding_sequence is (True if reaches_three_prime_end else None)
|
|
207
|
+
assert effect.modifies_protein_sequence is (True if reaches_three_prime_end else None)
|
|
208
|
+
sec_to_stop = _with_codon(effect.mutant_transcript.cdna_sequence, sec - left, "TAA")
|
|
209
|
+
effect.mutant_transcript = replace(effect.mutant_transcript, cdna_sequence=sec_to_stop)
|
|
210
|
+
assert effect.modifies_coding_sequence is True
|
|
211
|
+
assert effect.modifies_protein_sequence is True
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
# TXNRD3 (CTG start, Sec) and FGF2 (CTG start): Ensembl writes the initiator as L.
|
|
215
|
+
@pytest.mark.parametrize("transcript_id", ["ENST00000523403", "ENST00000264498"])
|
|
216
|
+
def test_non_atg_initiator_is_not_a_protein_change(transcript_id):
|
|
217
|
+
t = _transcript(transcript_id)
|
|
218
|
+
assert t.coding_sequence[:3] == "CTG" and t.protein_sequence[0] == "L"
|
|
219
|
+
effect = _effect(t, t.sequence, (ReferenceSegment(t, 0, len(t.sequence)),))
|
|
220
|
+
assert effect.modifies_coding_sequence is False
|
|
221
|
+
assert effect.modifies_protein_sequence is False
|
|
222
|
+
effect.mutant_transcript = replace(
|
|
223
|
+
effect.mutant_transcript, mutant_protein_sequence="M" + t.protein_sequence[1:])
|
|
224
|
+
assert effect.modifies_protein_sequence is False
|
|
@@ -14,6 +14,7 @@ from varcode.effects import (
|
|
|
14
14
|
StructuralVariantEffect, TranslocationToIntergenic, Unresolved,
|
|
15
15
|
)
|
|
16
16
|
from varcode.effects import structural
|
|
17
|
+
from varcode.effects.codon_tables import codon_table_for_transcript
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
@pytest.fixture
|
|
@@ -128,6 +129,214 @@ def test_partial_fragment_and_unmapped_assembly_are_unknown(cftr):
|
|
|
128
129
|
assert effect.modifies_coding_sequence is None
|
|
129
130
|
|
|
130
131
|
|
|
132
|
+
@pytest.mark.parametrize("completeness", [
|
|
133
|
+
"partial_start", "partial_end", "partial_both", "unknown", None,
|
|
134
|
+
])
|
|
135
|
+
@pytest.mark.parametrize("protein", ["reference_fragment", "different", ""])
|
|
136
|
+
def test_unmapped_partial_proteins_do_not_establish_a_change(cftr, completeness, protein):
|
|
137
|
+
if protein == "reference_fragment":
|
|
138
|
+
protein = cftr.protein_sequence[:100]
|
|
139
|
+
effect = _effect(cftr)
|
|
140
|
+
effect.mutant_transcript = MutantTranscript.from_sequence(
|
|
141
|
+
cftr.sequence[:432], reference_transcript=cftr,
|
|
142
|
+
mutant_protein_sequence=protein,
|
|
143
|
+
evidence={"protein_completeness": completeness})
|
|
144
|
+
assert effect.modifies_protein_sequence is None
|
|
145
|
+
assert effect.modifies_coding_sequence is None
|
|
146
|
+
assert list(EffectCollection([effect]).drop_silent_and_noncoding()) == [effect]
|
|
147
|
+
assert len(EffectCollection([effect]).drop_silent_and_noncoding(False)) == 0
|
|
148
|
+
assert effect.mutant_protein_sequence == protein
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
@pytest.mark.parametrize("completeness", ["partial_start", "partial_end", "partial_both"])
|
|
152
|
+
def test_partial_label_prevents_complete_orf_fallback(cftr, completeness):
|
|
153
|
+
# A complete-looking ORF must not override the producer's explicit partial
|
|
154
|
+
# interpretation (e.g. an internal alternative start in an observed fragment).
|
|
155
|
+
effect = _effect(cftr, cdna=cftr.sequence, segments=_identity_segments(cftr),
|
|
156
|
+
evidence={"protein_completeness": completeness})
|
|
157
|
+
assert effect.modifies_protein_sequence is None
|
|
158
|
+
assert effect.modifies_coding_sequence is None
|
|
159
|
+
evidence = dict(effect.mutant_transcript.evidence,
|
|
160
|
+
cds_start=min(cftr.start_codon_spliced_offsets),
|
|
161
|
+
cds_end=max(cftr.stop_codon_spliced_offsets) + 1)
|
|
162
|
+
effect.mutant_transcript = replace(effect.mutant_transcript, evidence=evidence)
|
|
163
|
+
assert effect.modifies_protein_sequence is None
|
|
164
|
+
assert effect.modifies_coding_sequence is None
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def _mapped_partial(transcript, completeness, change="none"):
|
|
168
|
+
"""An observed CDS fragment mapped onto its reference, one codon changed.
|
|
169
|
+
|
|
170
|
+
Flags compare observed codons, so no protein is supplied.
|
|
171
|
+
"""
|
|
172
|
+
table = codon_table_for_transcript(transcript)
|
|
173
|
+
start = min(transcript.start_codon_spliced_offsets)
|
|
174
|
+
stop = max(transcript.stop_codon_spliced_offsets) + 1
|
|
175
|
+
left = start if completeness == "partial_end" else start + 300
|
|
176
|
+
right = stop if completeness == "partial_start" else left + 300
|
|
177
|
+
cdna = transcript.sequence[left:right]
|
|
178
|
+
if change == "stop_loss":
|
|
179
|
+
pos, codon = len(cdna) - 3, "TGG"
|
|
180
|
+
else:
|
|
181
|
+
pos = next(i for i in range(3, len(cdna), 3)
|
|
182
|
+
if table.forward_table.get(cdna[i:i + 3], "M") not in "MW")
|
|
183
|
+
original = cdna[pos:pos + 3]
|
|
184
|
+
synonyms = [c for c, aa in sorted(table.forward_table.items())
|
|
185
|
+
if aa == table.forward_table[original] and c != original]
|
|
186
|
+
codon = {"none": original, "synonymous": synonyms[0], "missense": "TGG",
|
|
187
|
+
"nonsense": "TAA", "ambiguous": original[:2] + "N"}[change]
|
|
188
|
+
cdna = cdna[:pos] + codon + cdna[pos + 3:]
|
|
189
|
+
return _effect(
|
|
190
|
+
transcript, cdna=cdna,
|
|
191
|
+
segments=(ReferenceSegment(transcript, left, right),),
|
|
192
|
+
evidence={"protein_completeness": completeness,
|
|
193
|
+
"cds_start": 0, "cds_end": len(cdna)}), pos
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@pytest.mark.parametrize("transcript_id", ["ENST00000003084", "ENST00000357654"])
|
|
197
|
+
@pytest.mark.parametrize("completeness", ["partial_start", "partial_end", "partial_both"])
|
|
198
|
+
@pytest.mark.parametrize("change", ["none", "synonymous", "missense", "nonsense", "ambiguous"])
|
|
199
|
+
def test_partial_observation_only_establishes_mapped_local_changes(
|
|
200
|
+
transcript_id, completeness, change):
|
|
201
|
+
transcript = cached_release(81).transcript_by_id(transcript_id)
|
|
202
|
+
effect, _ = _mapped_partial(transcript, completeness, change)
|
|
203
|
+
before = effect.mutant_transcript
|
|
204
|
+
assert effect.modifies_coding_sequence is (
|
|
205
|
+
True if change in ("synonymous", "missense", "nonsense") else None)
|
|
206
|
+
assert effect.modifies_protein_sequence is (
|
|
207
|
+
True if change in ("missense", "nonsense") else None)
|
|
208
|
+
assert effect.mutant_transcript == before
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
@pytest.mark.parametrize("transcript_id", ["ENST00000003084", "ENST00000357654"])
|
|
212
|
+
def test_mapped_stop_loss_is_a_protein_change(transcript_id):
|
|
213
|
+
transcript = cached_release(81).transcript_by_id(transcript_id)
|
|
214
|
+
effect, _ = _mapped_partial(transcript, "partial_start", "stop_loss")
|
|
215
|
+
assert effect.modifies_coding_sequence is True
|
|
216
|
+
assert effect.modifies_protein_sequence is True
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def test_mapped_reference_fragment_is_not_a_truncation(cftr):
|
|
220
|
+
# The #462 report, with reference coordinates: equal observed codons and a
|
|
221
|
+
# shorter supplied protein still leave the unobserved suffix unknown.
|
|
222
|
+
effect, _ = _mapped_partial(cftr, "partial_end")
|
|
223
|
+
effect.mutant_transcript = replace(
|
|
224
|
+
effect.mutant_transcript, mutant_protein_sequence=cftr.protein_sequence[:100])
|
|
225
|
+
assert effect.modifies_coding_sequence is None
|
|
226
|
+
assert effect.modifies_protein_sequence is None
|
|
227
|
+
assert len(EffectCollection([effect]).drop_silent_and_noncoding(False)) == 0
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
def test_partial_uses_mitochondrial_table():
|
|
231
|
+
# TGA and TGG both encode tryptophan in vertebrate mitochondria.
|
|
232
|
+
transcript = cached_release(81).transcript_by_id("ENST00000361624")
|
|
233
|
+
effect, _ = _mapped_partial(transcript, "partial_both")
|
|
234
|
+
model = effect.mutant_transcript
|
|
235
|
+
cdna = model.cdna_sequence
|
|
236
|
+
pos = next(i for i in range(0, len(cdna), 3) if cdna[i:i + 3] in ("TGA", "TGG"))
|
|
237
|
+
swapped = "TGG" if cdna[pos:pos + 3] == "TGA" else "TGA"
|
|
238
|
+
effect.mutant_transcript = replace(
|
|
239
|
+
model, cdna_sequence=cdna[:pos] + swapped + cdna[pos + 3:])
|
|
240
|
+
assert effect.modifies_coding_sequence is True
|
|
241
|
+
assert effect.modifies_protein_sequence is None
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
@pytest.mark.parametrize("upstream", [False, True])
|
|
245
|
+
def test_alternative_start_codon_reads_as_met_only_where_the_orf_begins(cftr, upstream):
|
|
246
|
+
# A 3' partner's start codon is internal to a fused ORF, so CTG there is Leu.
|
|
247
|
+
brca1 = cached_release(81).transcript_by_id("ENST00000357654")
|
|
248
|
+
start = min(cftr.start_codon_spliced_offsets)
|
|
249
|
+
other = min(brca1.start_codon_spliced_offsets) + 3
|
|
250
|
+
segments = (ReferenceSegment(cftr, start, start + 300),)
|
|
251
|
+
cdna = "CTG" + cftr.sequence[start + 3:start + 300]
|
|
252
|
+
if upstream:
|
|
253
|
+
segments = (ReferenceSegment(brca1, other, other + 30),) + segments
|
|
254
|
+
cdna = brca1.sequence[other:other + 30] + cdna
|
|
255
|
+
effect = _effect(cftr, cdna=cdna, segments=segments, evidence={
|
|
256
|
+
"protein_completeness": "partial_both", "cds_start": 0, "cds_end": len(cdna)})
|
|
257
|
+
assert effect.modifies_coding_sequence is True
|
|
258
|
+
assert effect.modifies_protein_sequence is (True if upstream else None)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def test_partial_bounds_accept_numpy_integers(cftr):
|
|
262
|
+
import numpy as np
|
|
263
|
+
|
|
264
|
+
effect, _ = _mapped_partial(cftr, "partial_both", "missense")
|
|
265
|
+
evidence = effect.mutant_transcript.evidence
|
|
266
|
+
effect.mutant_transcript = replace(effect.mutant_transcript, evidence=dict(
|
|
267
|
+
evidence, cds_start=np.int64(0), cds_end=np.int64(evidence["cds_end"])))
|
|
268
|
+
assert effect.modifies_coding_sequence is True
|
|
269
|
+
assert effect.modifies_protein_sequence is True
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
def test_partial_mapped_change_survives_split_reference_segments(cftr):
|
|
273
|
+
effect, pos = _mapped_partial(cftr, "partial_both", "missense")
|
|
274
|
+
segment, = effect.mutant_transcript.reference_segments
|
|
275
|
+
effect.mutant_transcript = replace(effect.mutant_transcript, reference_segments=(
|
|
276
|
+
replace(segment, end=segment.start + pos + 1),
|
|
277
|
+
replace(segment, start=segment.start + pos + 1)))
|
|
278
|
+
assert effect.modifies_coding_sequence is True
|
|
279
|
+
assert effect.modifies_protein_sequence is True
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
@pytest.mark.parametrize("missing", [
|
|
283
|
+
"frame", "float_frame", "offset_frame", "mapping", "reverse", "length", "edits"])
|
|
284
|
+
def test_partial_local_change_requires_usable_coordinates(cftr, missing):
|
|
285
|
+
from varcode import TranscriptEdit
|
|
286
|
+
|
|
287
|
+
effect, _ = _mapped_partial(cftr, "partial_both", "missense")
|
|
288
|
+
model = effect.mutant_transcript
|
|
289
|
+
if missing == "frame":
|
|
290
|
+
model = replace(model, evidence={"protein_completeness": "partial_both"})
|
|
291
|
+
elif missing == "float_frame":
|
|
292
|
+
model = replace(model, evidence=dict(model.evidence, cds_start=0.0))
|
|
293
|
+
elif missing == "offset_frame":
|
|
294
|
+
# Codons out of frame with the reference CDS have no counterpart.
|
|
295
|
+
model = replace(model, evidence=dict(model.evidence, cds_start=1))
|
|
296
|
+
elif missing == "mapping":
|
|
297
|
+
model = replace(model, reference_segments=None)
|
|
298
|
+
elif missing == "reverse":
|
|
299
|
+
model = replace(model, reference_segments=(replace(model.reference_segments[0], strand="-"),))
|
|
300
|
+
elif missing == "length":
|
|
301
|
+
model = replace(model, cdna_sequence=model.cdna_sequence + "A")
|
|
302
|
+
else:
|
|
303
|
+
model = replace(model, edits=(TranscriptEdit(0, 0, "A"),))
|
|
304
|
+
effect.mutant_transcript = model
|
|
305
|
+
assert effect.modifies_coding_sequence is None
|
|
306
|
+
assert effect.modifies_protein_sequence is None
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@pytest.mark.parametrize("completeness", ["partial_start", "partial_end", "partial_both"])
|
|
310
|
+
def test_imported_partial_peptide_without_reference_mapping_is_unknown(cftr, completeness):
|
|
311
|
+
# Exacto peptides carry observed ORF bounds but no reference coordinates.
|
|
312
|
+
variant = StructuralVariant(cftr.contig, cftr.start, "BND", genome=cftr.genome)
|
|
313
|
+
start = min(cftr.start_codon_spliced_offsets)
|
|
314
|
+
cdna = cftr.sequence[:start + 3] + "TGG" + cftr.sequence[start + 6:start + 300]
|
|
315
|
+
candidate = make_fusion_outcome(
|
|
316
|
+
variant, cftr, sequence=cdna, transcript_model_id="observed-model", source="exacto")
|
|
317
|
+
model = candidate.effect.mutant_transcript
|
|
318
|
+
candidate.effect.mutant_transcript = replace(
|
|
319
|
+
model, mutant_protein_sequence="MW" + cftr.protein_sequence[2:100],
|
|
320
|
+
evidence=dict(model.evidence or {}, protein_completeness=completeness,
|
|
321
|
+
cds_start=start, cds_end=start + 300))
|
|
322
|
+
assert candidate.effect.modifies_coding_sequence is None
|
|
323
|
+
assert candidate.effect.modifies_protein_sequence is None
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
def test_complete_protein_and_partial_alternative_remain_unknown(cftr):
|
|
327
|
+
primary = _effect(cftr, protein=cftr.protein_sequence,
|
|
328
|
+
evidence={"protein_completeness": "start_to_stop"})
|
|
329
|
+
partial, _ = _mapped_partial(cftr, "partial_both", "none")
|
|
330
|
+
primary._extra_candidates = (EffectCandidate(partial, source="rna"),)
|
|
331
|
+
assert primary.modifies_protein_sequence is None
|
|
332
|
+
assert len(EffectCollection([primary]).drop_silent_and_noncoding()) == 1
|
|
333
|
+
assert len(EffectCollection([primary]).drop_silent_and_noncoding(False)) == 0
|
|
334
|
+
changed, _ = _mapped_partial(cftr, "partial_both", "missense")
|
|
335
|
+
primary._extra_candidates += (EffectCandidate(changed, source="rna"),)
|
|
336
|
+
assert primary.modifies_protein_sequence is True
|
|
337
|
+
assert len(EffectCollection([primary]).drop_silent_and_noncoding(False)) == 1
|
|
338
|
+
|
|
339
|
+
|
|
131
340
|
@pytest.mark.parametrize("primary_status", [False, None])
|
|
132
341
|
def test_later_changed_candidate_controls_flags_and_filter(cftr, primary_status):
|
|
133
342
|
primary = _effect(cftr, protein=cftr.protein_sequence if primary_status is False else None)
|