Files
gh-brunoasm-my-claude-skill…/skills/phylo_from_buscos/templates/pbs/02_compleasm_parallel.job
2025-11-29 18:02:37 +08:00

25 lines
646 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
#PBS -N compleasm_parallel
#PBS -t 2-NUM_GENOMES # Start from genome 2 (first genome already processed)
#PBS -l nodes=1:ppn=THREADS_PER_JOB # e.g., 16 for 64-core system
#PBS -l mem=96gb # Adjust based on ppn × 6GB
#PBS -l walltime=48:00:00
cd $PBS_O_WORKDIR
source ~/.bashrc
conda activate phylo
mkdir -p 01_busco_results
# Get genome for this array task
genome=$(sed -n "${PBS_ARRAYID}p" genome_list.txt)
genome_name=$(basename ${genome} .fasta)
echo "Processing ${genome_name} with $PBS_NUM_PPN threads..."
compleasm run \
-a ${genome} \
-o 01_busco_results/${genome_name}_compleasm \
-l LINEAGE \
-t $PBS_NUM_PPN