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

Each scheme needs a genotype #105

Open
lskatz opened this issue Sep 10, 2021 · 0 comments
Open

Each scheme needs a genotype #105

lskatz opened this issue Sep 10, 2021 · 0 comments

Comments

@lskatz
Copy link

lskatz commented Sep 10, 2021

When creating my own scheme I noticed that I got the same error as in #72 with an undefined hash. This is because I did not create a set of values for my scheme. I instead made a blank scheme:

(echo -ne "ST\t"; \ls *.tfa | sed 's/.tfa//' | tr '\n' '\t'; echo clonal_complex) > lmonocgmlst.txt

What fixed it was adding a dummy value

(echo -ne "ST\t"; \ls *.tfa | sed 's/.tfa//' | tr '\n' '\t'; echo clonal_complex
  # fake genotype to avoid undefined genotype error
  echo -ne 1
  for i in *.tfa; do echo -ne "\t1"; done;
  echo;
) > lmonocgmlst.txt

Suggest either allowing no genotypes in a scheme, creating a dummy genotype internally, or allowing missing genotype data in Scheme.pm.

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