Skip to content

Commit c830c88

Browse files
committed
Release 0.1.4
1 parent 4bcc1ad commit c830c88

File tree

89 files changed

+1858
-1931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1858
-1931
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ SHELL=/bin/bash
2424

2525
VENV?=.env
2626

27-
PYTHON_SRC=$(shell find src/elb bin -type f -name "*.py" ! -path "*eggs*" ! -path "*${VENV}*" ! -name __init__.py ! -path "*.tox*" ! -path "*coverage*" ! -path "*cache*" ! -path "./build*")
28-
YAML_TEMPLATES=$(shell find src/elb/templates -type f)
27+
PYTHON_SRC=$(shell find src/elastic_blast bin -type f -name "*.py" ! -path "*eggs*" ! -path "*${VENV}*" ! -name __init__.py ! -path "*.tox*" ! -path "*coverage*" ! -path "*cache*" ! -path "./build*")
28+
YAML_TEMPLATES=$(shell find src/elastic_blast/templates -type f)
2929

3030
all: elastic-blast
3131

@@ -77,11 +77,11 @@ validate-iam-policy: iam-policy.json
7777
-AWS_PAGER='' aws accessanalyzer validate-policy --no-paginate --policy-document file://$< --policy-type RESOURCE_POLICY
7878

7979
.PHONY: validate-cf-templates
80-
validate-cf-templates: src/elb/templates/elastic-blast-cf.yaml
80+
validate-cf-templates: src/elastic_blast/templates/elastic-blast-cf.yaml
8181
AWS_PAGER='' aws --region us-east-1 cloudformation validate-template --template-body file://$<
8282

8383
.PHONY: cfn-lint
84-
cfn-lint: src/elb/templates/elastic-blast-cf.yaml ${VENV}
84+
cfn-lint: src/elastic_blast/templates/elastic-blast-cf.yaml ${VENV}
8585
source ${VENV}/bin/activate && cfn-lint -t $<
8686

8787
#############################################################################
@@ -94,20 +94,20 @@ pylint: ${VENV}
9494

9595
.PHONY: mypy
9696
mypy: ${VENV}
97-
source ${VENV}/bin/activate && mypy src/elb/
97+
source ${VENV}/bin/activate && mypy src/elastic_blast/
9898

9999
.PHONY: yamllint
100100
yamllint: ${VENV}
101101
source ${VENV}/bin/activate && \
102-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/elastic-blast-cf.yaml
102+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/elastic-blast-cf.yaml
103103
source ${VENV}/bin/activate && \
104-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/storage-gcp.yaml
104+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/storage-gcp.yaml
105105
source ${VENV}/bin/activate && \
106-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/storage-gcp-ssd.yaml
106+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/storage-gcp-ssd.yaml
107107
source ${VENV}/bin/activate && \
108-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/pvc.yaml.template
108+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/pvc.yaml.template
109109
source ${VENV}/bin/activate && \
110-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/job-init-*
110+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/job-init-*
111111
source ${VENV}/bin/activate && \
112-
yamllint -d share/etc/yamllint-config.yaml src/elb/templates/blast-batch-job*
112+
yamllint -d share/etc/yamllint-config.yaml src/elastic_blast/templates/blast-batch-job*
113113

Makefile-create-blastdb-metadata

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Makefile to test create-blastdb-metadata.py script
2+
# Author: Christiam Camacho (camacho@ncbi.nlm.nih.gov)
3+
# Created: Tue 15 Jun 2021 11:01:20 AM EDT
4+
5+
SHELL=/bin/bash
6+
.PHONY: all clean check check_python
7+
8+
#########################################################################
9+
# Python support
10+
11+
all:
12+
bin/create-blastdb-metadata.py --help
13+
bin/create-blastdb-metadata.py --version
14+
15+
check: check_python
16+
bin/create-blastdb-metadata.py --db tests/blastdb/testdb --dbtype prot --out testdb.json
17+
cat testdb.json | jq -Mr '.' >/dev/null
18+
rm testdb.json
19+
20+
check_python:
21+
python3 -m py_compile bin/create-blastdb-metadata.py
22+
python3 -m unittest bin/create-blastdb-metadata.py
23+
24+
clean:
25+
find . -name __pycache__ | xargs ${RM} -fr

Makefile-pypi

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Makefile for distributing ElasticBLAST to PyPI
2+
# Author: Christiam Camacho (camacho@ncbi.nlm.nih.gov)
3+
# Created: Mon Jun 14 09:48:58 2021
4+
5+
SHELL=/bin/bash
6+
.PHONY: deploy clean test-deployment test-production-deployment test-deployment-with-search
7+
8+
MODULE?=elastic_blast
9+
PYPI?=testpypi
10+
VERSION?=0.0.56
11+
12+
include Makefile-public
13+
14+
deploy: dist/${MODULE}-${VERSION}.tar.gz
15+
${VENV}/bin/twine upload --verbose --repository ${PYPI} dist/${MODULE}-${VERSION}.tar.gz
16+
17+
dist/${MODULE}-${VERSION}.tar.gz: ${VENV}
18+
${VENV}/bin/pip3 install -q twine
19+
source ${VENV}/bin/activate && python3 setup.py sdist
20+
21+
clean:
22+
${RM} -fr ${VENV} src/*egg-info dist cfg.ini* submit-and-wait-for-results.sh*
23+
24+
TMP_VENV:=$(shell mktemp -d)
25+
test-deployment:
26+
-python3 -m venv ${TMP_VENV} && \
27+
source ${TMP_VENV}/bin/activate && \
28+
pip install --extra-index-url https://test.pypi.org/simple/ ${MODULE}==${VERSION} && \
29+
elastic-blast.py --version
30+
31+
########################################################################
32+
# Support for test-deployment-with-search: running a full search on AWS
33+
export ELB_RESULTS:=s3://elasticblast-${USER}/pypi-test-$(shell date +%F-%T)
34+
test-deployment-with-search: test-deployment submit-and-wait-for-results.sh cfg.ini
35+
@echo Will write results to ${ELB_RESULTS}
36+
source ${TMP_VENV}/bin/activate && ./submit-and-wait-for-results.sh cfg.ini
37+
38+
submit-and-wait-for-results.sh:
39+
[ -f submit-and-wait-for-results.sh ] || curl -sO https://raw.githubusercontent.com/ncbi/elastic-blast-demos/master/submit-and-wait-for-results.sh
40+
[ -x submit-and-wait-for-results.sh ] || chmod +x submit-and-wait-for-results.sh
41+
sed -i~ -e 's,elastic-blast ,elastic-blast.py ,;s/status /status --verbose /' submit-and-wait-for-results.sh
42+
43+
cfg.ini:
44+
curl -s https://raw.githubusercontent.com/ncbi/elastic-blast/master/share/etc/elb-aws-blastn-nt-8-nodes.ini -o $@
45+
sed -i~ -e 's/8x//;s/16/1/;s/1000G/334G/;s/nt/pdbnt/;s/60G/1G/;s,hepatitis.fsa.gz,MANE.GRCh38.v0.8.select_refseq_rna.fna,' $@
46+
47+
########################################################################
48+
49+
test-production-deployment:
50+
-python3 -m venv ${TMP_VENV} && \
51+
source ${TMP_VENV}/bin/activate && \
52+
pip install ${MODULE}==${VERSION} && \
53+
elastic-blast.py --version

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# ElasticBLAST
1+
ElasticBLAST
2+
============
23

34
ElasticBLAST is a cloud-based tool to perform your BLAST searches faster and make you more effective.
45

@@ -23,20 +24,24 @@ ElasticBLAST. Owing to resource constraints,
2324
they cannot absolutely commit to act on all issue reports, except critical
2425
security vulnerabilities.
2526

26-
## End-user documentation
27+
End-user documentation
28+
----------------------
2729

2830
Please visit https://blast.ncbi.nlm.nih.gov/doc/elastic-blast/
2931

30-
## How to get ElasticBLAST
32+
How to get ElasticBLAST
33+
-----------------------
3134

3235
Please see instructions here:
3336
https://blast.ncbi.nlm.nih.gov/doc/elastic-blast/quickstart-aws.html#get-elasticblast
3437

35-
## How to build ElasticBLAST
38+
How to build ElasticBLAST
39+
-------------------------
3640

37-
`make elastic-blast`
41+
make elastic-blast
3842

39-
### Requirements for building ElasticBLAST
43+
Requirements for building ElasticBLAST
44+
--------------------------------------
4045

4146
In addition to the requirements listed in the page below, [AWS Command Line Interface](https://aws.amazon.com/cli/) is required.
4247

0 commit comments

Comments
 (0)