Manually syncing your pipeline
In rare cases, you need to trigger synchronisation manually.
This applies when automated sync did not run during an nf-core/tools release on GitHub, when you want to perform a targeted sync, or when you maintain a custom pipeline created with nf-core pipelines create.
Automated template syncs only apply to official nf-core pipelines. Custom pipelines require manual synchronisation.
Sync an official nf-core pipeline
Use this approach when working with an official nf-core pipeline that needs manual synchronisation:
-
Navigate to your pipeline directory and check out your development branch:
cd <pipeline-name>git checkout dev -
If you work on a fork, pull the
TEMPLATEbranch from the upstream nf-core repository:git remote add upstream https://github.com/nf-core/<pipeline-name>.gitgit checkout --track upstream/TEMPLATEgit checkout dev -
Run the sync command:
nf-core pipelines sync
The sync command creates a merge that you can resolve locally, similar to automated sync pull requests.
Sync a custom pipeline with a pull request
Use this approach when you maintain a custom pipeline and want to create a pull request to your dev branch:
-
Navigate to your pipeline directory:
cd <pipeline-name> -
Run the sync command with pull request options:
nf-core pipelines sync \--dir <pipeline-directory> \--from-branch dev \--pull-request \--username <github-username> \--github-repository <github-repository-url>
This creates a pull request in your repository that you can review and merge through the GitHub interface.