|
4 | 4 | workflow_dispatch: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - dummy: |
8 | | - name: dummy |
9 | | - runs-on: echo |
10 | | - |
| 7 | + |
| 8 | + ######################################################################################## |
| 9 | + checkout: |
| 10 | + name: Checkout |
| 11 | + runs-on: [self-hosted, vclust, x64_linux, large] |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: clean |
| 15 | + run: rm -rf ${{ github.workspace }}/* |
| 16 | + - uses: actions/checkout@v4 |
| 17 | + with: |
| 18 | + submodules: recursive |
| 19 | + - name: Get tags |
| 20 | + run: | |
| 21 | + cd ./3rd_party/clusty/libs/igraph |
| 22 | + git fetch --prune --unshallow |
| 23 | + echo exit code $? |
| 24 | + git tag --list |
| 25 | + continue-on-error: true |
| 26 | + |
| 27 | + ######################################################################################## |
| 28 | + download-release: |
| 29 | + name: Download release |
| 30 | + needs: checkout |
| 31 | + strategy: |
| 32 | + matrix: |
| 33 | + compiler: [14] |
| 34 | + runs-on: [self-hosted, vclust, x64_linux, large] |
| 35 | + |
| 36 | + steps: |
| 37 | +# - name: clean |
| 38 | +# run: rm -rf ${{ github.workspace }}/* |
| 39 | +# - uses: robinraju/[email protected] |
| 40 | +# with: |
| 41 | +# latest: true |
| 42 | +# tarBall: true |
| 43 | +# extract: true |
| 44 | +# token: ${{ secrets.MY_TOKEN }} |
| 45 | +# - name: download |
| 46 | +# run: ./.github/workflows/github-release-downloader.sh refresh-bio vclust-dev "x64_linux.tar.gz" |
| 47 | + - name: make |
| 48 | + run: gmake -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} PLATFORM=avx2 LEIDEN=true STATIC_LINK=true |
| 49 | + - name: print info |
| 50 | + run: python3 vclust.py info |
| 51 | + |
| 52 | + ######################################################################################## |
| 53 | + ani: |
| 54 | + name: ANI calculation |
| 55 | + needs: download-release |
| 56 | + strategy: |
| 57 | + fail-fast: false |
| 58 | + matrix: |
| 59 | + dataset: [ICTV, IMGVR] |
| 60 | + include: |
| 61 | + - dataset: ICTV |
| 62 | + variant_name: full |
| 63 | + prefilter_args: '-k 25 --min-ident 0.7 --min-kmers 20' |
| 64 | + align_args: '--out-tani 0.70' |
| 65 | + - dataset: IMGVR_HQ |
| 66 | + variant_name: full |
| 67 | + prefilter_args: '-k 25 --min-ident 0.95 --min-kmers 20 --batch-size 1000000' |
| 68 | + align_args: '--out-ani 0.95 --out-qcov 0.85' |
| 69 | + - dataset: IMGVR |
| 70 | + variant_name: fraction_02 |
| 71 | + prefilter_args: '-k 25 --min-ident 0.95 --min-kmers 4 --kmers-fraction 0.2 --batch-size 2000000' |
| 72 | + align_args: '--out-ani 0.95 --out-qcov 0.85' |
| 73 | + env: |
| 74 | + INPUT_DIR: ../../../../vclust/input |
| 75 | + TEMP_DIR: ../../../../vclust/temp |
| 76 | + |
| 77 | + runs-on: [self-hosted, vclust, x64_linux, large] |
| 78 | + |
| 79 | + steps: |
| 80 | + - name: prefilter |
| 81 | + run: /usr/bin/time -v ./vclust.py prefilter -t 32 -i ${INPUT_DIR}/${{ matrix.dataset }}.fna.gz -o ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.filter ${{ matrix.prefilter_args }} |
| 82 | + - name: prefilter md5 |
| 83 | + run: md5sum ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.filter |
| 84 | + - name: align |
| 85 | + run: /usr/bin/time -v ./vclust.py align -t 32 -i ${INPUT_DIR}/${{ matrix.dataset }}.fna.gz -o ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.ani.tsv --filter ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.filter ${{ matrix.align_args }} |
| 86 | + - name: align md5 |
| 87 | + run: md5sum ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.ani.tsv ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.ani.ids.tsv |
| 88 | + |
| 89 | + ######################################################################################## |
| 90 | + clustering: |
| 91 | + name: clustering |
| 92 | + needs: ani |
| 93 | + strategy: |
| 94 | + fail-fast: false |
| 95 | + matrix: |
| 96 | + dataset: [ICTV, IMGVR, IMGVR_HQ] |
| 97 | + algo_name: [single, complete, set-cover, uclust, cd-hit, leiden_07, leiden_10] |
| 98 | + include: |
| 99 | + - {dataset: ICTV, variant_name: full, args: '--metric tani --tani 0.95'} |
| 100 | + - {dataset: IMGVR, variant_name: fraction_02, args: '--metric ani --ani 0.95 --qcov 0.85'} |
| 101 | + - {dataset: IMGVR_HQ, variant_name: full, args: '--metric ani --ani 0.95 --qcov 0.85'} |
| 102 | + - {algo_name: single, algo_cmd: single} |
| 103 | + - {algo_name: complete, algo_cmd: complete} |
| 104 | + - {algo_name: set-cover, algo_cmd: set-cover} |
| 105 | + - {algo_name: uclust, algo_cmd: uclust} |
| 106 | + - {algo_name: cd-hit, algo_cmd: cd-hit} |
| 107 | + - {algo_name: leiden_07, algo_cmd: 'leiden --leiden-resolution 0.7'} |
| 108 | + - {algo_name: leiden_10, algo_cmd: 'leiden --leiden-resolution 1.0'} |
| 109 | + |
| 110 | + env: |
| 111 | + INPUT_DIR: ../../../../vclust/input |
| 112 | + TEMP_DIR: ../../../../vclust/temp |
| 113 | + |
| 114 | + runs-on: [self-hosted, vclust, x64_linux, large] |
| 115 | + |
| 116 | + steps: |
| 117 | + - name: cluster |
| 118 | + run: /usr/bin/time -v ./vclust.py cluster -i ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.ani.tsv --ids ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.ani.ids.tsv -o ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.${{ matrix.algo_name }}.clusty --algorithm ${{ matrix.algo_cmd }} ${{ matrix.args }} |
| 119 | + - name: md5 |
| 120 | + run: md5sum ${TEMP_DIR}/${{ matrix.dataset }}.${{ matrix.variant_name }}.${{ matrix.algo_name }}.clusty |
| 121 | + |
0 commit comments