`reference` has `start1`, `dna`, and `strand`. `exons` and `blocks` are data frames with `start1` and `end1`; blocks are in transcription order. `sources` is a data frame with `source_id`, `start1`, `reference`, and `alternate`. `programme` has `id`, `evidence_id`, `assumption_id`, `expected_reference_rna`, `annotated_start1`, `alternative_start1`, `alternative_trigger_id`, and `genetic_code`. Supply zero and an empty trigger when there is no alternative initiation programme.
Details
Genomic positions and source IDs are unsigned 64-bit coordinates. Supply decimal character values for integers outside R's exact double range. The R result represents these unsigned 64-bit values as decimal character data. The edit set is hypothetical, not evidence that calls were observed in cis. The supplied RNA is validated against the reference and mapped blocks. Peptides begin with methionine at the declared valid initiator and end at the first reached stop; the returned RNA retains the complete mapped sequence. `conditional_nmd` remains unknown without shared NMD eligibility rules. This experimental versioned API supports disjoint, fixed-length substitutions; it does not infer an RNA product or scan for alternative initiation.
Examples
local({
con <- rduckvep_connect()
on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
reference <- list(start1 = 1L, dna = "ATGAAATAA", strand = 1L)
exons <- data.frame(start1 = 1L, end1 = 9L)
sources <- data.frame(source_id = 0L, start1 = 4L,
reference = "A", alternate = "G")
programme <- list(id = "annotated", evidence_id = "supplied",
assumption_id = "joint_assignment", expected_reference_rna = reference$dna,
annotated_start1 = 1L, alternative_start1 = 0L,
alternative_trigger_id = "", genetic_code = 1L)
answer <- rduckvep_product_scenario(con, reference, exons, exons,
sources, programme)
answer[c("programme_id", "allele_evidence", "product_evidence", "conditional_nmd")]
})
#> programme_id allele_evidence product_evidence conditional_nmd
#> 1 annotated hypothetical_assignment supplied_programme unknown