Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing categorical values in data.psam #15

Open
mvochteloo opened this issue Dec 7, 2023 · 0 comments
Open

Missing categorical values in data.psam #15

mvochteloo opened this issue Dec 7, 2023 · 0 comments

Comments

@mvochteloo
Copy link

According to the imputation manual missing values in the input data.psam file should be noted as 'NA'.

Plink2 however expects a 'NONE' value for all categorical values that are missing, resulting in the error:
Error: '<COLUMN>' entry on line <LINE> of <FILE> is numerical/'NA', while earlier entries are categorical. (Case/control and quantitative phenotypes must all be numeric/'NA'. Categegorical phenotypes cannot be 'NA' --use e.g. 'NONE' to represent missing categorical values instead--or start with a number.)

However, assigning a 'NONE' value to e.g. Provided_Ancestry results in an error in the pre-flight checks of the Snakefile.

The pre-flight checks should perhaps distinguish their accepted representations of missing values for categorical and numerical columns in the data.psam file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant