pypi allelix 2.8.0
v2.8.0

51 minutes ago

Added

  • Gene effects. With the transcript caches for the build installed
    (allelix db update downloads them), each ALT is described on the MANE
    v1.5 transcripts (each gene's MANE Select, and its MANE Plus Clinical as a
    second entry) and on Ensembl 116's 37 mitochondrial genes, with VEP 116's
    Sequence Ontology terms, impacts and HGVS, apart from the departures
    docs/formats.md lists (each where VEP's own answer would misstate the
    protein or the mitochondrial code). Each ALT of a record with several
    ALTs gets the HGVS it has written alone, in every encoding; VEP can shift a
    merged multi-allelic record's indel differently. MT effects need the rCRS: a
    file whose chrM is hg19's gets none, and the count says so. Selenocysteine
    codons are read as VEP 116 reads them (Known issues).
    • A mitochondrial protein name is written only where VEP 116's own name and
      the mitochondrial code's are identical, and none otherwise. VEP's
      frameshift naming path reads the shifted tail with the standard code,
      so most mitochondrial frameshifts have no protein name;
      their terms and HGVSc are given. A change in codon 1 that leaves a start
      codon of that code is never start_lost: it is start_retained_variant
      where codon 1's bases changed, and gets neither start term where they
      did not; VEP 116 calls one that keeps Met (ATG to ATA)
      synonymous_variant and p.Met1=, and the name is the same. Otherwise codon 1 is read as the nuclear code reads the same
      shape, with this code's starts. An insertion that leaves the old start
      whole further along behind a codon that is no start is start_lost and
      start_retained_variant (HIGH), with stop_gained where a stop forms.
      VEP 116 gives start_retained_variant without start_lost on the
      recorded insertions in the other genes; on MT-ND2's ATT-start insertions
      it gives both start terms. A deletion of whole codons from codon 1 that
      leaves no start first is start_lost and inframe_deletion (HIGH). VEP
      116 gives inframe_deletion alone on the recorded left spellings,
      including MT-ND2, and also start_lost on their right-shifted
      spellings. The two start-lost classes have no protein name in either
      spelling, even where VEP 116 writes p.Met1?. docs/formats.md lists
      each rule.
    • A nuclear change that loses the start keeps VEP 116's name, its first
      changed residue with ? (p.Gln2? for a same-length change padded by
      an unchanged codon-1 base, p.Lys3? for an in-frame deletion). A
      start_lost frameshift is named p.Met1? or not at all: where VEP names
      another first residue or writes a range form that is no valid name
      (p.Met1_?2), it has no HGVSp; its terms are VEP's. An in-frame
      insertion before Met1 that loses the start has no HGVSp either: VEP 116
      writes it in a range form at residue 1 (p.Leu1_?0), no valid name.
    • --vcf-out assesses every record with an ALT and writes the transcript
      entries it has in VEP's CSQ form (VCF schema 0.8.0), which
      bcftools +split-vep and vcf2maf read, with
      two ##ALLELIX_CSQ_Transcripts header lines naming the gene map and a
      ##ALLELIX_CSQ_STATS line of counts. A CSQ from another tool, declared
      in the header or only present in the data, is kept, and Allelix's is then
      written as ALLELIX_CSQ.
    • The JSON report gives each finding the effect of its own ALT on its own
      gene's main transcript in consequence (MANE Select or the MT
      transcript, else the gene's MANE Plus Clinical), with the gene's other
      entries in other_entries; it is null where that gene has no kept
      transcript holding the ALT. input.consequence names the gene map and
      the number of transcripts the cache leaves out, and counts unique
      finding ALTs: those looked up, those with an effect, those inside a gene
      span with no effect for a finding, and those whose REF is not the
      reference or whose MT is not the rCRS, which get no effect. An entry
      whose HGVS the cached windows cannot support keeps its effect and is
      written without HGVS; such ALTs are counted too. input.consequence is
      null when the caches are not installed. --diff
      compares a finding's terms and HGVSp where both reports have them.
    • On GRCh37 a MANE transcript is kept only where GENCODE 50's lift37
      carries the same version over whole, with MANE's sequence on hg19. About
      a thousand are left out, with no entry rather than a wrong one. The
      cache lists each one with its gene and reason, allelix db status gives
      the number, and docs/formats.md says how to list them. RPS17's MANE
      transcript is among them: lift37 carries it onto the paralogous RPS17L
      locus, so the GRCh37 cache is rebuilt without it. db status's MANE
      transcripts row names each installed build's transcript set and its count
      of kept transcripts.
    • Cost: on the HG002 GRCh38 benchmark VCF, --vcf-out takes about 2.4
      times as long as in 2.7.1 (2,233 s against 943 s), and the annotated VCF
      is about 1.13 times the size of 2.7.1's. See the measurement note under
      Changed.
  • --vcf-out writes ALLELIX_SOURCE_ID, declared in its own header line
    (Allelix source ID v1:), on every record whose ID column it rewrites:
    the ID column as the input wrote it, percent-encoded. A later pass reads a
    record's own IDs from it, never from the rewritten ID column, and where its
    own naming of the record finds no name (a rejected name or a conflict
    included), writes that ID back, with the name it replaces in
    ALLELIX_ORIGINAL_ID. A record of unknown current naming, one the pass
    does not name, such as a record it now filters, keeps the ID column the
    earlier pass wrote. A value that
    does not decode is counted in the new report_warnings code
    source_id_unreadable, and the ID column is read instead.

Changed

  • JSON schema 16, one bump for every 2.8 report field: the
    high_value_no_calls reason split_site_half_call (below), the
    report_warnings codes compound_haplotype_records, listed_rsid_unbound,
    listed_rsid_unnamed, position_found_rsid_dropped and source_id_unreadable
    (below), each
    annotation's consequence and input.consequence (above),
    strand_abstentions.gwas.forward_conflict (below), and on every
    annotation aggregate_review_status, ClinVar's review status of the
    variant's aggregate classification (empty on other sources;
    review_status is still the submission's own). --diff accepts reports
    in schemas 1 to 16.
  • A deletion or delins that crosses a transcript's 5' or 3' end gets no
    HGVSc and no HGVSp, where VEP 116 writes a name of its part inside the
    transcript (c.-49C>A for HBB TGTAAG>TTT). Its terms and impact are
    still VEP's. A substitution or delins whose changed bases lie inside the
    transcript, though its unchanged padding crosses an end, is named by its
    trimmed change, as VEP 116 names the minimal record (c.*1557A>C for CFTR
    AC>CC, where VEP writes c.*1557delinsCC), an inversion as inv (MYOCD
    c.-299_-298inv); one whose changed bases lie outside the transcript
    gets no HGVSc or HGVSp.
  • An intronic base next to the stop-codon exon gets no HGVSc. VEP 116 writes
    it from the CDS end (c.*3G>A, c.*-2A>G), which is no HGVS position,
    and c.*3 also names a 3' UTR base. Its terms are still VEP's. So does a
    deletion or duplication whose written end, or an insertion whose flank, is
    such a base (LPL A>AGA, where VEP 116 writes c.*-1_1428dup); a
    deletion or duplication whose two ends are HGVS positions keeps VEP's name
    (DECR2 c.876_*1-3del, c.877_879dup). An insertion after the stop's
    last base, where the stop ends an exon, is 3_prime_UTR_variant and
    splice_region_variant (LOW), as VEP 116 gives it: the protein is
    unchanged. An insertion before the CDS's first base, where the CDS starts
    an exon, is 5_prime_UTR_variant and splice_region_variant (LOW), with
    no HGVSp (SGCG c.1dup, where VEP 116 writes p.Met1AsnfsTer?).
  • A change over the stop that leaves the protein unchanged, where VEP 116
    writes inframe_deletion (MODERATE) and a delins name (DHDDS
    c.999_1002del, GCC TGA to GCA TGA), is now synonymous_variant and
    stop_retained_variant, impact LOW, still with no HGVSp. A non-coding
    term VEP gives stays. So is a stop rebuilt in place, named p.TerN=,
    whether VEP 116 calls the change a frameshift (GSTM2 c.653_656dup,
    p.Ter219=) or inframe_insertion with p.TerNdelinsTer (TMA7
    c.194_195insGTCA, p.Ter65=), and a merged record's ALT that, trimmed,
    is inserted past the end of a transcript without a 3' UTR. It is Allelix's
    one departure from VEP's terms on a nuclear transcript.
  • An insertion inside a stop codon split across an intron keeps VEP 116's
    stop_lost and splice_region_variant (HIGH), and has no HGVSp where
    VEP's name ends a protein that runs on (NUDT10 c.494_494+1insC, where
    VEP writes p.Ter165delinsTyrTer).
  • An in-frame deletion over the stop that VEP 116 names from a residue the
    edited protein keeps (DIO1 CAGTTAA>C, p.Ser249_Ter250delextTer?, where
    Ser249 stays) gets no HGVSp. Its terms are still VEP's. An in-frame
    deletion ending before the stop keeps VEP's name.
  • On GRCh37, a frameshift whose first changed residue is the stop is named as
    an extension from the stop, as on GRCh38 (p.Ter199AlaextTer18 for SDC4
    c.594_597del), where VEP 116's GRCh37 service writes the frameshift form
    (p.Ter199AlafsTer19).
  • A site written over several VCF records is decided once, and analyze,
    extract on both paths, the high-value lists and --vcf-out all read
    that one decision.
  • A call whose every written and listed rsID is rejected, one of them placed
    at another locus, is the whole-call conflict, as in 2.7.1. So is a call
    carrying ClinVar's own rsID that the identity table places at another
    locus, unless the first written or listed rsID the identity check does not
    reject names it; ClinVar's own rsID that is one of the record's rejected
    written or listed rsIDs makes it the conflict all the same, and the
    identity table's own placement of another rsID on the ALT does not save
    it. A recovered (gnomAD) row none of whose rsIDs survives, one placed at
    another locus, makes the call the conflict only where no other name names
    it. A merged record of several ALTs is decided per ALT, as its split form:
    an ALT whose name fails is the conflict on its own, counted once in
    identity_locus_conflict, and the record's other ALT keeps its name and
    findings; the call is still a two-name call, so ClinPGx and SNPedia do not
    read it. A written or listed rsID that names another ALT the call carries
    names that ALT only: it is no rejection of the call, and it never saves a
    different ALT whose own name fails, which is then the conflict, as in the
    bcftools and vt split forms, which copy the ID column to each record. The
    record's identity decision is its split form's: each ALT judged as its own
    one-ALT record with the same ID column, by the names that form gives it,
    its dropped names counted as that form counts them; the record's ALTs keep
    the names of a record of several ALTs, which can differ from the split
    form's. A call that carries no ALT beside a missing allele (0/., .|0)
    is named, and decided by the identity guard, as the same record called
    0/0: by the rsID its ID column gives, the first for a list, never by the
    chain, so whether it is the conflict, the counters and what extract
    answers under an rsID are the 0/0 record's. Its genotype stays a half call
    (G/-) for every reading of the genotype: the GWAS Catalog, ClinPGx,
    SNPedia, the reports and export plink. An rsID is foreign to a call only
    where none of its placements is at the call's locus: one the table places
    here on another allele, and at another locus too, is dropped for this ALT
    and the call is kept, the drop counted once. In a record of several ALTs,
    a row's own rsID that the identity table places at another locus never
    labels its finding. Its export plink row codes the record's own alleles,
    never the pair gnomAD or the table gives that rsID for the other ALT. The
    conflict names nothing on any surface, CSQ included, counts no dropped or
    listed name, and at a split site takes only its own record. ClinVar's own
    rsID placed only on another ALT at the same position names its ALT and is
    written into the ID column, and its dropped position-found binding is
    counted alone as beside a sibling.
  • Records at one position are decided in groups that change overlapping bases,
    so the bcftools-split or vt-split form of a 1/2 SNV site beside a deletion
    of the next base reads as its merged form, a documented half call beside a
    filtered or missing record of another ALT stays a half call whatever a
    disjoint record beside it holds, and a no-call record the rest leave out
    still answers extract with -/-.
  • export plink decides a VCF's split sites as analyze does, and names
    each record's row as analyze names its ALT; each record is still its
    own row. A record's written rsID that the identity table places
    elsewhere is no longer its row's ID, as it was in 2.7.1: the row takes
    the name its ALT gets with the other records at the position, or the
    generated ID where its call is the whole-call conflict. A merged 1/2
    row whose two ALTs have different names gets the generated ID; 2.7.1 kept
    its written rsID when one was supplied.
    A record whose written rsID the identity table places on another
    record's ALT at the same position no longer takes that ALT's alleles in
    its row: 2.7.1 gave it the other record's allele pair under the shared
    rsID, so two rows carried the same alleles and the same ID.
    export plink on the HG002 GRCh38 benchmark VCF took a median 2,633 s
    (range 2,066–2,665 s), against 2.7.1's 1,164 s (939–1,344 s). Both
    versions reached the memory-high threshold and used swap, so these are
    capped timings under memory pressure; see the measurement note. On
    chromosome 1 of HG002's whole-genome gVCF it takes about 1.4 times as
    long as in 2.7.1 (a median 153 s, range 118–155 s, against 112 s,
    107–124 s).
  • The HTML report's ClinVar review stars are ClinVar's stars for the
    variant: they come from ClinVar's review status of its aggregate
    classification, not from the one submission a finding shows. A variant
    with several agreeing submitters, each giving one star on its own, now
    shows ClinVar's two stars, and one reviewed by an expert panel three,
    even where the finding is a single submitter's. The Review Status row
    shows that aggregate status's own words beside its stars. Where the
    submission's own review status differs, it is shown after them as
    "Submission Review"; where it matches, the row already says it. Nothing
    is guessed from the number of submissions: an aggregate status ClinVar
    does not define is shown as its text with no stars, and a missing one
    shows none. Scores and filtering are unchanged.
  • The ClinVar cache stores the aggregate review status beside each row's
    own, so existing ClinVar caches must be rebuilt: allelix db update
    rebuilds them.
  • allelix db update writes a sidecar beside the ClinVar and rsID
    identity caches (<cache>.keys, ADR-0071). It holds answers each run
    used to read whole from the cache, so with it a VCF run no longer scans
    every ClinVar row for the sites the reference carries, no run scans
    the identity table's multi-base rows, and ClinVar and the identity table
    are queried only at positions they hold. On
    test_data/edge_cases/synthetic_23andme_plain.txt the three sidecars
    together save about 4.8 seconds a run.
    Resolution and annotation of one batch read ClinVar's rows at its loci
    once.
    Output is the same with or without it. The analysis commands never
    write a sidecar; one that is missing, stale (the cache changed since
    db update wrote it) or unreadable is not used, and the run reads the
    cache as before. db clean removes it with its cache.
  • Measurement note for the cost figures in these notes: medians of three
    runs on the same machine and inputs, 2.7.1 on its 2.7.x caches and 2.8 on
    the 2.8 caches. Each run had a 1,700 MiB memory-high threshold, a
    2,000 MiB memory maximum and a 2 GiB swap maximum. In the third HG002 VCF
    export plink runs, sampled memory plus swap peaked at about 2.8 GiB for
    2.7.1 and 3.5 GiB for 2.8, and sampled swap usage reached 1.1 and
    1.8 GiB; both versions reached the memory-high threshold and used swap.
    Repeat times of that command varied by up to 43% from the fastest run.
    In the third runs of the other commands on HG002, memory, page cache
    included, also reached the threshold, and 2.8's --vcf-out used some
    swap (50 MiB at its sampled peak). These are end-to-end command times
    under those caps; the observations do not isolate the time attributable
    to memory pressure. Passive sampling recorded memory-high events, swap
    usage and memory stalls in the second and third export plink runs of
    both versions (2.8's second from mid-run) and in the third runs of the
    other commands; earlier runs were unobserved.
  • Reading a file's records repeats less work. Chromosome-name normalisation,
    a VCF record's genotype, ALT and FORMAT checks reuse earlier results from
    bounded caches (the genotype checks are keyed by the GT string and the
    record's ALT count), and the watch on high-value positions avoids holding
    a record at a new start when it cannot reach the next watched position.
    Output is the same.
  • Each accepted call takes the run's build in place instead of being copied,
    and a padded VCF call's single-base form is made once per run of calls for
    every source that reads it. Output is the same.

Fixed

  • A gnomAD row whose rsID value joins several rsIDs (rs1;rs2, as dbSNP
    merges leave about 46,000 rows) names a call by one of them: an rsID the
    identity table places elsewhere is dropped, then the record's written
    rsID, else its first listed one, else the lowest-numbered. 2.7.1 wrote the
    joined text into the ID column as one recovered rsID, and no finding keyed
    by rsID matched it; the ID column, CSQ, the report and the PLINK row's ID
    now carry the one name, and a gnomAD lookup by any of the rsIDs finds the
    row.

  • extract answers an rsID from a VCF record as ADR-0054 says, on the
    sequential and the indexed path, in five cases where 2.7.1 did not:

    • A no-call record whose ID is the rsID answers it with -/- at a site
      where no record passes (G>A ./. beside G>T ./.). 2.7.1 said "not in
      file", though the file holds the rsID as a no-call.
    • A no-call record whose ID is the rsID answers it with -/- beside a
      passing call of another record at its position (G>A 1/1 beside
      G>T ./. with ID rs2). 2.7.1 said "not in file".
    • A reference record answers every rsID its ID column lists: 0/0 with
      ID rs1;rs2 answers both with G/G. 2.7.1 answered the first only
      and said "not in file" for the other.
    • A written rsID the identity table places elsewhere is answered only by
      a record that reports no genotype for it: a no-call or a filtered
      record answers it with -/-, as 2.7.1 did. A call or a reference
      record answers nothing under it, where 2.7.1 showed its genotype: the
      naming chain names such a call nothing, and G/G under it would
      claim that rsID's genotype at a locus the table does not place it at.
      Where the table places an rsID as a single-base change, those loci
      decide over gnomAD's. A record where gnomAD alone places the rsID
      answers nothing under it; every locus the identity table places it at
      answers, its indel loci included.
    • A passing half call ranks before a rejected sibling record that lists
      the same rsIDs, as it already did where the rsID has a placement:
      G>T rejected 0/1 written before G>A 1/0, both rs1;rs2, now
      shows A/- for the rsID that names A, where 2.7.1 showed the rejected
      record's -/-.

    An indexed extract of 20 rsIDs from the HG002 GRCh38 benchmark VCF
    takes about 1.8 times as long as in 2.7.1 (643 s against 359 s); see the
    measurement note under Changed.

  • A merged VCF record of a real ALT and the spanning-deletion * called
    1/2 (G A,*) gave no call, while the same call split over two
    records (1/. and ./1) kept the real ALT as a half call. The merged
    record now gives the same half call (A/.), the deleted haplotype
    unknown:

    • ClinVar and the GWAS Catalog assess it; ClinPGx and SNPedia do not;
    • --vcf-out stamps only the real ALT's slot;
    • extract shows A/-.

    The star allele is still not assessed and still counted, and the notice
    now says that a passing real ALT beside it is assessed as a half call.
    The public HG002 benchmark VCFs hold 512 such records on GRCh38 and 516
    on GRCh37.

  • A merged 1/2 call that also lists an uncalled <NON_REF> or * ALT
    (G A,T,<NON_REF> 1/2, every multi-allelic call of a GATK gVCF) is named
    per ALT, as G A,T 1/2 is. 2.7.1 and earlier did not, so the GWAS Catalog
    read neither ALT and extract said "not in file" for both rsIDs, with no
    warning.

  • Each ALT has one name, called or not, in the ID column, CSQ, the GWAS
    Catalog, extract and export plink. A record that carries one real ALT,
    read on its own or one record of a split site, is named in 2.7.1's order:
    its written rsID, or its first listed one, where no rule rejects it (on a
    split site, also one that another ALT's placement or ClinVar own row does
    not carry); else ClinVar's own rsID where exactly one is on its ALT; else
    the identity table's one placement, matched in its trimmed form; else
    gnomAD's; else none, so a GWAS Catalog finding 2.7.1 gave under that rsID
    stays. A record of one real ALT whose first listed rsID the identity table
    places elsewhere is named by its next listed rsID that the table does not
    place elsewhere, and its findings are reported under it. 2.7.1 read the
    record under the first and withheld the call as the identity conflict. The ALTs of a multi-ALT record are each named by ClinVar's own rsID
    for it, else the rsID placed on it (by the identity table, or by gnomAD's
    row for its exact REF and ALT; of several, its record's written rsID where
    it is one of them, else its first listed rsID placed on that ALT, else the
    lowest-numbered), else its record's one written rsID unless that name is
    bound to a different ALT. Only the ClinVar finding, in the report and
    ALLELIX_CLINVAR, is labelled otherwise: by 2.7.1's row rule for a record
    of one real ALT, and never under an rsID that belongs to another ALT.

  • --vcf-out writes a recovered rsID into the ID column of a record with
    exactly one called real ALT, as 2.7.1 did: every GATK gVCF variant record
    (T,<NON_REF>), DeepVariant's T,<*>, a T,* half call and a 0/1
    multi-ALT record. A record calling several real ALTs keeps its ID as
    written, and a record keeps a listed ID column (rs1;rs2) whose own rsID
    names its call. A recovered rsID is now written only into the record whose
    ALT it names: at a split pair (1/0 + 0/1) where one rsID names one ALT,
    2.7.1 wrote it into both records' ID columns; the other record now keeps
    its own ID. ALLELIX_ORIGINAL_ID is added only where the ID column is
    rewritten, as ALLELIX_SOURCE_ID is: 2.7.1 also added it to a pair's
    record whose ID was already the rsID.

  • An ID column listing two rsIDs (rs1;rs2, as dbSNP annotation writes it)
    on a multi-ALT record names each ALT by the rsID it belongs to, found by
    position, whatever the order. 2.7.1 and earlier named both ALTs with the
    first. Where several listed rsIDs are placed on one ALT, the first of them
    names it. A record of one real ALT, read on its own or one record of a
    split site, keeps its first listed rsID, as 2.7.1 did, when the identity
    table does not place that rsID elsewhere (or is off). A multi-ALT record
    whose listed rsIDs nothing places is left unnamed, since nothing says
    which rsID belongs to which ALT and giving each ALT the first would be the
    old wrong binding. Such a record loses the name 2.7.1 gave it. A <NON_REF>, <*> or * ALT does not count as an
    ALT in these rules: a gVCF's A,<NON_REF> is named as the record A.
    New report warnings count listed rsID occurrences
    bound to no ALT of their record, per input record (listed_rsid_unbound),
    and the called listed-ID records left with no rsID, each input record
    once (listed_rsid_unnamed). --vcf-out keeps such a record's own ID
    column, never an empty one.

  • A split pair whose two ALTs belong to two different rsIDs keeps the
    person's genotype. 2.7.1 gave it as two half calls (A/., C/.), so
    ClinVar showed two half calls instead of AC. A merged 1/2 record whose
    ALTs belong to two rsIDs kept no rsID at all, so the GWAS Catalog never
    saw it. Each ALT of such a call is now named on its own: by the rsID its
    record names, or by the one found for that ALT alone by position.

    • With one rsID, the call takes it for every source, as before.
    • With two:
      • ClinVar reads the call once and names each ALT's rows under that
        ALT's rsID;
      • the GWAS Catalog reads it under each rsID, counting each risk allele
        against the whole genotype;
      • ClinPGx and SNPedia, which need one rsID to explain the genotype, do
        not read it.

    The identity guard checks each record's name: a record whose name the
    identity table places at another locus is the whole-call conflict, as in
    2.7.1, counted once in identity_locus_conflict; its ALT names nothing
    and is read by no source, and the pair's other record keeps its own call
    and findings. A written name placed only on another record's ALT at the
    same position is dropped and counted there, and the call goes on under its
    other name; the warning's text gives these dropped names apart from the
    calls no source read. A rejected name is never stamped as a recovered
    name, and where the written name was rejected only by such a placement on
    another record's ALT and another name is recovered for the record's ALT,
    it replaces the rejected one in the ID column, and ALLELIX_SOURCE_ID
    keeps the ID as written; a record that is the conflict keeps its ID column
    as written. A name found by position (the file never wrote it) that the
    table places only on another ALT of the site still names its ALT; its
    binding is dropped and counted in the new position_found_rsid_dropped
    warning. Such a pair is not counted in split_site_calls or
    split_site_half_calls, and the split-site warning's sentence for
    two-rsID pairs is gone. In --vcf-out each record of such a pair carries
    its own ALT's rsID; a merged record keeps its ID and is named by position
    again when read. A merged record repeated at one position gets the same
    decision as one alone. Each copy is counted as its own record in
    identity_locus_conflict, as a repeated record of one ALT is; a conflict
    ALT's names are never counted in position_found_rsid_dropped, through
    any copy.

  • A two-ALT site with an insertion or deletion, split over two records (as
    bcftools norm -m- writes it), keeps the person's genotype. 2.7.1 read
    each record on its own, so ClinVar showed each ALT against REF
    (GATT/G for GATT/GATTATTATT). Such records are now read together as
    single-base ones are, compared in the frame of the longest REF: an
    exact pair gives the merged record's call, records that only agree give
    half calls, and records that contradict each other are withheld and
    counted. A merged 1/2 record of indel ALTs has each ALT named on its
    own, as single-base ones are. Records at different positions, or whose
    REFs share no frame, are still read one by one. So are records at one
    position that change different reference bases (an SNV at the padding
    base beside a deletion after it), which together describe one
    haplotype: each gives its own call, as in 2.7.1, and the report counts
    such sites under the new warning code compound_haplotype_records.

  • A passing record homozygous (n/n, n|n) or haploid (n) for one of its
    real ALTs keeps its full call when every sibling is rejected by the
    quality gate or is not called (./.). This applies at every ALT index:
    G A,T 2/2 and G T,A 1/1 both give T/T. For single-base records, 2.7.1
    reduced these calls to ALT/., read only by ClinVar and the GWAS Catalog;
    the equivalent insertion records already kept their full calls. The kept
    site is not counted in split_site_calls. A passing heterozygote beside a
    rejected or ./. sibling remains a half call.

  • A heterozygote that vt decompose writes as 0/1 plus 0/. (or
    ./0, phased 0|. or .|0), with that sibling passing the quality gate
    and, when both are phased in one phase set, its REF on the heterozygote's
    REF copy (0|1 with 0|., 1|0 with .|0), keeps its genotype (G/A)
    for every source,
    as the bcftools form 0/1 plus 0/0 gives it. 2.7.1 and earlier gave it
    as the half call A/., to ClinVar and the GWAS Catalog only, with a
    split_site_calls warning. extract also shows that genotype when a
    0/0 record of the other ALT comes first at the position (it showed
    G/G).

  • A high-value rsID whose only calls at its placement are a split site's half
    calls is listed in high_value_no_calls, reason split_site_half_call, as
    a standalone ./1 there is. 2.7.1 counted the site as called because its
    raw records were.

  • At a high-value position with no call, a * record's spanning_deletion
    reason takes the place of the caller's own no_call (G>A 1/. beside
    G>* ./1), whatever the record order: the deletion is why the copy has no
    genotype. A filtered or low_gq_call reason keeps its place, first
    record first, as in 2.7.1, since it names an option the user can change
    (--keep-filtered, --min-gq).

  • extract shows every half call of a site whose records agree but are not
    one genotype, in one row in record order (A/- + C/-), with a note that
    each allele is assessed alone. 2.7.1 showed one of them, by file order.

  • extract ranks the calls at a placement full, then half, then no known
    allele, so a ./1 written before a 0/1 no longer hides the full call
    (2.7.1 showed -/A where 2.7.0 gave G/A).

  • A split site whose records contradict each other, at a high-value
    placement where ClinVar's Pathogenic or Likely pathogenic row has no rsID,
    is listed once, under the high-value rsID, not also by its locus.

  • GWAS Catalog rows that disagree on which allele raises the odds no
    longer report both alleles as risk alleles. The catalog can hold, for
    one variant and trait, odds-raising rows (an odds ratio above 1) that
    name different alleles, and Allelix kept whichever row had the lowest
    p-value for each trait label, so a carrier of either allele could be
    told it raises the odds. Now the odds-raising source rows for the same
    rsID and trait (the exact mapped-trait URI, or the exact trait text
    when there is none) each count once for the allele they name, before
    the lowest p-value row is chosen; only the allele named by the most
    rows keeps its odds-raising rows, and on a tie at the top none are
    kept. An allele and its complement count as one (A with T, C with G):
    the catalog writes one allele on either strand, so rows naming A
    and T at a G/A site agree. At an A/T or C/G site, where letters
    cannot tell the strand, such rows never count against each other, and
    the strand reading abstains there as before. Rows that do not raise
    the odds (protective odds ratios, betas, rows without a risk allele)
    never count and are kept. The rows left out are counted per release as
    direction_conflict: db update and db status show the count, and
    the terminal and HTML reports say how many rows were left out. When a
    run reads the kept odds-raising rows of one variant and trait as two
    different forward-strand alleles, none of them is assessed for any
    genotype; the report counts those rows as
    strand_abstentions.gwas.forward_conflict and says so. The GWAS cache
    is rebuilt (cv:6) on the next db update, from the retained catalog
    table when it matches the cached release.

  • A GWAS Catalog beta written negative beside a "decrease" CI text
    (-0.05, unit decrease) now reads as lowering the measured value
    (effect_direction decreases). 2.7.0 and 2.7.1 negated the written
    value, so the row said the effect allele raised it. A positive beta with
    that text, the "increase" text, a bare negative beta and odds ratios are
    read as before.

  • A GWAS Catalog risk allele at a site with three or more alleles is no
    longer left unassessed (both_fit) only because of an ALT almost nobody
    carries. At a G/T/A site a T risk allele fit both as written and, through
    the complement of A, reversed, so the row abstained even where A is
    vanishingly rare. GWAS now sets an ALT aside for its strand reading when
    gnomAD measures it below 1 in 1,000: the highest of af_popmax and the
    seven group frequencies, the global frequency only when all of those are
    missing. A missing, invalid or unmeasured frequency, or gnomAD switched
    off, sets nothing aside; neither are the identity table's REF, the
    call's own REF, an allele the call carries, or a reading that would
    become an A/T or C/G pair. GRCh37 sites use the rsID's one GRCh38
    placement when its alleles are the same on both builds. ClinPGx and
    SNPedia are unchanged. See docs/formats.md.

  • A reference call inside a deletion no longer gives reference findings
    when the deletion is written without <DEL> and END. 2.7.1 knew a
    deletion's span only from a <DEL> ALT with INFO END, so a reference
    call inside these spellings still gave its ClinVar, GWAS Catalog,
    ClinPGx and SNPedia reference findings:

    • <DEL> with SVLEN and no END: the span is POS plus the carried
      ALT's absolute SVLEN;
    • <CN0> with END, the 1000 Genomes spelling;
    • <CNV> with END at copy number 0, read from the selected sample's
      FORMAT CN, else INFO CN.
      The deletion counts only where the selected sample carries it or may
      carry it, as a <DEL> with END already did. When a record has both
      END and SVLEN, END gives the span.
  • A | inside one field of the annotated VCF's pipe-joined Allelix INFO
    values (ALLELIX_CLINVAR, ALLELIX_GWAS, ALLELIX_CLINPGX,
    ALLELIX_SNPEDIA, ALLELIX_ALPHAMISSENSE), such as a ClinVar gene list
    GENE1|GENE2, no longer adds a field: it is written as _, as the VCF
    separators already are, so each value keeps its declared layout.

  • A number in the file that Python cannot read (a superscript digit, or
    one longer than Python's 4,300-digit limit) no longer stops a run. 2.7.1
    raised on it. Now a reference block's POS or END is a malformed row,
    whether or not positions are watched; an rsID's digits give no number
    (the name sorts last, as a non-numeric one does); a contig length is
    absent; and a chromosome name sorts after the numbered chromosomes in
    stats, compare and export plink. Numbers Python reads, such as Arabic-Indic digits, keep
    their value.

  • A GT index Python cannot read (a superscript digit, or one longer
    than Python's 4,300-digit limit) no longer stops a run, on any record.
    2.7.1 raised on such an index wherever it was converted: on <DEL>
    records with END, and on ordinary records. It names no allele, as an
    x does: an ordinary record is counted in unusable_genotype_calls
    and gives no call. On a deletion record (END or SVLEN) it is
    skipped as an x is and the readable indexes keep their meaning: 1/²
    keeps the deletion's span, 0/² and ² give none, and an unknown
    allele (./²) or a call the quality gate rejects gives the span it
    gives today. The
    high-value watch reads the record without it. Records with no usable
    span return before their GT is read. Digits int reads, such as
    Arabic-Indic ones, keep their call.

Known issues

  • Gene effects follow VEP 116 at selenocysteine (Sec) codons in the 25
    selenoprotein genes. VEP reads every TGA in the codons a change spans as a
    stop, a Sec codon the change leaves unchanged included, so such a change
    can be stop_gained, or named with Ter (SELENON c.1282_1283insTTT is
    p.Sec428delinsPheTer, one Phe inserted before a Sec the protein keeps).
    A padded same-length spelling and its minimal form can be answered
    differently with one HGVSc, as VEP answers them. This is to be revisited
    in 2.9. A frameshift's new stop is written Ter? where its first changed
    residue is after the first Sec, as VEP writes it; one from the first Sec
    or before it keeps its counted stop, the new frame's first stop with every
    TGA read as a stop (p.Phe12SerfsTer56 for MSRB1 c.35del,
    p.Sec96GlufsTer36 for SELENOF c.285del, p.Val67TrpfsTer7 for GPX3
    c.199_205del).
  • For a call carrying two ALTs at a site whose rsID the identity table places
    as a different single ALT, a GWAS finding can name the stated risk allele's
    complement, and a merged record and its split forms can report different
    GWAS findings at such a site; each finding follows the rsID it is reported
    under.
  • A same-length change away from the stop that leaves the protein unchanged
    as Allelix reads it, over a selenocysteine codon or at codon 1 of a
    transcript that does not start with ATG (the selenoprotein and initial_met
    transcripts), gets a false stop_retained_variant, with
    synonymous_variant (LOW), beside VEP 116's p.SecNTer or p.Met1?
    name, where VEP gives stop_gained or start_lost (HIGH).
  • The split-stop line holds for an insertion that changes the stop; one that
    rebuilds it is stop_retained_variant (LOW, p.TerN=), as is any stop
    rebuilt in place.
  • An rsID the identity table places at the call's locus on another allele
    and at another locus too is dropped for the call, which is then reported
    unnamed and read by no source under that rsID (ClinPGx, extract, the ID
    and PLINK columns), where 2.7.1 named it; without the other locus the call
    keeps the name. Where gnomAD's joined value for the call also lists an
    rsID placed only at another locus, the call is the whole-call conflict,
    and its ClinVar finding, which 2.7.1 reports, is withheld. Both are
    counted in identity_locus_conflict, under a warning that gives a
    placement on another ALT or allele at the same position as the cause,
    which it is not there.
  • A record that is the conflict on its own can still count
    listed_rsid_unbound and listed_rsid_unnamed for its listed rsIDs where
    a half call of another record shares its site.
  • A one-record call with no rsID of its own can count a name found by
    position as dropped in position_found_rsid_dropped while still giving
    that name, where the same call beside an uncalled record counts none.
  • When a VCF record (or a split site) has an SNV ALT beside a longer ALT (an
    insertion, a deletion or a multi-base change), a GWAS association whose
    risk allele is that SNV, or the reference base, can be missed with no
    warning. 2.7.1 missed it for merged records; 2.8.0 also misses it in split
    (bcftools, vt) files.

Don't miss a new allelix release

NewReleases is sending notifications on new releases.