summaryrefslogtreecommitdiff
path: root/biology/kallisto/files/kallisto-test
blob: f0b76952248ee3f4499ae4794a45f35321e9c4a9 (plain)
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
41
42
43
44
45
#!/bin/sh

##########################################################################
#   Script description:
#       Run standard kallisto test data
#       
#   History:
#   Date        Name        Modification
#   2016-03-21  J Bacon     Begin
##########################################################################

usage()
{
    printf "Usage: $0 test-directory\n"
    exit 1
}


##########################################################################
#   Main
##########################################################################

if [ $# != 1 ]; then
    usage
fi

dir="$1"
if [ -e "$dir" ]; then
    printf "$dir already exists.  Remove it first or choose a different name.\n"
    exit 1
fi

cp -iR /usr/local/share/kallisto/test/ "$dir"
cd "$dir"
kallisto index -i transcripts.idx transcripts.fasta.gz
kallisto quant -i transcripts.idx -o output -b 100 reads_1.fastq.gz reads_2.fastq.gz
ls -l output
more output/abundance.tsv

cat << EOM

See https://pachterlab.github.io/kallisto/starting.html for instructions
on interpreting the output above.

EOM