Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/etowahadams/autogosling-aws-lambda
https://github.com/etowahadams/autogosling-aws-lambda
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/etowahadams/autogosling-aws-lambda
- Owner: etowahadams
- Created: 2024-02-21T18:05:19.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T21:16:45.000Z (10 months ago)
- Last Synced: 2024-10-18T17:27:16.059Z (3 months ago)
- Language: Python
- Size: 477 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoGosling in AWS Lambda
This is an AWS Lambda function which takes an image of a genomics visualization and returns a [Gosling specification](http://gosling-lang.org/docs/reference)
which approximates the input visualization. Most of the code was copied and adapted from [AutoGosling](https://github.com/autogosling/autogosling-tool).`app.py` is the entry point for the lambda function.
## Local development
### Setup
Tested using Python 3.9.
```bash
git clone https://github.com/etowahadams/autogosling-aws-lambda.git
cd autogosling-aws-lambda
## Create a virtual environment
python -m venv env
source env/bin/activate
pip install -r requirements.txt
## Download the ONNX model
wget -O best.onnx https://drive.google.com/file/d/1x_e4V9LDgjsZhMWCnONbiQXK4Zfw6t27/view?usp=share_link
```
### Test usage
This will return the predicted Gosling specification
```bash
python3 main.py glyph.png
```