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 running subset of individuals/loci (assign.matrix) #23

Open
quinn-ca opened this issue Aug 30, 2023 · 0 comments
Open

Error running subset of individuals/loci (assign.matrix) #23

quinn-ca opened this issue Aug 30, 2023 · 0 comments

Comments

@quinn-ca
Copy link

Hi and thanks for the great software,

Everything has been working well so far (thanks for the documentation!), however, I'm getting an error when I run assign.matrix with for specific proportions of loci/individuals. The error states: Error in if (!train.inds == "all") { : the condition has length > 1.

The code below works well:
assign.matrix( dir="assignPOP/MSI_vs_North/known_assignPOP_Result/")

However, the following code produces the error:
assign.matrix( dir="assignPOP/MSI_vs_North/known_assignPOP_Result/", train.inds=c(0.7, 0.9), train.loci=c(0.5, 1))

This was the code I used to generate the results:
assign.MC(known_2_assnPOP_data_95, train.inds=c(0.5, 0.7, 0.9), train.loci=c(0.1, 0.25, 0.5, 1), loci.sample="fst", iterations=100, model="svm", dir="assignPOP/MSI_vs_North/known_assignPOP_Result/")

I'd appreciate any help you can offer!
Quinn

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