Skip to content

Commit 2f83aa8

Browse files
committed
Miscellaneous improvements
1 parent 0f21aa6 commit 2f83aa8

76 files changed

Lines changed: 6187 additions & 1310 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: astral-sh/setup-uv@v7
1717
with:
1818
enable-cache: true
19-
version: "0.7.12"
19+
version: "0.10.6"
2020
- name: Install Pandoc
2121
run: sudo apt-get install pandoc
2222
- name: Install model

.github/workflows/docs_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: astral-sh/setup-uv@v7
2525
with:
2626
enable-cache: true
27-
version: "0.7.12"
27+
version: "0.10.6"
2828
- name: Install Pandoc
2929
run: sudo apt-get install pandoc
3030
- name: Install model

.github/workflows/pip_audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: astral-sh/setup-uv@v7
2525
with:
2626
enable-cache: true
27-
version: "0.7.12"
27+
version: "0.10.6"
2828

2929
- name: Audit dependencies and identify vulnerabilities
3030
run: |

.github/workflows/pr_tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: astral-sh/setup-uv@v7
3939
with:
4040
enable-cache: true
41-
version: "0.7.12"
41+
version: "0.10.6"
4242
- name: Install model
4343
run: USE_CYTHON=1 uv sync --frozen
4444
- name: Test ParCa reproducibility
@@ -82,7 +82,7 @@ jobs:
8282
uses: astral-sh/setup-uv@v7
8383
with:
8484
enable-cache: true
85-
version: "0.7.12"
85+
version: "0.10.6"
8686
- name: Install model
8787
run: USE_CYTHON=1 uv sync --frozen
8888
- name: Install nextflow edge
@@ -97,4 +97,14 @@ jobs:
9797
- name: Show stderr for failed Nextflow tasks
9898
if: ${{ failure() }}
9999
run: |
100-
nextflow log -q | tail -n 1 | awk '{print $1}' | xargs -I {} nextflow log {} -f name,stderr -F "status == 'FAILED'"
100+
RUN_ID=$(nextflow log -q | tail -n 1 | awk '{print $1}')
101+
echo "Checking run: $RUN_ID"
102+
nextflow log $RUN_ID -f name,workdir,status -F "status == 'FAILED'" | while IFS=$'\t' read -r name workdir status; do
103+
echo "===== Failed task: $name ====="
104+
if [ -f "$workdir/.command.err" ]; then
105+
cat "$workdir/.command.err"
106+
else
107+
echo "No .command.err file found"
108+
fi
109+
echo ""
110+
done

.github/workflows/pytest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: astral-sh/setup-uv@v7
2727
with:
2828
enable-cache: true
29-
version: "0.7.12"
29+
version: "0.10.6"
3030
- name: Install model
3131
run: USE_CYTHON=1 uv sync --frozen --extra dev
3232
- name: Cache ParCa simulation data
@@ -55,7 +55,7 @@ jobs:
5555
uses: astral-sh/setup-uv@v7
5656
with:
5757
enable-cache: true
58-
version: "0.7.12"
58+
version: "0.10.6"
5959
- name: Install model
6060
run: USE_CYTHON=1 uv sync --frozen --extra dev
6161
- name: Mypy
@@ -69,7 +69,7 @@ jobs:
6969
uses: astral-sh/setup-uv@v7
7070
with:
7171
enable-cache: true
72-
version: "0.7.12"
72+
version: "0.10.6"
7373
- name: Install model
7474
run: USE_CYTHON=1 uv sync --frozen --extra dev
7575
- name: Ruff

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ out/
1313
/out
1414
.idea/
1515
*.iml
16+
api_integration/
1617

1718
# User files #
1819
################
@@ -67,3 +68,5 @@ trace-*
6768
#################
6869
test_sherlock/
6970

71+
# SMS API #
72+
.hpc_env

.hpc_env_template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
SLURM_SUBMIT_HOST=
2+
SLURM_SUBMIT_USER=
3+
SLURM_SUBMIT_KEY_PATH=
4+
SLURM_PARTITION=
5+
SLURM_NODE_LIST=
6+
SLURM_LOG_BASE_PATH=
7+
SLURM_QOS=
8+
SLURM_BASE_PATH=
9+
10+
# Use single thread for BLAS for better performance and reproducibility
11+
OMP_NUM_THREADS=1
12+
OPENBLAS_NUM_THREADS=1
13+
VECLIB_MAXIMUM_THREADS=1

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.11.2
4+
rev: v0.15.4
55
hooks:
66
# Run the linter.
77
- id: ruff

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ model parameters (e.g. transcription probabilities). These parameters are used t
3131
> [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install). Refer to the following pages for non-local setups:
3232
> [Sherlock](https://covertlab.github.io/vEcoli/hpc.html#sherlock),
3333
> [other HPC cluster](https://covertlab.github.io/vEcoli/hpc.html#other-clusters),
34+
> [AWS](https://covertlab.github.io/vEcoli/aws.html),
3435
> [Google Cloud](https://covertlab.github.io/vEcoli/gcloud.html).
3536
3637
### Prerequisites

configs/default.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
"mar_regulon": false,
1818
"amp_lysis": false,
1919

20+
"SIM_CPUS": 1,
21+
"HYPERQUEUE": false,
22+
"HQ_CORES": 1,
23+
"SIM_MEM": 4,
24+
"SIM_TIME": 4,
25+
2026
"initial_state_file": "",
2127
"initial_state_overrides": [],
2228
"initial_state": {},
@@ -35,6 +41,8 @@
3541

3642
"parca_options": {
3743
"cpus": 1,
44+
"memory_gb": 8,
45+
"slurm_time_hrs": 1,
3846
"outdir": "out",
3947
"operons": true,
4048
"ribosome_fitting": true,
@@ -56,7 +64,9 @@
5664
},
5765

5866
"analysis_options": {
59-
"cpus": 1
67+
"cpus": 1,
68+
"memory_gb": 4,
69+
"slurm_time_hrs": 4
6070
},
6171

6272
"gcloud": null,

0 commit comments

Comments
 (0)