Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.2 #40

Merged
merged 46 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
406d1a7
:art: Add home tab with template cards for autometa results
evanroyrees Dec 19, 2021
5e05bf9
:art: Add celery task for marker gene annotation
evanroyrees Dec 19, 2021
49ff515
:art: Add home tab template with example cards...
evanroyrees Dec 20, 2021
ffcfc48
Merge branch 'develop' into home-tab
evanroyrees Dec 20, 2021
2e3f695
Merge branch 'main' into home-tab
evanroyrees Dec 20, 2021
8e0b80c
Merge branch 'main' into celery
evanroyrees Dec 20, 2021
933ceeb
Merge branch 'main' of https://github.com/WiscEvan/Automappa into celery
evanroyrees Apr 5, 2022
c096c3e
:art::whale::green_heart: Add celery related files, commands, scripts…
evanroyrees Apr 6, 2022
2bc5c29
merge develop into home-tab
evanroyrees Apr 6, 2022
a02c212
:fire::art: Remove unused imports in home.py
evanroyrees Apr 6, 2022
ed8c0d1
:art::memo::white_check_mark::green_heart::arrow_up: Add geom_median …
evanroyrees Apr 12, 2022
f79dee0
Merge branch 'celery' of https://github.com/WiscEvan/Automappa into h…
evanroyrees Apr 12, 2022
399c2f0
:art: WIP addition of home tab, celery task-queue and services (redis…
evanroyrees Apr 12, 2022
1df246b
:art::bug: WIP beginning of using postgres db
evanroyrees Apr 14, 2022
8a54e12
Refactor callback to viz DataTable and store samples-store State
evanroyrees Apr 18, 2022
7b5f2d3
:memo: Add resource to README in utils for working with postgresql se…
evanroyrees Apr 18, 2022
991a45f
:art::whale::fire: Changes for setup in docker-compose... (WIP)
evanroyrees Apr 20, 2022
3013b62
:art: WIP postgresql and automappa-web now functional with doker-compose
evanroyrees Apr 21, 2022
ea83e85
:art: WIP now fetching all fileuploads and creating files datatable u…
evanroyrees Apr 22, 2022
d0f943f
:art::whale: Change docker compose s.t. live-reloading works again
evanroyrees Apr 22, 2022
cd6d4f8
:fire::whale::art::sunflower::elephant: Add docker-services, rm envir…
evanroyrees Apr 22, 2022
6e92c24
Add dbc.Select to home for choosing metagenome annotations (WIP)
evanroyrees Apr 22, 2022
c6fd9da
:art: WIP refinement page reading user uploaded/selected data
evanroyrees Apr 22, 2022
dc5665d
:art: Move port and host argparse args to .env
evanroyrees Apr 22, 2022
e54108c
:memo: Update TODO list
evanroyrees Apr 22, 2022
d35a6cc
:whale::tv: provisioned Grafana within docker-compose.
evanroyrees Apr 23, 2022
ec9989b
:art::bug: Connect mag_summary.layout callbacks to postgres db
evanroyrees Apr 25, 2022
bbc93e9
:art: Beginning of celery task-queue implementation
evanroyrees Apr 25, 2022
9917443
:green_heart::bug: Move plotly channel below bioconda and conda-forge
evanroyrees Apr 26, 2022
731ffc1
:art: WIP Working task-queue with scatterplot-2d views including embe…
evanroyrees May 5, 2022
977dbbf
:art: Apply black formatting
evanroyrees May 5, 2022
4810ba2
:art::see_no_evil: WIP for fetching/visualizing data using services
evanroyrees May 16, 2022
ef3f205
:green_heart: Add test SampleTables model instance
evanroyrees May 18, 2022
2a83bfa
:art::bulb: Add items to IDEAs
evanroyrees May 20, 2022
90494cd
:whale::green_heart::bug: pin scipy to 1.8
evanroyrees Aug 2, 2022
90b2990
:art::whale::racehorse: Add dash-extensions
evanroyrees Aug 2, 2022
df22b6e
Update .env
evanroyrees Aug 3, 2022
ebaccf4
Update README.md
evanroyrees Aug 3, 2022
c245bc2
Merge pull request #35 from WiscEvan/home-tab
evanroyrees Aug 3, 2022
be091f9
:memo: Add documentation for using test data
evanroyrees Aug 3, 2022
31ab494
resolve README merge conflicts
evanroyrees Aug 3, 2022
27fea70
:memo::fire: Update README, remove autometa-lite mention
evanroyrees Aug 3, 2022
bc82dd4
:memo::fire: Remove automappa-lite details
evanroyrees Aug 3, 2022
763ec7c
Refactor with fixes, features and improved directory structure (#39)
evanroyrees Jul 21, 2023
1509298
:memo: Update docs for release 2.2
evanroyrees Jul 26, 2023
eafc892
Merge branch 'main' into develop
evanroyrees Jul 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
data
test
Automappa.egg-info
build
dist
.vscode
.pytest_cache
31 changes: 31 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Required for docker-compose.yml
SERVER_ROOT_UPLOAD_FOLDER="/usr/src/app/uploads"
SERVER_HOST="0.0.0.0"
SERVER_PORT=8050
# By default remove debugging tools --> For development switch this to `True`
SERVER_DEBUG=False
POSTGRES_USER="admin"
POSTGRES_PASSWORD="mypass"
POSTGRES_DB="automappa"
POSTGRES_URL="postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
POSTGRES_POOL_SIZE=1
POSTGRES_POOL_PRE_PING=False
RABBITMQ_DEFAULT_USER="user"
RABBITMQ_DEFAULT_PASS="pass"
RABBITMQ_URL="amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672/"
REDIS_BACKEND_HOST='redis'
REDIS_BACKEND_PORT='6379'
REDIS_BACKEND_DB='0'
REDIS_BACKEND_PASSWORD='RedisPassword'
CELERY_BACKEND_URL='redis://redis:6379/0'
CELERY_BROKER_URL="amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:5672//"
FLOWER_BROKER_API_URL="http://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq:15672/api"
# https://github.com/mher/flower/issues/1036

# Grafana configuration
# Allow anonymous authentication or not
GF_AUTH_DISABLE_LOGIN_FORM="false"
# Role of anonymous user
GF_AUTH_ANONYMOUS_ENABLED="false"
# Install plugins here our in your own config file
GF_AUTH_ANONYMOUS_ORG_ROLE="Admin"
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ app/__pycache__
.DS_Store
dist
build
Automappa.egg-info
Automappa.egg-info
.env
data
!automappa/data
db-data
file_system_backend
*.db
uploads
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
FROM condaforge/miniforge3:latest
FROM condaforge/mambaforge:latest

COPY environment.yml ./environment.yml
COPY environment.yml /tmp/environment.yml
RUN mamba env update -n base -f /tmp/environment.yml && \
mamba clean --all --force-pkgs-dirs --yes

RUN conda env update -n base -f=environment.yml \
&& conda clean --all --force-pkgs-dirs --yes
COPY . /usr/src/app
WORKDIR /usr/src/app

# Test command is functional
COPY . /Automappa/
WORKDIR /Automappa/
RUN python -m pip install . --ignore-installed --no-deps -vvv
RUN automappa -h

CMD [ "-h" ]
ENTRYPOINT [ "automappa" ]
# Create an unprivileged user for automappa celery worker
RUN adduser --disabled-password --gecos '' automappa
RUN mkdir -p /usr/src/app/uploads && \
chown -R automappa:automappa /usr/src/app

# CMD ["automappa", "-h"]
28 changes: 25 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,32 @@ endif
image: Dockerfile
docker build . -f $< -t evanrees/automappa:`git branch --show-current`

## Remove automappa-{web,flower,queue} docker images
rm-images: Dockerfile
docker rmi -f `docker images -q automappa-web`
docker rmi -f `docker images -q automappa-queue`
docker rmi -f `docker images -q automappa-flower`

## Install automappa entrypoint into current environment
install:
$(PYTHON_INTERPRETER) -m pip install . --ignore-installed --no-deps -vvv

## docker compose build from docker-compose.yml
build: docker-compose.yml
docker compose build

## alias for docker-compose up --always-recreate-deps --remove-orphans --force-recreate
up: docker-compose.yml
docker compose up --always-recreate-deps --remove-orphans --force-recreate

## alias for docker-compose down --remove-orphans
down: docker-compose.yml
docker compose down --remove-orphans

## alias for docker-compose down --remove-orphans --volumes
down-v: docker-compose.yml
docker compose down --remove-orphans -v

# Run Automappa on test data
# test: test_data
# $(PYTHON_INTERPRETER) index.py -i test/bins.tsv
Expand All @@ -64,13 +86,13 @@ test_environment: scripts/test_environment.py
$(PYTHON_INTERPRETER) $<

## Set up python interpreter environment
create_environment: requirements.txt
create_environment: environment.yml
ifeq (True,$(HAS_CONDA))
@echo ">>> Detected conda, creating conda environment."
ifeq (3,$(findstring 3,$(PYTHON_INTERPRETER)))
conda create -c conda-forge --name $(PROJECT_NAME) python=3.7 --file=$<
mamba env create --name $(PROJECT_NAME) --file=$<
else
conda create -c conda-forge --name $(PROJECT_NAME) python=3.7 --file=$<
mamba env create --name $(PROJECT_NAME) --file=$<
endif
@echo ">>> New conda env created. Activate with:\nsource activate $(PROJECT_NAME)"
else
Expand Down
Loading
Loading