1 | #!/bin/sh |
---|
2 | |
---|
3 | cd `dirname $0` |
---|
4 | |
---|
5 | : ${HOSTTYPE:=`uname -m`} |
---|
6 | |
---|
7 | # link to HYPHY is arch-dependent |
---|
8 | case "$OSTYPE" in |
---|
9 | linux-gnu) |
---|
10 | kernel=`uname -r | cut -f1,2 -d.` |
---|
11 | HYPHY="/galaxy/software/linux$kernel-$HOSTTYPE/hyphy" |
---|
12 | ;; |
---|
13 | darwin*) |
---|
14 | this_minor=`uname -r | awk -F. '{print ($1-4)}'` |
---|
15 | machine=`machine` |
---|
16 | for minor in `jot - 3 $this_minor 1`; do |
---|
17 | HYPHY="/galaxy/software/macosx10.$minor-$machine/hyphy" |
---|
18 | [ -d "$HYPHY" ] && break |
---|
19 | done |
---|
20 | [ ! -d "$HYPHY" ] && unset HYPHY |
---|
21 | ;; |
---|
22 | solaris2.10) |
---|
23 | # For the psu-production builder which is Solaris, but jobs run on a |
---|
24 | # Linux cluster |
---|
25 | HYPHY="/galaxy/software/linux2.6-x86_64/hyphy" |
---|
26 | ;; |
---|
27 | esac |
---|
28 | |
---|
29 | LINKS=" |
---|
30 | /galaxy/data/location/add_scores.loc |
---|
31 | /galaxy/data/location/alignseq.loc |
---|
32 | /galaxy/data/annotation_profiler |
---|
33 | /galaxy/data/annotation_profiler/annotation_profiler.loc |
---|
34 | /galaxy/data/annotation_profiler/annotation_profiler_options.xml |
---|
35 | /galaxy/data/annotation_profiler/annotation_profiler_valid_builds.txt |
---|
36 | /galaxy/data/location/bfast_indexes.loc |
---|
37 | /galaxy/data/location/binned_scores.loc |
---|
38 | /galaxy/data/location/blastdb.loc |
---|
39 | /galaxy/data/location/bowtie_indices.loc |
---|
40 | /galaxy/data/location/bowtie_indices_color.loc |
---|
41 | /galaxy/data/location/bwa_index.loc |
---|
42 | /galaxy/data/location/codingSnps.loc |
---|
43 | /galaxy/data/location/encode_datasets.loc |
---|
44 | /galaxy/home/universe/encode_feature_partitions |
---|
45 | /galaxy/data/location/lastz_seqs.loc |
---|
46 | /galaxy/data/location/liftOver.loc |
---|
47 | /galaxy/data/location/maf_index.loc |
---|
48 | /galaxy/data/location/maf_pairwise.loc |
---|
49 | /galaxy/data/location/microbes/microbial_data.loc |
---|
50 | /galaxy/data/location/perm_base_index.loc |
---|
51 | /galaxy/data/location/perm_color_index.loc |
---|
52 | /galaxy/data/location/phastOdds.loc |
---|
53 | /galaxy/data/location/quality_scores.loc |
---|
54 | /galaxy/data/location/regions.loc |
---|
55 | /galaxy/data/location/sam_fa_indices.loc |
---|
56 | /galaxy/data/location/srma_index.loc |
---|
57 | /galaxy/data/taxonomy |
---|
58 | /galaxy/data/location/twobit.loc |
---|
59 | " |
---|
60 | |
---|
61 | SAMPLES=" |
---|
62 | datatypes_conf.xml.sample |
---|
63 | universe_wsgi.ini.sample |
---|
64 | tool_data_table_conf.xml.sample |
---|
65 | tool-data/shared/ucsc/builds.txt.sample |
---|
66 | " |
---|
67 | |
---|
68 | DIRS=" |
---|
69 | database |
---|
70 | database/files |
---|
71 | database/tmp |
---|
72 | database/compiled_templates |
---|
73 | database/job_working_directory |
---|
74 | database/import |
---|
75 | database/pbs |
---|
76 | " |
---|
77 | |
---|
78 | JARS="/galaxy/software/jars" |
---|
79 | |
---|
80 | for link in $LINKS; do |
---|
81 | echo "Linking $link" |
---|
82 | rm -f tool-data/`basename $link` |
---|
83 | ln -sf $link tool-data |
---|
84 | done |
---|
85 | |
---|
86 | if [ -d "$HYPHY" ]; then |
---|
87 | echo "Linking $HYPHY" |
---|
88 | rm -f tool-data/HYPHY |
---|
89 | ln -sf $HYPHY tool-data/HYPHY |
---|
90 | fi |
---|
91 | |
---|
92 | if [ -d "$JARS" ]; then |
---|
93 | echo "Linking $JARS" |
---|
94 | rm -f tool-data/shared/jars |
---|
95 | ln -sf $JARS tool-data/shared/jars |
---|
96 | fi |
---|
97 | |
---|
98 | for sample in $SAMPLES; do |
---|
99 | file=`echo $sample | sed -e 's/\.sample$//'` |
---|
100 | echo "Copying $sample to $file" |
---|
101 | cp $sample $file |
---|
102 | done |
---|
103 | |
---|
104 | for dir in $DIRS; do |
---|
105 | if [ ! -d $dir ]; then |
---|
106 | echo "Creating $dir" |
---|
107 | mkdir $dir |
---|
108 | fi |
---|
109 | done |
---|
110 | |
---|
111 | # for wig_to_bigWig |
---|
112 | if [ ! -f "tool-data/shared/ucsc/chrom/hg17.len" -a -f "test-data/wig_to_bigwig_hg17.len" ]; then |
---|
113 | mkdir -p tool-data/shared/ucsc/chrom |
---|
114 | cp test-data/wig_to_bigwig_hg17.len tool-data/shared/ucsc/chrom/hg17.len |
---|
115 | fi |
---|
116 | |
---|
117 | python ./scripts/fetch_eggs.py all |
---|