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 in Generate HTML report #1

Open
marchettibruno opened this issue Jul 14, 2020 · 2 comments
Open

Error in Generate HTML report #1

marchettibruno opened this issue Jul 14, 2020 · 2 comments

Comments

@marchettibruno
Copy link

I can input my data file and output the + _perf.tsv file. However, when I try to generate an HTML report using the "-a" command the fallowing message appears. I also tried to use the "-a" with the "test_data" files from the own "perf-master" folder, and the same message appears.

Command:
PERF -i test_input.fa -o test_input_perf.tsv -a

Result:

Generating HTML report. This may take a while..

Traceback (most recent call last):
File "C:\Users\zehla\Documents\perfmaster\PERF-script.py", line 11, in
load_entry_point('perf-ssr==0.4.5', 'console_scripts', 'PERF')()
File "C:\Users\zehla\Documents\perfmaster\PERF\core.py", line 151, in main
ssr_native(args, length_cutoff=args.min_length)
File "C:\Users\zehla\Documents\perfmaster\PERF\core.py", line 101, in ssr_native
fasta_ssrs(args, repeats_info)
File "C:\Users\zehla\Documents\perfmaster\PERF\rep_utils.py", line 235, in fasta_ssrs
analyse_fasta(args)
File "C:\Users\zehla\Documents\perfmaster\PERF\analyse.py", line 205, in analyse_fasta
writetoHTML(html_report, defaultInfo, repeat_options, 'fasta')
File "C:\Users\zehla\Documents\perfmaster\PERF\analyse.py", line 31, in writetoHTML
lodash_js = open('%s/lib/src/lodash.min.js' %(current_dir), 'r').read()
File "C:\Users\zehla\Documents\perfmaster\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7378: character maps to

@avvaruakshay
Copy link
Collaborator

Hi,
This seems to be a Windows OS specific issue. We are working on resolving it.

@sakethsaxena
Copy link

Not sure if this is resolved but that looks like the file might be encoded as 'utf-8-sig' or 'latin-1', might be worth it to try reading by iterating over those encodings by setting the encoding parameter in the open() method.

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

3 participants