-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest-shell.sh
executable file
·41 lines (32 loc) · 1.06 KB
/
test-shell.sh
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
37
38
39
40
#!/bin/bash
# Test of PseudogeneSearcher.
set -e
echo "Requirements: java, maven, samtools, wget, gunzip"
echo "Compile"
mvn clean compile package assembly:single
echo "Create test dir"
mkdir -p test && cd test
echo "Download and index the reference sequence"
if [ ! -f hg38.fa ]; then
wget http://hgdownload.cse.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz && \
gunzip hg38.fa.gz;
fi
if [ ! -f hg38.fa.fai ]; then
samtools faidx hg38.fa
fi
# Download the data
wget -nc https://zgm.wum.edu.pl/share/ifae7aeZ/chr13.bam && \
wget -nc https://zgm.wum.edu.pl/share/ifae7aeZ/chr13.bam.bai
# Run
java -jar ../target/PseudogeneSearcher-0.0.1-SNAPSHOT-jar-with-dependencies.jar \
--reference hg38.fa \
--bam chr13.bam \
--only-soft-clipped \
--threads 12 \
--output output.log \
--output-json output.json \
--output-vcf output.vcf \
--standard-genome hg38
# Check the positive result
cat output.vcf | grep PASS | grep SKA3 && echo "[ OK ] SKA3 pseudogene found"
cat output.vcf | grep PASS | grep SKA3 || echo "[FAIL] SKA3 pseudogene NOT found"