Skip to content

Store CAFs from input VCF #46

@jsstevenson

Description

@jsstevenson

Feature description

functions.ingest_vcf has a stub for storing each CAF in the anyvlm DB:

for batch in _yield_expression_af_batches(vcf):
expressions, afs = zip(*batch, strict=True)
variant_ids = av.put_allele_expressions(expressions, assembly)
for variant_id, af in zip(variant_ids, afs, strict=True): # noqa: B007
if variant_id is None:
continue
# make call to object store method for putting CAF here
# presumably build the CAF object here + call the insert method with it
# may need to alter zip() if the insert method expects a full variation
# instead of just the ID

This needs to be replaced with CAF construction from those args + upload into DB

Use case

Using anyvlm

Acceptance Criteria

Given that an uploaded VCF has been decomposed into alleles + AF annotations, these data need to be reconstituted as CAFs and added to AnyVLM storage

Proposed solution

No response

Potential Impact

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions