PoonLab / covizu

Rapid analysis and visualization of coronavirus genome variation
https://filogeneti.ca/CoVizu/
MIT License
45 stars 20 forks source link

Problems installing CoVizu backend on an Ubuntu system #476

Closed ArtPoon closed 1 year ago

ArtPoon commented 1 year ago

@SandeepThokala please provide details on the operating system environment, depenency versions, etc. here

SandeepThokala commented 1 year ago

In Jesry the following version were installed

environment.zip

SandeepThokala commented 1 year ago

The full error message after trying to run the pipeline on jesry:

Traceback (most recent call last):
  File "./covizu/batch.py", line 150, in <module>
    timetree, residuals = build_timetree(by_lineage, args, cb.callback)
  File "./covizu/covizu/utils/batch_utils.py", line 84, in build_timetree
    return covizu.treetime.parse_nexus(nexus_file, fasta)
  File "./covizu/covizu/treetime.py", line 161, in parse_nexus
    rmean = statistics.mean(rvals)
  File "./miniconda3/envs/venv/lib/python3.10/statistics.py", line 328, in mean
    raise StatisticsError('mean requires at least one data point')
statistics.StatisticsError: mean requires at least one data point
GopiGugan commented 1 year ago
GopiGugan commented 1 year ago

The error @SandeepThokala was getting was because there were no date estimates in the timetree.nexus file

https://github.com/PoonLab/covizu/blob/7cf87ca2a882490cc93fb7144cd429e691e9fab9/covizu/treetime.py#L131-L146

@SandeepThokala can you please let me know how you installed treetime? I installed version 0.10.0 as well and its working fine.

SandeepThokala commented 1 year ago

We cloned the treetime github repo, and installed it with pip.

ArtPoon commented 1 year ago

Close as norepro for now