Skip to content

Silent Failure of Annotation Weights for When variant_type != "SNV" #88

@kwdoyle

Description

@kwdoyle

When running the Gene_Centric_Coding / Gene_Centric_Noncoding functions, I recently found that functional annotation weights are silently ignored when variant_type is set to "indel" or "variant", despite no indication in the documentation suggesting this would occur.

The source of this is nested within the coding and noncoding functions, used by Gene_Centric_Coding and Gene_Centric_Noncoding

coding.R:88-117 and noncoding.R123-152: Annotation processing wrapped in if(variant_type=="SNV")

The same is true for the MetaSTAARlite functions, coding_MetaSTAARlite_worker and noncoding_MetaSTAARlite_worker

If variant_type is anything but 'SNV', the Use_annotation_weights argument essentially becomes useless, effectively forcing it to be FALSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions