Updating the Pipeline - JoshLoecker/MAPT GitHub Wiki
It may be worthwhile to ensure you have the latest version of the pipeline available by getting the latest changes from GitHub.
- Navigate to the directory that you cloned the pipeline to
- Within the pipeline directory, navigate the the
setup
folder - Execute the
update_pipeline.sh
script by typing:./update_pipeline.sh
a. Note the additional./
. This is required.
Caveats
This script saves your config.yaml
file by moving it to your home directory, getting the latest changes from GitHub, and moving your config.yaml
file back into the directory the update_pipeline.sh
script was called from
As a result, any new parameters that may be located in GitHub's config.yaml
(and used in the Snakefile), will not be found in your current configuration file.
If you would like to ensure you have the latest changes, including those in config.yaml
, perform the following
- Copy your
config.yaml
file to your home directory:mv config.yaml ~/config.yaml.backup
- Update all branches:
git fetch --all
- Reset the current branch:
git reset --hard origin/master
Now, open the backup with nano ~/config.yaml.backup
and copy your changes to the new file with nano config.yaml
.
A better method of ensuring changes do not get overwritten has not been devised as of now.
Please note, changes to config.yaml are not common, and this wil not have to be done frequently.
Return to Wiki Homepage
Continue to Running Guppy in a Singularity Container