-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/rc'
For release version 3.6.15
- Loading branch information
Showing
16 changed files
with
759 additions
and
240 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: binary tarball | ||
|
||
on: [release] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: setup | ||
run: sudo apt-get install -y hmmer ncbi-blast+ curl build-essential | ||
- name: download | ||
run: bash -x .github/workflows/get_binary_release.sh | ||
- name: where are we | ||
run: | | ||
pwd | ||
ls -al | ||
- name: test protein | ||
run: | | ||
./amrfinder --plus -p test_prot.fa -g test_prot.gff -O Escherichia > test_prot.got | ||
diff test_prot.expected test_prot.got | ||
- name: test dna | ||
run: | | ||
./amrfinder --plus -n test_dna.fa -O Escherichia --mutation_all test_dna_mut_all.got > test_dna.got | ||
diff test_dna.expected test_dna.got | ||
- name: test combined | ||
run: | | ||
./amrfinder --plus -n test_dna.fa -p test_prot.fa -g test_prot.gff -O Escherichia > test_both.got | ||
diff test_both.expected test_both.got |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
# found and lightly modified these functions | ||
get_latest_release() { | ||
curl --silent "https://api.github.com/repos/$1/releases/latest" | | ||
grep '"tag_name":' | | ||
cut -d '"' -f 4 | ||
} | ||
|
||
get_tarball_url() { | ||
curl --silent "https://api.github.com/repos/$1/releases/latest" | | ||
fgrep '"browser_download_url":' | | ||
cut -d '"' -f 4 | ||
} | ||
|
||
|
||
release=$(get_latest_release ncbi/amr) | ||
URL=$(get_tarball_url ncbi/amr) | ||
|
||
# download and unpack AMRFinder binaries | ||
curl --silent -L -O $URL | ||
tarball_name=$(echo $URL | perl -pe 's#^.*/(.*)#\1#') | ||
tar xfz $tarball_name | ||
rm $tarball_name | ||
|
||
# download and unpack test | ||
curl --silent \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_dna.fa \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_prot.fa \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_prot.gff \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_both.expected \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_dna.expected \ | ||
-O https://raw.githubusercontent.com/ncbi/amr/master/test_prot.expected | ||
|
||
# download database | ||
./amrfinder --update |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Mac bioconda test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- rc | ||
schedule: | ||
- cron: '30 3 * * *' # 3:30am everyday | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: download conda | ||
run: curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | ||
- name: install conda | ||
run: | | ||
bash ./Miniconda3-latest-MacOSX-x86_64.sh -b -p /Users/runner/miniconda3 | ||
source /Users/runner/miniconda3/bin/activate | ||
conda init | ||
- name: install AMRFinderPlus | ||
run: | | ||
source /Users/runner/miniconda3/bin/activate | ||
conda install -y -c bioconda ncbi-amrfinderplus | ||
- name: Download AMRFinderPlus database | ||
run: /Users/runner/miniconda3/bin/amrfinder -u | ||
- name: test protein | ||
run: | | ||
source /Users/runner/miniconda3/bin/activate | ||
amrfinder --plus -p test_prot.fa -g test_prot.gff -O Escherichia > test_prot.got | ||
diff test_prot.expected test_prot.got | ||
- name: test dna | ||
run: | | ||
source /Users/runner/miniconda3/bin/activate | ||
amrfinder --plus -n test_dna.fa -O Escherichia --mutation_all test_dna_mut_all.got > test_dna.got | ||
diff test_dna.expected test_dna.got | ||
- name: test combined | ||
run: | | ||
source /Users/runner/miniconda3/bin/activate | ||
amrfinder --plus -n test_dna.fa -p test_prot.fa -g test_prot.gff -O Escherichia > test_both.got | ||
diff test_both.expected test_both.got |
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.