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
overwriteandhgvsmust beTRUEorFALSE; the error names the argument.rduckvep_haplotypes()works on the C API v2 host: it stages the calls withduckvep_haplotype_load_sql()under a unique job name, runs the statements on the connection and readsduckvep_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 = TRUEinrduckvep_haplotypes(),rduckvep_coding_transcripts()andrduckvep_coding_calls()replaces the table only once the query succeeds; a failing query leaves the existing table in place.rduckvep_vcf_events_sql()wrapsduckvep_vcf_events_sql(): it turns VCF records withread_bcfcolumns 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()andrduckvep_prepare_expansionhunter()take relations shaped like DuckHTSread_bcf()output (typedINFO_*and, for ExpansionHunter,FORMAT_*columns) instead of rawinfo,formatandsampletext. Geometry and structural HGVS read a symbolic span withSVLENbeforeEND, 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_skippedevidence.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
SVLENand retains insertion-specific overlap consequences.rduckvep_haplotypes()predicts consequences for phased whole-coding haplotypes underduckvep-coding. It accepts complete phased calls of any ploidy, literal alleles of any length, and transcripts using supported genetic codes. The phase policy isstrictby default, orvep_compatto read GT slots in order as VEP’s haplotype mode does; the NMD rule isejc50.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 reasonper_record_terms. Curated translations and RNA editing programmes are classified as part of the reference.With
hgvs = TRUE, proven-cis multi-record paths get compoundhgvscandhgvspnames 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_contributorsandnmd_exceptions;nominal_length_diffis 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_exceptionsreportsstart_proximalwhen the premature stop lies within the first 100 coding bases andlong_exonwhen its edited-transcript exon exceeds 407 bases; these labels do not change the junction-rule prediction.The
ejc50rule reportstriggerwhen the edited distance from the first premature stop to the penultimate-exon junction exceeds 50 nt, andescapeat 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 theNMD_transcript_variantbiotype 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_flagsbit 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()andrduckvep_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_apiand binds its bundled HTSlib, zlib and cgranges locally.SIDE_MODULE=2, an explicit export list and-Bsymbolicisolate 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 produceunknown model name; use DuckHTS newer than 1.5.2 with DuckVEP.rduckvep_lof_sql()wrapsduckvep_lof_sql()and returns a relation with LOFTEE-compatiblelof,lof_filter,lof_flags,lof_infoandlof_uncheckedfields. Its options aregerp,ancestor,phylocsf,min_intron_size,gerp_end_trunc_cutoffandcheck_complete_cds.rduckvep_prepare_breakend_pairs(),rduckvep_prepare_breakend_fusion()andrduckvep_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 byrduckvep_haplotypes(), discovering coding transcripts before decoding genotypes. The model’sseq_region_namevalues must match VCFCHROM.rduckvep_coding_transcripts()returns the model ordinals touched by a normalized coding event; a shared indel anchor alone does not count.max_alignment_cellsis 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(...))withrduckvep_annotate_sql()or callrduckvep_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 wasrduckhts_haplotypes());rduckvep_connect()andrduckvep_load()provide DuckVEP connection helpers.