2021-02-26 02:59:22 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
usage() {
|
2021-04-21 20:09:02 +02:00
|
|
|
echo "usage: generation.sh <number of sequences> <number_of_reads>"
|
2021-02-26 02:59:22 +01:00
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2021-02-28 02:23:58 +01:00
|
|
|
if [ $# != 2 ]; then
|
2021-02-26 02:59:22 +01:00
|
|
|
usage
|
|
|
|
fi
|
|
|
|
|
|
|
|
sequences=$1
|
2021-04-21 20:09:02 +02:00
|
|
|
number_of_reads=$2
|
2021-02-26 02:59:22 +01:00
|
|
|
data_directory="data/"
|
2021-03-10 12:33:25 +01:00
|
|
|
fastq=".fastq"
|
|
|
|
filename="sequence"
|
2021-02-26 02:59:22 +01:00
|
|
|
prefix="curesim_"
|
|
|
|
|
2021-04-22 13:36:43 +02:00
|
|
|
Rscript src/repertoire.r "$sequences" "$number_of_reads" &&
|
|
|
|
java -jar tools/CuReSim.jar -f "$data_directory$filename$fastq" -o "$data_directory$prefix$filename$fastq"
|
2021-03-11 21:28:58 +01:00
|
|
|
rm "$data_directory/log.txt"
|