Skip to content

Need a flag to decide what to do about sites that are not shared between multiple VCZ input files #1190

Description

@hyanwong

It will be common to have (say) 2 separate VCZ files, A and B with overlapping but not identical sites. For sites that are in A.vcf but not in B.vcf, we need to decide what to do. The options are basically to treat the allelic state for the samples in B.vcf as missing, to treat them as REF, or to treat them as the ancestral state.

At the moment, the design.md file has a draft for phase 2 that states "Genotypes at sites absent from a source are treated as missing for that source's samples." Although missing seems reasonable (and is probably what we did for the unified genealogy), I suspect this will lead to an incorrect frequency value, because the most likely interpretation is that the site is entirely REF in B.vcf. This is a different sort of missingness to case where we actually don't know the genotype for specific samples in sites defined within a VCF.

So I suggest that we update the design and mark these sites as REF by default. We could either have a parameter that allows this to be changed so that they are treated as missing, or we could simply require the use to define an all-missing site if they want this behaviour.

As an aside, we should also check that the sites that are shared between the VCFs define the same REF, and raise an error if not. They need not have the same ALT alleles, however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions