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

UnicodeDecode Error while reading traits file #107

Open
arijitnus opened this issue Jan 15, 2023 · 0 comments
Open

UnicodeDecode Error while reading traits file #107

arijitnus opened this issue Jan 15, 2023 · 0 comments

Comments

@arijitnus
Copy link

Appreciate @AdmiralenOla if you could guide me in making the approproate traits file for scoary.
scoary seems to read the gene presence absence file accurately.

Command: /home/svu/e0512807/miniconda3/envs/scoary/bin/scoary -t traits_scoary_plant_soil.tsv -g matrix_scoary_plant_soil.tsv --no_pairwise -c BH -p 1.0
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
Traceback (most recent call last):
File "/home/svu/e0512807/miniconda3/envs/scoary/bin/scoary", line 10, in
sys.exit(main())
File "/home/svu/e0512807/miniconda3/envs/scoary/lib/python3.6/site-packages/scoary/methods.py", line 268, in main
strains)
File "/home/svu/e0512807/miniconda3/envs/scoary/lib/python3.6/site-packages/scoary/methods.py", line 551, in Csv_to_dic
tab = list(zip(*csv.reader(csvfile, delimiter=delimiter)))
File "/home/svu/e0512807/miniconda3/envs/scoary/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]

UnicodeDecodeError: 'ascii' codec can't decode byte 0x82 in position 10: ordinal not in range(128)

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