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

Unrecognized character found in trait file #105

Open
shaodongyan opened this issue Dec 11, 2022 · 2 comments
Open

Unrecognized character found in trait file #105

shaodongyan opened this issue Dec 11, 2022 · 2 comments

Comments

@shaodongyan
Copy link

Command: /opt/anaconda3/envs/scoary/bin/scoary -g gene_presence_absence_roary.csv -t Hostgroup_membership.csv -p 1 -c BH --no_pairwise
Performing no pairwise comparisons. Ignoring all tree related options (user tree, population aware-correction, permutations).
Reading gene presence absence file
Ignoring relatedness among input sample and performing only population structure-naive analysis.
Reading traits file
CRITICAL:
Traceback (most recent call last):
File "/opt/anaconda3/envs/scoary/lib/python3.6/site-packages/scoary/methods.py", line 268, in main
strains)
File "/opt/anaconda3/envs/scoary/lib/python3.6/site-packages/scoary/methods.py", line 579, in Csv_to_dic
"values (no commas): %s" % str(",".join(allowed_values)))
SystemExit: Unrecognized character found in trait file. Allowed values (no commas): 0,1,NA,.,-, ,
Unrecognized character found in trait file. Allowed values (no commas): 0,1,NA,.,-, ,

Hostgroup_membership.csv

But My file is normal .could help me ? Thanks!

@ne1al
Copy link

ne1al commented Mar 25, 2023

@shaodongyan I had the same error too while they recommend CSV file, did you figure it out?

@ne1al
Copy link

ne1al commented Mar 25, 2023

@shaodongyan I tried something and it worked. Leave the first column totally empty. The second column should contain the sample names but without header, traits column can have header. I hope this works for you!

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