0
|
1 #!/bin/bash
|
|
2
|
|
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
4 test_data="$DIR/test_data"
|
|
5 classification_tbl='!!!! set up the path !!!!!'
|
|
6 pdb='!!! set up the path'
|
|
7
|
|
8 ######## Protein Domais Finder
|
|
9 ## single_seq, for/rev strand of mapping
|
|
10 $DIR/protein_domains_pd.py -q $test_data/GEPY_test_long_1 -pdb $pdb -cs $classification_tbl -dir $PWD/tmp/single_fasta/
|
|
11 ## multifasta
|
|
12 $DIR/protein_domains_pd.py -q $test_data/vyber-Ty1_01.fasta -pdb $pdb -cs $classification_tbl -dir $PWD/tmp/multifasta/
|
|
13 ## multifasta_win
|
|
14 $DIR/protein_domains_pd.py -q $test_data/vyber-Ty1_01.fasta -pdb $pdb -cs $classification_tbl -wd 3100 -od 1500 -dir $PWD/tmp/multifasta_win
|
|
15
|
|
16 ## testing if outputs are the same in case of using sliding window and not
|
|
17 if [[ $(diff $PWD/tmp/multifasta/output_domains.gff $PWD/tmp/multifasta_win/output_domains.gff) -eq 0 ]];then
|
|
18 echo "Testing output of sliding window comparing to no window accomplished sucessfuly"
|
|
19 else
|
|
20 echo "WARNING! There is difference between outputs of sliding window and no window used"
|
|
21 fi
|
|
22 ######## Protein Domains Filter
|
|
23 ## default params
|
|
24 $DIR/domains_filtering.py -dom_gff $PWD/tmp/single_fasta/output_domains.gff
|
|
25 if [[ -e $PWD/tmp/single_fasta/domains_filtered.gff ]] && [[ -e $PWD/tmp/single_fasta/dom_prot_seq.txt ]] ; then
|
|
26 echo -e "Filtered file and protein seqs file for default parameters exists"
|
|
27 else
|
|
28 echo -e "Filtered outputs for default parameters are missing"
|
|
29 fi
|
|
30 if [[ $(cat $PWD/tmp/single_fasta/domains_filtered.gff | wc -l) -gt 1 ]];then
|
|
31 echo "File was correctly filtered using default parameters"
|
|
32 fi
|
|
33 ## Ty1-RT filtering
|
|
34 $DIR/domains_filtering.py -dom_gff $PWD/tmp/multifasta/output_domains.gff -sd Ty1-RT
|
|
35 if [[ -e $PWD/tmp/multifasta/domains_filtered.gff ]] && [[ -e $PWD/tmp/multifasta/dom_prot_seq.txt ]]; then
|
|
36 echo -e "Filtered file and protein seqs file of Ty1-RT domains exist"
|
|
37 else
|
|
38 echo -e "Filtered outputs of Ty1-RT domains are missing"
|
|
39 fi
|
|
40 if [[ $(cat $PWD/tmp/multifasta/domains_filtered.gff | wc -l) -gt 1 ]];then
|
|
41 echo "File was correctly filtered for Ty1-RT domains"
|
|
42 fi
|