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

Error message - how interpret? #25

Open
Walwa opened this issue Mar 6, 2022 · 2 comments
Open

Error message - how interpret? #25

Walwa opened this issue Mar 6, 2022 · 2 comments

Comments

@Walwa
Copy link

Walwa commented Mar 6, 2022

I have a large matrix, formed by core genome MLST. I have removed all the monomorphic values from the matrix. When I try the command on my large or a shorter matrix : tess3.obj <- tess3(X = test.mat, K = 1:20, ploidy = 1, method = "projected.ls",
coord = coord.strat, openMP.core.num = 30, rep = 20, max.iteration = 200,
keep = "best", mask = 0, verbose = F)
I get the error message : " Error in CheckX(X, ploidy) : The maximum value of the genotype matrix (X) cannot be greater than ploidy + 1. Missing data must be encoded as NA."

I have checked and each cell has a single value, but sometimes the value is 3, 4 or 5 as the genotyping is not bi-allelic. Is the issuethat some of my loci have >2 genotypes? Or is it something else?

@francoio
Copy link
Collaborator

francoio commented Mar 7, 2022

yes, the issue is that some loci have >2 genotypes (for haploid organismd).

For multiallelic loci, first convert the data with tess2tess3. The function will create one column (or binary marker) for each allele, and the tess3r function will then work fine. Note this how "structure" performs analysis too.

@Walwa
Copy link
Author

Walwa commented Mar 7, 2022

Thank you for your help and for the software.

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

2 participants