Hi,
I’m currently getting started with the nanopore sequencing for covid strain testing at Sickkids DPLM. I’m use to Illumina WES/WGS sequencing so this is something totally different for me.
I ran the installation and setup on our HPC centos7 with no issues using my own installation of miniconda3.
Unfortunately, when trying to run the example step:
snakemake --cores 1 --profile ./my_profiles/getting_started
I’m getting the following error:
[Wed Oct 14 06:09:17 2020]
Job 5: Constructing colors file
python3 scripts/assign-colors.py --ordering defaults/color_ordering.tsv --color-schemes defaults/color_schemes.tsv --output results/global/colors.tsv --metadata data/example_metadata.tsv 2>&1 | tee logs/colors_global.txt
Traceback (most recent call last):
File “scripts/assign-colors.py”, line 22, in
for line in f.readlines():
File “/hpf/largeprojects/pray/llau/programs/miniconda3/miniconda3_2020/envs/nextstrain/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 0xc3 in position 7071: ordinal not in range(128)
[Wed Oct 14 06:09:18 2020]
Error in rule colors:
jobid: 5
output: results/global/colors.tsv
log: logs/colors_global.txt (check log file(s) for error message)
shell:
python3 scripts/assign-colors.py --ordering defaults/color_ordering.tsv --color-schemes defaults/color_schemes.tsv --output results/global/colors.tsv --metadata data/example_metadata.tsv 2>&1 | tee logs/colors_global.txt
(one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)
The log file has the same error as above this:
(nextstrain) [llau@qlogin11 logs]$ cat colors_global.txt
Traceback (most recent call last):
File “scripts/assign-colors.py”, line 22, in
for line in f.readlines():
File “/hpf/largeprojects/pray/llau/programs/miniconda3/miniconda3_2020/envs/nextstrain/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 0xc3 in position 7071: ordinal not in range(128)
I’ve tried to add :
with open(args.ordering, ‘r+’, encoding=‘utf-8’) as f:
Unfortunately, that caused more errors downstream in the write out:
f.write(trait_name + “\t” + trait_value + “\t” + color + “\n”)
Any help would be greatly appreciated! Thanks so much!
Lynette