File size: 918 Bytes
432d7ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#SBATCH -G 1
#SBATCH -J sample_esm

source /home/si264/anaconda3/etc/profile.d/conda.sh
conda activate proera

export CUDA_VISIBLE_DEVICES=7

# Define the directory containing subdirectories
target="ParD3"  # Replace with your actual target string if needed
BASE_DIR="/home/scratch/group_scratch/era/directed_evolution/040325ReplicateAlignmentRuns/$target/lightning_logs"

# Get a sorted list of subdirectories
subdirs=($(ls -d "$BASE_DIR"/*/ | sort))

replicates=(0 3 8)

# Run the script 10 times
for i in {0..9}; do
    # Extract the version number (subdirectory name)
    version_number=$(basename "${subdirs[$i]}")

    replicate="${replicates[$i]}"

    # Run the Python script with the specified arguments
    python sample_esm.py \
        --target $target \
        --num_samples 96 \
        --alignment_round 3 \
        --version_number "$version_number" \
        --replicate "$replicate"
done