single-cell-genetics / XClone

Detection of allele-specific subclonal copy number alterations from single-cell transcriptomic data.
https://xclone-cnv.readthedocs.io/en/latest/
Apache License 2.0
21 stars 2 forks source link

Try to support more python versions #6

Closed Rongtingting closed 3 weeks ago

Rongtingting commented 1 year ago

try to support 3.7, 3.8, 3.9

Rongtingting commented 3 weeks ago

XClone v0.3.4 & v0.3.5 are only tested and supported in Python 3.7, and we recommend you use Python 3.7 for these two versions.

Rongtingting commented 3 weeks ago

For Python3.8, we use poetry to manage the dependency and it shows as follows:

(xclone_dev3.8) (base) [rthuang@xomics XClone]$ poetry add scanpy Using version ^1.10.1 for scanpy

Updating dependencies Resolving dependencies... (0.3s)

The current project's supported Python range (>=3.8,<3.11) is not compatible with some of the required packages Python requirement:

  • scanpy requires Python >=3.9, so it will not be satisfied for Python >=3.8,<3.9

Because no versions of scanpy match >1.10.1,<2.0.0 and scanpy (1.10.1) requires Python >=3.9, scanpy is forbidden. So, because xclone depends on scanpy (^1.10.1), version solving failed.

• Check your dependencies Python requirement: The Python requirement can be specified via the python or markers properties

For scanpy, a possible solution would be to set the python property to ">=3.9,<3.11"

https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies, https://python-poetry.org/docs/dependency-specification/#using-environment-markers

We recommend not use Python 3.8 for XClone installation.

Rongtingting commented 3 weeks ago

XClone version>=0.3.6 recommend Python >=3.9.

Rongtingting commented 3 weeks ago

https://xclone-cnv.readthedocs.io/en/latest/FAQ.html#python-environment

Rongtingting commented 3 weeks ago

XClone v0.3.4 & v0.3.5 are only tested and supported in Python 3.7. XClone version>=0.3.6 highly recommend Python >=3.9 (Python 3.7 also supports XClone version0.3.6). Future functions extended to spatial will be developed on Python >=3.9.