This error is raised when the SampCompDB doesn't contain any significant site.
It's expected that results doesn't exist in this case, but instead of throwing this uninformative error Nanocompore should print a message informing the user.
Related to #121.
Traceback:
Traceback (most recent call last):
File "/anaconda3/envs/nanocompore/bin/nanocompore", line 8, in <module>
sys.exit(main())
File "/anaconda3/envs/nanocompore/lib/python3.6/site-packages/nanocompore/__main__.py", line 139, in main
args.func(args)
File "/anaconda3/envs/nanocompore/lib/python3.6/site-packages/nanocompore/__main__.py", line 176, in sampcomp_main
db.save_all(pvalue_thr=args.pvalue_thr)
File "/anaconda3/envs/nanocompore/lib/python3.6/site-packages/nanocompore/SampCompDB.py", line 258, in save_all
self.save_report(output_fn = outpath_prefix+"nanocompore_results.tsv")
File "/anaconda3/envs/nanocompore/lib/python3.6/site-packages/nanocompore/SampCompDB.py", line 381, in save_report
for record in self.results[self.results.ref_id == cur_id ].itertuples():
AttributeError: 'SampCompDB' object has no attribute 'results'
This error is raised when the SampCompDB doesn't contain any significant site. It's expected that
results
doesn't exist in this case, but instead of throwing this uninformative error Nanocompore should print a message informing the user. Related to #121.Traceback: