Skip to content

Commit

Permalink
feat: added blast (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaktensTid authored Nov 23, 2024
1 parent d0a7587 commit d9335d5
Show file tree
Hide file tree
Showing 33 changed files with 1,346 additions and 7 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/blast-query-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: blast-query-master
run-name: blast-query-master

# Build and push nolabs image using GitHub Cache API
# Only if relevant files were changed

on: workflow_dispatch

jobs:
build:
permissions:
contents: read
packages: write

uses: ./.github/workflows/build-docker.yaml
with:
microservice_name: "blast-query"

push:
if: github.repository == 'BasedLabs/NoLabs'
needs: build

permissions:
contents: read
packages: write

uses: ./.github/workflows/push-docker.yaml
with:
microservice_name: "blast-query"
22 changes: 22 additions & 0 deletions .github/workflows/blast-query-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: blast-query-pr
run-name: blast-query-pr

# Build and push nolabs image using GitHub Cache API
# Only if relevant files were changed

on:
pull_request:
branches:
- master
paths:
- 'microservices/blast_query/**'

jobs:
build:
permissions:
contents: read
packages: write

uses: ./.github/workflows/build-docker.yaml
with:
microservice_name: "blast-query"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ flower:
install-openapi-generator:
npm install -g openapi-typescript-codegen
generate-client:
@openapi --input 'http://127.0.0.1:8000/openapi.json' --output frontend/src/api/client --client axios
@openapi --input 'http://127.0.0.1:8000/openapi.json' --output frontend/src/refinedApi/client --client axios
install-mock-server:
npm install -g @stoplight/prism-cli
start-mock-server:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ $ docker compose up biobuddy nolabs-frontend nolabs-worker nolabs-api mongo redi

Nolabs is running on GPT4 for the best performance. You can adjust the model you use in `microservices/biobuddy/biobuddy/services.py`

### 6) Blast (using [this api](https://blast.ncbi.nlm.nih.gov/Blast.cgi))

```shell
docker compose up blast-query
```

## Requirements ##

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ services:
env_file:
- microservices/esmfold_light/service/.env

blast-query:
image: 'ghcr.io/basedlabs/blast-query:1.0.0'
network_mode: host
command: python worker.py
build:
context: microservices/blast_query
dockerfile: build/Dockerfile
env_file:
- microservices/blast_query/service/.env

rfdiffusion:
image: 'ghcr.io/basedlabs/rfdiffusion:2.0.0'
network_mode: host
Expand Down
Loading

0 comments on commit d9335d5

Please sign in to comment.