Skip to content

Draft annotation

Draft annotation #231

# This is a workflow to run the cell-type-wilms-tumor-06 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
#
# At initialization, only the manual trigger is active
name: Run cell-type-wilms-tumor-06 analysis module
env:
MODULE_PATH: analyses/cell-type-wilms-tumor-06
AWS_DEFAULT_REGION: us-east-2
concurrency:
# only one run per branch at a time
group: "run_cell-type-wilms-tumor-06_${{ github.ref }}"
cancel-in-progress: true
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
paths:
- analyses/cell-type-wilms-tumor-06/**
- "!analyses/cell-type-wilms-tumor-06/Dockerfile"
- "!analyses/cell-type-wilms-tumor-06/.dockerignore"
- .github/workflows/run_cell-type-wilms-tumor-06.yml
jobs:
run-module:
if: github.repository_owner == 'AlexsLemonade'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.4.0
use-public-rspm: true
- name: Set up pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies
run: |
sudo apt-get install -y libcurl4-openssl-dev libhdf5-dev libglpk40 jags
- name: Set up renv
uses: r-lib/actions/setup-renv@v2
with:
working-directory: ${{ env.MODULE_PATH }}
# Update this step as needed to download the desired data
- name: Download test data
run: ./download-data.py --test-data --format SCE --projects SCPCP000006
- name: Run analysis module
run: Rscript 00_run_workflow.R --testing
working-directory: ${{ env.MODULE_PATH }}