-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path_submit_split.sh
More file actions
executable file
·37 lines (30 loc) · 956 Bytes
/
_submit_split.sh
File metadata and controls
executable file
·37 lines (30 loc) · 956 Bytes
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
34
35
36
#!/usr/bin/env bash
echo "Usage: ./_submit_split.sh <input.fofn>"
echo "Split the input.fofn for every 300 million lines"
echo -e "\t<input.fofn>: list of fastq(.gz) files"
if [ -z $1 ]; then
echo "No input.fofn provided. Exit."
exit -1
fi
LEN=`wc -l $1 | awk '{print $1}'`
cpus=6
mem=4g
name=split
script=$MERQURY/build/split.sh
#script=$MERQURY/build/split_hifi.sh
#script=$MERQURY/build/split_ont.sh
#script=$MERQURY/build/split_ont_fa.sh
args=$1
partition=norm
walltime=1-0
path=`pwd`
extra="--array=1-$LEN"
mkdir -p logs
if [ -z $extra ]; then
log=logs/$name.%A.log
else
log=logs/$name.%A_%a.log
fi
echo "\
sbatch -J $name --mem=$mem --partition=$partition --gres=lscratch:500 --cpus-per-task=$cpus -D $path $extra --time=$walltime --error=$log --output=$log $script $args"
sbatch -J $name --mem=$mem --partition=$partition --gres=lscratch:500 --cpus-per-task=$cpus -D $path $extra --time=$walltime --error=$log --output=$log $script $args