Mercurial > repos > ucsb-phylogenetics > osiris_phylogenetics
comparison orthologs/ucsb_hamster/ucsb_hamster.sh @ 0:5b9a38ec4a39 draft default tip
First commit of old repositories
author | osiris_phylogenetics <ucsb_phylogenetics@lifesci.ucsb.edu> |
---|---|
date | Tue, 11 Mar 2014 12:19:13 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:5b9a38ec4a39 |
---|---|
1 #!/bin/sh | |
2 | |
3 ############################################# | |
4 # UCSB HAMSTER # | |
5 # # | |
6 # Executes Hamster with given XML parameter # | |
7 ############################################# | |
8 | |
9 #the name of the script is here | |
10 #script="/home/osiris/galaxy-dist/tools/osiris/orthologs/ucsb_hamster/hamstrsearch_local-hmmer3.pl" | |
11 script="hamstrsearch_local-hmmer3.pl" | |
12 | |
13 | |
14 | |
15 #Variables input from xml | |
16 # 1 - Sequence input file | |
17 # 2 - Proteins Results Output file | |
18 # 3 - cds Results Output file | |
19 # 4 - Screen Log | |
20 # 5 - Species Name | |
21 # 6 - Whether to use -est flag (if D) or not (if P) | |
22 # 7 - Core ortholog name | |
23 # 8 - Base path for local core orthologs | |
24 # 9 - Base path for local reference blast database | |
25 #10 - Reference genome | |
26 | |
27 input=$1 | |
28 proteins=$2 | |
29 cdsfile=$3 | |
30 screenlog=$4 | |
31 species=$5 | |
32 datatype=$6 | |
33 core=$7 | |
34 corepath=$8 | |
35 blastpath=$9 | |
36 genome=${10} | |
37 | |
38 echo "ucsb_hamster.sh script parameters" >> $screenlog | |
39 echo "Core ortholog name is $core " >> $screenlog | |
40 echo "Reference genome name is $genome " >> $screenlog | |
41 echo "Species name is $species " >> $screenlog | |
42 echo "Datatype $datatype " >> $screenlog | |
43 | |
44 #set flag based on input | |
45 if [ $datatype = "P" ]; | |
46 then | |
47 estflag="-protein" | |
48 else | |
49 estflag="-est" | |
50 fi | |
51 | |
52 # First copy hmm's to working directory | |
53 # Currently copies from Data directory | |
54 mkdir $core | |
55 mkdir $core/hmm_dir | |
56 cp -r $corepath/* ./$core/ | |
57 echo "cp $corepath/hmm_dir/* ./$core/hmm_dir/" >> $screenlog | |
58 cp -r $corepath/hmm_dir/* ./$core/hmm_dir/ | |
59 | |
60 # Currently copies from data directory | |
61 mkdir $genome | |
62 cp $blastpath/* ./$genome/ | |
63 | |
64 # Now call the actual Hamster Script | |
65 #$script -sequence_file=$input $estflag -taxon=$species -hmmset=$core -refspec=$genome -galaxyout=$proteins -2galaxyout=$cdsfile >> $screenlog 2>log.txt | |
66 $script -sequence_file=$input $estflag -taxon=$species -hmmset=$core -refspec=$genome -galaxyout=$proteins -2galaxyout=$cdsfile >> $screenlog | |
67 |