Skip to content

Feature request: Allow writing masks to plink2 (pgen) file format so that non-integer weighted genotypes can be captured #671

Description

@dvg-p4

Currently --write-mask only supports plink1 format, which is incapable of storing non-integer dosages. Thus if there are non-integer dosages (either in the original input, e.g. for imputed variants; or due to applying non-integer weights) --write-mask will round them to the nearest integer. This is bad for accuracy and for reproducibility, since it throws away any information that those fractional parts may have contained; and since the actual analysis is done on the fractional values (not the rounded ones).

To address this issue, I propose adding a --write-mask-pgen flag [edit] adding a --mask-format option that can be set to "pgen" to write the unrounded pseudo-genotypes to plink2 format (.pgen, .pvar, .psam).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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