-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/fmalmeida/bacannot into 30-a…
…dd-a-sourmash-module
- Loading branch information
Showing
34 changed files
with
657 additions
and
489 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,46 @@ | ||
name: Testing new PR with docker | ||
on: | ||
pull_request: | ||
branches: master | ||
types: [ ready_for_review, synchronize, reopened ] | ||
branches: [master, dev] | ||
types: [ opened, synchronize, reopened ] | ||
|
||
jobs: | ||
run_nextflow: | ||
name: Run pipeline for the upcoming PR | ||
runs-on: ubuntu-latest | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
|
||
steps: | ||
|
||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Nextflow | ||
env: | ||
CAPSULE_LOG: none | ||
run: | | ||
wget -qO- get.nextflow.io | bash | ||
sudo mv nextflow /usr/local/bin/ | ||
- name: Clean environment | ||
run: | | ||
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android | ||
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET | ||
- name: Build bacannot database | ||
run: | | ||
nextflow run main.nf -profile docker --get_dbs --output bacannot_dbs --max_cpus 2 --max_memory '6.GB' --max_time '6.h' | ||
rm -rf bacannot_dbs/antismash_db bacannot_dbs/kofamscan_db bacannot_dbs/prokka_db/PGAP_NCBI.hmm # remove unused in quicktest to diminish size | ||
- name: Run the pipeline | ||
run: | | ||
nextflow run main.nf -profile docker,quicktest --bacannot_db bacannot_dbs | ||
|
||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Nextflow | ||
env: | ||
CAPSULE_LOG: none | ||
run: | | ||
wget -qO- get.nextflow.io | bash | ||
sudo mv nextflow /usr/local/bin/ | ||
- name: Clean environment | ||
run: | | ||
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android | ||
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET | ||
- name: Get database | ||
run: | | ||
nextflow run main.nf -profile docker --get_zenodo_db --output ./ --max_memory '6.GB' --max_cpus 2 | ||
nextflow run main.nf -profile docker --get_zenodo_db --output ./ --max_memory '6.GB' --max_cpus 2 -resume | ||
nextflow run main.nf -profile docker --get_zenodo_db --output ./ --max_memory '6.GB' --max_cpus 2 -resume | ||
sudo rm -r work .nextflow* | ||
yes | docker system prune | ||
- name: Run quicktest profile | ||
run: | | ||
nextflow run main.nf -profile docker,quicktest --bacannot_db $( realpath ./bac* ) --output ./results --max_memory '6.GB' --max_cpus 2 | ||
sudo rm -r work .nextflow* | ||
yes | docker system prune | ||
- name: View results | ||
run: | | ||
sudo apt-get install -y tree | ||
tree ./results |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.