diff --git a/README.md b/README.md index 503fa32..5566504 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ Aside of performing calculations on metabolic models, CNApy can also be used to There are 4 alternative ways to install CNApy: 1. If you use Windows, the easiest way is to use our Windows installer, see section [Using the Windows installer](#using-the-windows-installer). -2. If you use Linux or Apple MacOS X, the easiest installation producure is our assisted installation protocol, see [Assisted installation under Linux and MacOS X](#assisted-installation-under-linux-and-macos-x). -3. If you already have installed [Anaconda](https://www.anaconda.com/), [Miniconda](https://docs.anaconda.com/free/miniconda/index.html) or [Miniforge](https://github.com/conda-forge/miniforge) on your computer, you can directly install CNApy as a conda package as described in section [Install CNApy as conda package](#install-cnapy-as-conda-package). +2. If you already have installed [Anaconda](https://www.anaconda.com/), [Miniconda](https://docs.anaconda.com/free/miniconda/index.html) or [Miniforge](https://github.com/conda-forge/miniforge) on your computer, you can directly install CNApy as a conda package as described in section [Install CNApy as conda package](#install-cnapy-as-conda-package). *Note*: If you're on MacOS and want to use CPLEX as solver, you have to use the x86 version of Anaconda as the Apple Silicon one is not supported by CPLEX yet. +3. If you use Linux or Apple MacOS X, the easiest installation producure is our assisted installation protocol, see [Assisted installation under Linux and MacOS X](#assisted-installation-under-linux-and-macos-x). 4. If you want to develop CNApy, follow the instruction for the cloning and setup of the CNApy repository using git and conda or mamba in section [Setup the CNApy development environment](#setup-the-cnapy-development-environment). ## Contribute to the CNApy development @@ -59,7 +59,7 @@ Everyone is welcome to contribute to CNApy's development. [See our contribution ## Using the Windows installer -1. Download the zipped CNApy Windows installer [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.1.11/cnapy-windows-installer.zip). +1. Download the zipped CNApy Windows installer [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.2.1/cnapy-windows-installer.zip). 2. Unzip the file into your desired location. You can do this by right-clicking on the file and selecting the option to extract the files. 3. In the location where you unzipped the file, click on "INSTALL_CNAPY.bat"; This installation procedure only works with an active internet conncection. As soon as the installation is finished, the appearing window closes and you can start CNApy either by double-clicking on the newly created CNApy shortcut on your desktop (which also shows CNApy's logo) or the newly created RUN_CNAPY.bat in the folder where INSTALL_CNAPY.bat lies. If CNApy is not starting, this might have been caused by an internet connection problem; Running "INSTALL_CNAPY.bat" again might solve the problem. To uninstall CNApy, double-click on the UNINSTALL_CNAPY.bat in the same folder. @@ -75,12 +75,12 @@ Click on the operating system you use: 1. Download Miniforge [from here](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh). 2. Install Miniforge by double-clicking the downloaded file. If the script does not run, right-click on the file, open its settings and select the option to make it executable (alternative: run 'chmod u+x ./Miniconda3-latest-Linux-x86_64.sh' in your terminal). Follow the appearing installation instructions and remember in which folder you install Miniconda. *Note*: If you already have installed Anaconda on your computer before (for which we also directly provide a conda CNApy package, [see here](#install-cnapy-as-conda-package)), deactivate all installation options which put Miniconda to your console or system PATH to avoid possible problems. 3. Using your file manager, go to the folder where you installed Miniforge. Then, open the appearing sub-folder "condabin". -4. Download the CNApy installation assistant script [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.1.11/cnapy-assistant-script.sh) into the mentioned "condabin" folder. +4. Download the CNApy installation assistant script [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.2.1/cnapy-assistant-script.sh) into the mentioned "condabin" folder. 5. In the file manager, double-click on the newly downloaded installation assistant script which is called "cnapy-assistant-script.sh". If the script does not run, right-click on the file, open its settings and select the option to make it executable or, alternatively, run 'chmod u+x ./cnapy-assistant-script.sh' in your terminal in the mentioned "condabin" folder. Wait until CNApy is downloaded and installed. 6. You can now run CNApy by executing the following two terminal instructions in the mentioned "condabin" folder: ```sh -./conda activate cnapy-1.1.11 +./conda activate cnapy-1.2.1 cnapy ``` @@ -88,15 +88,17 @@ If you installed Miniforge system-wide, it's also possible to run these commands ### Assisted MacOS X installation -1. If you have a (new) Mac with an ARM processor, such as the M1, M2 or M3, download Miniconda [from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.pkg). If you have an (older) Mac with an Intel processor, download Miniconda [from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg). If you are unsure which processor your Mac has, click on the Apple menu in the upper-left of your screen and choose "About This Mac". *Note*: Currently, if you want to use the CPLEX solver within CNApy, you have to install the Intel processor version of Miniconda regardless of your Mac's processor. This is caused by the lack of a CPLEX ARM Python package ([see also this issue for more details](https://github.com/cnapy-org/CNApy/issues/491)). +*Note*: Currently, if you want to use the CPLEX solver within CNApy, you have to install the Intel processor version of Miniconda regardless of your Mac's processor. This is caused by the lack of a CPLEX ARM Python package ([see also this issue for more details](https://github.com/cnapy-org/CNApy/issues/491)). + +1. If you have a (new) Mac with an ARM processor, such as the M1, M2 or M3, download Miniconda [from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.pkg). If you have an (older) Mac with an Intel processor, download Miniconda [from here](https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.pkg). If you are unsure which processor your Mac has, click on the Apple menu in the upper-left of your screen and choose "About This Mac". 2. Install Miniconda by double-clicking the downloaded file. Follow the appearing installation instructions and remember in which folder you install Miniconda. *Note*: If you already use Anaconda on your computer (for which we directly provide a conda CNApy package, [see here](#install-cnapy-as-conda-package)), deactivate all installation options which put Miniconda to your console or system PATH to avoid possible problems 3. Using Finder, go to the folder where you installed Miniconda. Then, open the appearing sub-folder "condabin". -4. Download the CNApy installation assistant script [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.1.11/cnapy-assistant-script.sh) into the mentioned "condabin" folder. +4. Download the CNApy installation assistant script [from here](https://github.com/cnapy-org/CNApy/releases/download/v1.2.1/cnapy-assistant-script.sh) into the mentioned "condabin" folder. 5. In the file manager, double-click on the newly downloaded installation assistant script which is called "cnapy-installation-script.sh". If the script does not run, right-click on the file, open its settings and select the option to make it executable (alternative: run 'chmod u+x ./cnapy-assistant-script.sh' in your terminal). Wait until CNApy is downloaded and installed. 6. Open the terminal in the mentioned "condabin" folder. You can now run CNApy by executing the following two terminal instructions: ```sh -./conda activate cnapy-1.1.11 +./conda activate cnapy-1.2.1 cnapy ``` @@ -109,13 +111,13 @@ cnapy 1. Create a conda environment with all dependencies ```sh - conda create -n cnapy-1.1.11 -c Gurobi -c IBMDecisionOptimization -c conda-forge -c cnapy cnapy=1.1.11 --yes + conda create -n cnapy-1.2.1 -c Gurobi -c IBMDecisionOptimization -c conda-forge -c cnapy cnapy=1.2.1 --yes ``` 2. Activate the cnapy conda environment ```sh - conda activate cnapy-1.1.11 + conda activate cnapy-1.2.1 ``` 3. Run CNApy within you activated conda environment diff --git a/cnapy/appdata.py b/cnapy/appdata.py index 3c1c9c4..c341f76 100644 --- a/cnapy/appdata.py +++ b/cnapy/appdata.py @@ -31,7 +31,7 @@ class AppData(QObject): def __init__(self): QObject.__init__(self) - self.version = "cnapy-1.1.11" + self.version = "cnapy-1.2.1" self.format_version = 2 self.unsaved = False self.project = ProjectData() @@ -41,7 +41,7 @@ def __init__(self): self.scen_color_good = QColor(130, 190, 0) self.scen_color_warn = QColor(255, 200, 0) self.scen_color_bad = Qt.red - + font = QFont() font.setFamily(font.defaultFamily()) self.font_size = font.pointSize() diff --git a/constructor/linux/construct.yaml b/constructor/linux/construct.yaml index 7bf255f..26cd5f3 100644 --- a/constructor/linux/construct.yaml +++ b/constructor/linux/construct.yaml @@ -1,5 +1,5 @@ name: CNApy -version: 1.1.11 +version: 1.2.1 ignore_duplicate_files: True diff --git a/constructor/win/README.md b/constructor/win/README.md index 8f50f2e..7c0e4e1 100644 --- a/constructor/win/README.md +++ b/constructor/win/README.md @@ -24,12 +24,12 @@ We use conda as package manager to install CNApy. You can use [miniconda](https: 1. Create a conda environment with all dependencies ```sh - conda create -n cnapy-1.1.11 -c conda-forge -c cnapy cnapy=1.1.11 + conda create -n cnapy-1.2.1 -c conda-forge -c cnapy cnapy=1.2.1 ``` 2. Activate the cnapy conda environment ``` - conda activate cnapy-1.1.11 + conda activate cnapy-1.2.1 ``` 3. Run CNApy diff --git a/constructor/win/construct.yaml b/constructor/win/construct.yaml index 42a3982..a80e4f5 100644 --- a/constructor/win/construct.yaml +++ b/constructor/win/construct.yaml @@ -1,5 +1,5 @@ name: CNApy -version: 1.1.11 +version: 1.2.1 ignore_duplicate_files: True @@ -10,7 +10,7 @@ channels: specs: - conda - # - cnapy=1.1.11 + # - cnapy=1.2.1 - mamba - pip - python=3.8 diff --git a/constructor/win/post_install.bat b/constructor/win/post_install.bat index 068efc4..441d713 100644 --- a/constructor/win/post_install.bat +++ b/constructor/win/post_install.bat @@ -1,5 +1,5 @@ call %~dp0..\Scripts\activate.bat -call mamba install cnapy=1.1.11 -c cnapy -c conda-forge -v --yes +call mamba install cnapy=1.2.1 -c cnapy -c conda-forge -v --yes call pause call %~dp0..\Scripts\conda clean --all --yes diff --git a/docs/index.md b/docs/index.md index 1036d63..22d39ea 100644 --- a/docs/index.md +++ b/docs/index.md @@ -61,13 +61,13 @@ Everyone is welcome to contribute to CNApy's development. [See our contribution 3. Create a conda environment with all dependencies ```sh - conda create -n cnapy-1.1.11 -c conda-forge -c cnapy cnapy=1.1.11 + conda create -n cnapy-1.2.1 -c conda-forge -c cnapy cnapy=1.2.1 ``` 4. Activate the cnapy conda environment ```sh - conda activate cnapy-1.1.11 + conda activate cnapy-1.2.1 ``` 5. Run CNApy within you activated conda environment diff --git a/recipes/linux/meta.yaml b/recipes/linux/meta.yaml index 7345853..fc70b61 100644 --- a/recipes/linux/meta.yaml +++ b/recipes/linux/meta.yaml @@ -1,4 +1,4 @@ -{% set version = '1.1.11' %} +{% set version = '1.2.1' %} package: name: cnapy diff --git a/recipes/noarch/meta.yaml b/recipes/noarch/meta.yaml index 94830bb..36800ac 100644 --- a/recipes/noarch/meta.yaml +++ b/recipes/noarch/meta.yaml @@ -1,4 +1,4 @@ -{% set version = '1.1.11' %} +{% set version = '1.2.1' %} package: name: cnapy diff --git a/recipes/win/meta.yaml b/recipes/win/meta.yaml index 4122d81..59955c1 100644 --- a/recipes/win/meta.yaml +++ b/recipes/win/meta.yaml @@ -1,4 +1,4 @@ -{% set version = '1.1.11' %} +{% set version = '1.2.1' %} package: name: cnapy diff --git a/setup.py b/setup.py index c278a82..6c789ed 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( name='cnapy', - version='1.1.11', + version='1.2.1', url='https://github.com/cnapy-org/CNApy/', license='GPLv3+', description='An integrated environment for metabolic network analysis.',