If you ever wrote bash scripts for each of your task, then try to write "one script to rule them all", a gigantic master script that handle parameters, and chains all the other tasks... Then you should stop right here and look for a workflow manager ! Nextflow.io is what you are looking for.
Install on MacOS
Before reading this post, I suggest you follow Improved Shell (MacOS).
Install Java
At the point of writing this post, the recommanded java version to install is OpenJDK 21. See Which JDK for more info.
- Open 'Terminal'
- Install OpenJDK from Homebrew
brew install openjdk@21
- Link it to Java
sudo ln -sfn /opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-21.jdk
- Add it to the PATH
echo 'export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH"' >> ~/.zshrc
Install Nextflow
- Download Nextflow
curl -s https://get.nextflow.io | bash
- Make Nextflow executable
chmod +x nextflow
- Create a new directory with write permissions to store binary
mkdir -p $HOME/.local/bin/
- Move Nextflow into the directory
mv nextflow $HOME/.local/bin/
- Add the directory to the PATH
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
- Confirm Nextflow is installed correctly
nextflow info
Top comments (0)