locigenesis/generation.sh

20 lines
373 B
Bash
Raw Normal View History

#!/bin/sh
usage() {
2021-02-28 02:23:58 +01:00
echo "usage: generation.sh <number of sequences> <sequencing runs>"
exit 1
}
2021-02-28 02:23:58 +01:00
if [ $# != 2 ]; then
usage
fi
sequences=$1
2021-02-28 02:23:58 +01:00
sequencing_runs=$2
data_directory="data/"
2021-02-28 02:23:58 +01:00
file="sequence.fastq"
prefix="curesim_"
2021-02-28 02:23:58 +01:00
Rscript src/repertoire.r "$sequences" "$sequencing_runs"
java -jar tools/CuReSim.jar -f "$data_directory$file" -o "$data_directory$prefix$file"