Skip to contents

Rduckvep 2.0.0.0.1.0

The first release. It bundles DuckVEP 2.0.0.

  • The bundled extension reads VEP caches with duckvep_vep_cache_transcripts(), annotates RefSeq models, and applies transcript RNA edits as segments split at the edits.

  • String arguments of the model and haplotype functions must each be one nonempty string, and overwrite and hgvs must be TRUE or FALSE; the error names the argument.

  • rduckvep_haplotypes() works on the C API v2 host: it stages the calls with duckvep_haplotype_load_sql() under a unique job name, runs the statements on the connection and reads duckvep_haplotype_scan(), dropping the job if staging fails.

  • rduckvep_load() falls back to the newest bundled artifact when none was built for the installed duckdb version. The artifact declares the stable C API v1.2.0, so DuckVEP loads after a duckdb upgrade without reinstalling Rduckvep.

  • overwrite = TRUE in rduckvep_haplotypes(), rduckvep_coding_transcripts() and rduckvep_coding_calls() replaces the table only once the query succeeds; a failing query leaves the existing table in place.

  • rduckvep_vcf_events_sql() wraps duckvep_vcf_events_sql(): it turns VCF records with read_bcf columns into the events relation as VEP 116 reads them, with a status and reason for records it cannot carry.

  • rduckvep_prepare_sv_geometry(), rduckvep_prepare_breakend_pairs(), rduckvep_prepare_structural_hgvs() and rduckvep_prepare_expansionhunter() take relations shaped like DuckHTS read_bcf() output (typed INFO_* and, for ExpansionHunter, FORMAT_* columns) instead of raw info, format and sample text. Geometry and structural HGVS read a symbolic span with SVLEN before END, as VEP does.

  • The bundled extension renders singleton source-record protein HGVS independently when raw Haplosaurus replay retains an ambiguous ALT only as source_allele_skipped evidence.

  • The bundled extension applies Ensembl translation SeqEdits to overlapping literal alleles and matches VEP protein HGVS for start-codon insertions, exhausted frameshifts and stop-bearing 3-prime shifts.

  • The bundled extension accepts symbolic insertion spans derived from SVLEN and retains insertion-specific overlap consequences.

  • rduckvep_haplotypes() predicts consequences for phased whole-coding haplotypes under duckvep-coding. It accepts complete phased calls of any ploidy, literal alleles of any length, and transcripts using supported genetic codes. The phase policy is strict by default, or vep_compat to read GT slots in order as VEP’s haplotype mode does; the NMD rule is ejc50.

  • Overlapping records compose at their literal coordinates, and records that claim one base or insertion site differently are edit_conflict. Paths with no whole product to rebuild (an edit crossing a CDS end or exon boundary, an essential splice-site record, an in-frame reference stop) are predicted from the union of their records’ per-variant terms, with reason per_record_terms. Curated translations and RNA editing programmes are classified as part of the reference.

  • With hgvs = TRUE, proven-cis multi-record paths get compound hgvsc and hgvsp names for the joint allele.

  • Haplotype results include prediction_policy, prediction_status, prediction_reason, carrier_predictions, contributor_provenance, normalized_edits, haplotype_consequences, haplotype_impact, nmd_rule, nmd_prediction, nmd_stop_position, nmd_junction_position, nmd_contributors and nmd_exceptions; nominal_length_diff is the last column. Carrier-level predictions include consequences, impact and NMD positions. Contributor roles distinguish edits applied to the expressed sequence from edits after the first stop. nmd_exceptions reports start_proximal when the premature stop lies within the first 100 coding bases and long_exon when its edited-transcript exon exceeds 407 bases; these labels do not change the junction-rule prediction.

  • The ejc50 rule reports trigger when the edited distance from the first premature stop to the penultimate-exon junction exceeds 50 nt, and escape at 50 nt or less. A single-exon transcript escapes. Missing termination, start loss, unresolved exon topology and failed or ineligible paths have an unknown prediction. The rule does not model reinitiation or add the NMD_transcript_variant biotype term. The haplotype fixtures and contract specify the full behavior.

  • Whole-haplotype start and stop classification uses the edited CDS and its genetic code. A lost stop is read through the stored 3′ transcript flank in protein, or through the end of that flank; sequence_flags bit 16 marks read-through. An incomplete annotated CDS start or end is handled according to the available sequence, including transcripts that begin inside a codon.

  • rduckvep_save_model() and rduckvep_restore_model() write and restore native model snapshots. Restore maps the snapshot read-only; processes that restore the same file share mapped pages.

  • The webR side module exports duckvep_init_c_api and binds its bundled HTSlib, zlib and cgranges locally. SIDE_MODULE=2, an explicit export list and -Bsymbolic isolate those symbols when the module is loaded beside Rduckhts.

  • DuckHTS releases through 1.5.2 register legacy duckvep_* functions under names also used by DuckVEP. Loading both extensions can split model loading and annotation across separate registries and produce unknown model name; use DuckHTS newer than 1.5.2 with DuckVEP.

  • rduckvep_lof_sql() wraps duckvep_lof_sql() and returns a relation with LOFTEE-compatible lof, lof_filter, lof_flags, lof_info and lof_unchecked fields. Its options are gerp, ancestor, phylocsf, min_intron_size, gerp_end_trunc_cutoff and check_complete_cds. rduckvep_prepare_breakend_pairs(), rduckvep_prepare_breakend_fusion() and rduckvep_prepare_structural_hgvs() wrap the native breakend identity, endpoint-gene and structural HGVS builders.

  • rduckvep_coding_calls() reads VCF or BCF into the calls relation consumed by rduckvep_haplotypes(), discovering coding transcripts before decoding genotypes. The model’s seq_region_name values must match VCF CHROM. rduckvep_coding_transcripts() returns the model ordinals touched by a normalized coding event; a shared indel anchor alone does not count. max_alignment_cells is checked against the cell count of the alignment band a path needs. See the scale measurements.

  • Models with origin-crossing transcripts, exons or regulatory features on circular regions use lifted-interval annotation. Structural, breakend and phased-edit entry points reject a model containing a wrapped circular object.

  • SQL preparation and annotation functions are native builders. Use query(duckvep_annotate_sql(...)) with rduckvep_annotate_sql() or call rduckvep_annotate() for a data frame; builder options are passed in a trailing STRUCT.

Rduckvep 0.1.0

  • First standalone release of DuckVEP’s R front end, extracted from DuckHTS/Rduckhts with its Git history. The package entry point is rduckvep_haplotypes() (the Rduckhts wrapper was rduckhts_haplotypes()); rduckvep_connect() and rduckvep_load() provide DuckVEP connection helpers.