This script was made to make the generation of GitHub repositories to deploy CompuCell3D tools an easier task.
The current version of CompuCell3D in nanoHUB is 4.2.5
- Python 3
- Be able to run
python
from the command line. You can 1) edit your PATH system variable, 2) provide the full path command, or 3) create an alias. - GitHub account
- NanoHub account
- Run
git
from the command line
- Dowload / Clone this repository to your machine.
- Create a GitHub repository where you're going to have your nanoHub tool ("tool repo"). Have it cloned to your computer.
- On a command line from the cc3d-nanoHub-settuper directory on your machine call the script
tool_maker.py
. If successfull it'll copy all the necessary files for the nanoHub tool. You will provide three arguments to the script:
python tool_maker.py <short tool name> <full-path-to-new-tool-directory> <full-path-to-your-cc3d-project>
The <short tool name>
needs to be between 3 and 15 lowercase alphanumeric characters without spaces. The <full-path-to-your-cc3d-project>
is where the .cc3d
of your CompuCell3D simulation is. <full-path-to-new-tool-directory>
is the tool repo.
Some files might have lost run permissions. You need to check two files in your tool repo:
invoke
file in themiddleware
subdirectory,- And the
.sh
file in thebin
subdirectory.
To check if they still have the executable permission you should go into the tool repo in the GitHub website:
If any of them is not executable you should, from a command line, go to the relevant directory and issue the following commands:
$ git update-index --chmod=+x invoke
$ git commit -m "Changing file permissions"
$ git push
Changing the first command accordinly if you're dealing with the .sh
file.
Go to https://nanohub.org/tools/create
and follow the instructions there. The one thing you must be carefull about is that the <short tool name>
you gave before is the same as the one you input on the first box (Tool Name
) on nanoHub's tool creation page.