Barcode Mouse 10x concatenated reads #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Barcode Mouse 10x concatenated reads | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '15 3 * * 2' | |
| env: | |
| LAUNCHER: ${{github.workspace}}/isoquant_tests/github/run_barcode_test.py | |
| CFG_DIR: /abga/work/andreyp/ci_isoquant/data/barcodes | |
| BIN_PATH: /abga/work/andreyp/ci_isoquant/bin/ | |
| OUTPUT_BASE: /abga/work/andreyp/ci_isoquant/output/${{github.ref_name}}/barcodes/ | |
| concurrency: | |
| group: ${{github.workflow}} | |
| cancel-in-progress: false | |
| jobs: | |
| check-changes: | |
| runs-on: | |
| labels: [isoquant] | |
| name: 'Check for recent changes' | |
| outputs: | |
| has_changes: ${{steps.check.outputs.has_changes}} | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: 'Check for commits in last 7 days' | |
| id: check | |
| run: | | |
| # Always run on manual trigger | |
| if [ "${{github.event_name}}" = "workflow_dispatch" ]; then | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| exit 0 | |
| fi | |
| # Check for commits in last 7 days | |
| COMMITS=$(git log --oneline --since="7 days ago" | wc -l) | |
| if [ "$COMMITS" -gt 0 ]; then | |
| echo "Found $COMMITS commits in last 7 days" | |
| echo "has_changes=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "No commits in last 7 days, skipping" | |
| echo "has_changes=false" >> $GITHUB_OUTPUT | |
| fi | |
| launch-runner: | |
| needs: check-changes | |
| if: needs.check-changes.outputs.has_changes == 'true' | |
| runs-on: | |
| labels: [isoquant] | |
| name: 'Running barcode detection QC for 10x concatenated reads' | |
| steps: | |
| - name: 'Cleanup' | |
| run: > | |
| set -e && | |
| shopt -s dotglob && | |
| rm -rf * | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: 'Mouse 10x concatenated reads (3M whitelist)' | |
| if: always() | |
| shell: bash | |
| env: | |
| STEP_NAME: Mouse.10x_concat.3M.800K | |
| run: | | |
| export PATH=$PATH:${{env.BIN_PATH}} | |
| python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.yaml -o ${{env.OUTPUT_BASE}} | |
| - name: 'Mouse 10x concatenated reads (realistic 9K whitelist)' | |
| if: always() | |
| shell: bash | |
| env: | |
| STEP_NAME: Mouse.10x_concat.realistic.800K | |
| run: | | |
| export PATH=$PATH:${{env.BIN_PATH}} | |
| python3 ${{env.LAUNCHER}} ${{env.CFG_DIR}}/${{env.STEP_NAME}}.yaml -o ${{env.OUTPUT_BASE}} |