Skip to content

Add workflow for evaluating clustering to Ewing's module #104

Add workflow for evaluating clustering to Ewing's module

Add workflow for evaluating clustering to Ewing's module #104

# This is a workflow to run the cell-type-ewings module
# Analysis modules are run based on three triggers:
# - Manual trigger
# - On pull requests where code in the module has changed
# - As a reusable workflow called from a separate workflow which periodically runs all modules
name: Run cell-type-ewings analysis module
env:
MODULE_PATH: analyses/cell-type-ewings
AWS_DEFAULT_REGION: us-east-1
concurrency:
# only one run per branch at a time
group: "run_cell-type-ewings_${{ github.ref }}"
cancel-in-progress: true
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
paths:
- analyses/cell-type-ewings/**
- "!analyses/cell-type-ewings/Dockerfile"
- "!analyses/cell-type-ewings/.dockerignore"
- .github/workflows/run_cell-type-ewings.yml
jobs:
run-module:
if: github.repository_owner == 'AlexsLemonade'
runs-on: ubuntu-latest
container: public.ecr.aws/openscpca/cell-type-ewings:latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download test data
run: |
conda activate openscpca-cell-type-ewings
./download-data.py --test-data --format "sce,anndata" --project SCPCP000015
- name: Run analysis
run: |
conda activate openscpca-cell-type-ewings
cd $MODULE_PATH
bash cnv-annotation.sh
bash aucell-singler-annotation.sh
bash evaluate-clusters.sh