Debian Codegraph @

debian/patches/adjust-scripts

raw
1 Author: Michael R. Crusoe <[email protected]>
2 Description: adjust for installed use
3 Forwarded: non-needed
4 --- fasta3.orig/scripts/ann_exons_all.pl
5 +++ fasta3/scripts/ann_exons_all.pl
6 @@ -1,4 +1,4 @@
7 -#!/usr/bin/env perl
8 +#!/usr/bin/perl
9
10 ################################################################
11 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
12 --- fasta3.orig/scripts/ann_exons_ens.pl
13 +++ fasta3/scripts/ann_exons_ens.pl
14 @@ -1,4 +1,4 @@
15 -#!/usr/bin/env perl
16 +#!/usr/bin/perl
17
18 ################################################################
19 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
20 --- fasta3.orig/scripts/ann_exons_ncbi.pl
21 +++ fasta3/scripts/ann_exons_ncbi.pl
22 @@ -1,4 +1,4 @@
23 -#!/usr/bin/env perl
24 +#!/usr/bin/perl
25
26 # ann_exons_ncbi.pl gets an annotation file from fasta36 -V with a line of the form:
27
28 --- fasta3.orig/scripts/ann_exons_up_sql.pl
29 +++ fasta3/scripts/ann_exons_up_sql.pl
30 @@ -1,4 +1,4 @@
31 -#!/usr/bin/env perl
32 +#!/usr/bin/perl
33
34 ################################################################
35 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
36 --- fasta3.orig/scripts/ann_exons_up_sql_www.pl
37 +++ fasta3/scripts/ann_exons_up_sql_www.pl
38 @@ -1,4 +1,4 @@
39 -#!/usr/bin/env perl
40 +#!/usr/bin/perl
41
42 ################################################################
43 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
44 --- fasta3.orig/scripts/ann_exons_up_www.pl
45 +++ fasta3/scripts/ann_exons_up_www.pl
46 @@ -1,4 +1,4 @@
47 -#!/usr/bin/env perl
48 +#!/usr/bin/perl
49
50 ################################################################
51 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
52 --- fasta3.orig/scripts/ann_feats2ipr.pl
53 +++ fasta3/scripts/ann_feats2ipr.pl
54 @@ -1,4 +1,4 @@
55 -#!/usr/bin/env perl
56 +#!/usr/bin/perl
57
58 ################################################################
59 # copyright (c) 2014 by William R. Pearson and The Rector &
60 --- fasta3.orig/scripts/ann_feats2ipr_e.pl
61 +++ fasta3/scripts/ann_feats2ipr_e.pl
62 @@ -1,4 +1,4 @@
63 -#!/usr/bin/env perl
64 +#!/usr/bin/perl
65
66 ################################################################
67 # copyright (c) 2014 by William R. Pearson and The Rector &
68 --- fasta3.orig/scripts/ann_feats_up_sql.pl
69 +++ fasta3/scripts/ann_feats_up_sql.pl
70 @@ -1,4 +1,4 @@
71 -#!/usr/bin/env perl
72 +#!/usr/bin/perl
73
74 ################################################################
75 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
76 --- fasta3.orig/scripts/ann_feats_up_www2.pl
77 +++ fasta3/scripts/ann_feats_up_www2.pl
78 @@ -1,4 +1,4 @@
79 -#!/usr/bin/env perl
80 +#!/usr/bin/perl
81
82 ################################################################
83 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
84 --- fasta3.orig/scripts/ann_ipr_www.pl
85 +++ fasta3/scripts/ann_ipr_www.pl
86 @@ -1,4 +1,4 @@
87 -#!/usr/bin/env perl
88 +#!/usr/bin/perl
89
90 ################################################################
91 # copyright (c) 2014 by William R. Pearson and The Rector &
92 --- fasta3.orig/scripts/ann_pdb_cath.pl
93 +++ fasta3/scripts/ann_pdb_cath.pl
94 @@ -1,4 +1,4 @@
95 -#!/usr/bin/env perl
96 +#!/usr/bin/perl
97
98 ################################################################
99 # copyright (c) 2014 by William R. Pearson and The Rector &
100 --- fasta3.orig/scripts/ann_pdb_vast.pl
101 +++ fasta3/scripts/ann_pdb_vast.pl
102 @@ -1,4 +1,4 @@
103 -#!/usr/bin/env perl
104 +#!/usr/bin/perl
105
106 ################################################################
107 # copyright (c) 2014, 2015 by William R. Pearson and The Rector &
108 --- fasta3.orig/scripts/ann_pfam30_tmptbl.pl
109 +++ fasta3/scripts/ann_pfam30_tmptbl.pl
110 @@ -1,4 +1,4 @@
111 -#!/usr/bin/env perl
112 +#!/usr/bin/perl
113
114 ################################################################
115 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
116 --- fasta3.orig/scripts/ann_pfam_sql.pl
117 +++ fasta3/scripts/ann_pfam_sql.pl
118 @@ -1,4 +1,4 @@
119 -#!/usr/bin/env perl
120 +#!/usr/bin/perl
121
122 ################################################################
123 # copyright (c) 2015 by William R. Pearson and The Rector &
124 --- fasta3.orig/scripts/ann_pfam_www.pl
125 +++ fasta3/scripts/ann_pfam_www.pl
126 @@ -1,4 +1,4 @@
127 -#!/usr/bin/env perl
128 +#!/usr/bin/perl
129
130 ################################################################
131 # copyright (c) 2014, 2015 by William R. Pearson and The Rector &
132 --- fasta3.orig/scripts/ann_upfeats_pfam_www_e.pl
133 +++ fasta3/scripts/ann_upfeats_pfam_www_e.pl
134 @@ -1,4 +1,4 @@
135 -#!/usr/bin/env perl
136 +#!/usr/bin/perl
137
138 ################################################################
139 # copyright (c) 2014 by William R. Pearson and The Rector &
140 --- fasta3.orig/scripts/annot_blast_btop2.pl
141 +++ fasta3/scripts/annot_blast_btop2.pl
142 @@ -1,4 +1,4 @@
143 -#!/usr/bin/env perl
144 +#!/usr/bin/perl
145
146 ################################################################
147 # copyright (c) 2017,2018 by William R. Pearson and The Rector &
148 --- fasta3.orig/scripts/annot_blast_btop3.py
149 +++ fasta3/scripts/annot_blast_btop3.py
150 @@ -1,4 +1,4 @@
151 -#!/usr/bin/env python3
152 +#!/usr/bin/python3
153
154 ################################################################
155 # copyright (c) 2017,2018 by William R. Pearson and The Rector &
156 --- fasta3.orig/scripts/annot_blast_btop4.py
157 +++ fasta3/scripts/annot_blast_btop4.py
158 @@ -1,4 +1,4 @@
159 -#!/usr/bin/env python3
160 +#!/usr/bin/python3
161
162 ################################################################
163 # copyright (c) 2017,2018 by William R. Pearson and The Rector &
164 --- fasta3.orig/scripts/blastp_annot_cmd.sh
165 +++ fasta3/scripts/blastp_annot_cmd.sh
166 @@ -82,19 +82,19 @@
167
168 # annot_cmd="annot_blast_btop2.pl --query $QUERY --raw --have_qslen --dom_info --ann_script "$ANN_SCRIPT" --q_ann_script "$Q_ANN_SCRIPT" $blt_out > $blt_ann"
169 # echo "# $annot_cmd"
170 -annot_blast_btop2.pl --query $QUERY --raw --have_qslen --dom_info --ann_script "$ANN_SCRIPT" --q_ann_script "$Q_ANN_SCRIPT" $blt_out > $blt_ann
171 +/usr/share/fasta3/scripts/annot_blast_btop2.pl --query $QUERY --raw --have_qslen --dom_info --ann_script "$ANN_SCRIPT" --q_ann_script "$Q_ANN_SCRIPT" $blt_out > $blt_ann
172
173 if [[ $DO_HTML == 1 ]]; then
174 ## rename_exons.py --have_qslen --dom_info $blt_ann > $blr_out
175 $BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 0 -html > $bl0_out
176 ## echo "# merge_blast_btab.pl --plot_url=plot_domain6t.cgi --have_qslen --dom_info --btab $blt_out $bl0_out"
177 - merge_blast_btab.pl --plot_url="plot_domain6t.cgi" --have_qslen --dom_info --btab $blt_ann $bl0_out
178 + /usr/share/fasta3/scripts/merge_blast_btab.pl --plot_url="plot_domain6t.cgi" --have_qslen --dom_info --btab $blt_ann $bl0_out
179
180 else
181 $BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 0 > $bl0_out
182 merge_cmd="merge_blast_btab.pl --have_qslen --dom_info --btab $blt_ann $bl0_out"
183 # echo "# $merge_cmd"
184 - merge_blast_btab.pl --have_qslen --dom_info --btab $blt_ann $bl0_out
185 + /usr/share/fasta3/scripts/merge_blast_btab.pl --have_qslen --dom_info --btab $blt_ann $bl0_out
186 fi
187
188 # $BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 2 > $blm_out
189 --- fasta3.orig/scripts/blastp_cmd.sh
190 +++ fasta3/scripts/blastp_cmd.sh
191 @@ -22,7 +22,7 @@
192 # echo "OUTFILE = ${OUTNAME}"
193
194 #export BLAST_PATH="/ebi/extserv/bin/ncbi-blast+/bin"
195 -export BLAST_PATH="/seqprg/bin"
196 +export BLAST_PATH="/usr/bin"
197
198 $BLAST_PATH/blastp -outfmt 11 $cmd > $bl_asn
199 $BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 0 -html > $bl0_out
200 --- fasta3.orig/scripts/exp_up_ensg.pl
201 +++ fasta3/scripts/exp_up_ensg.pl
202 @@ -1,4 +1,4 @@
203 -#!/usr/bin/env perl
204 +#!/usr/bin/perl
205
206 ################################################################
207 # copyright (c) 2010, 2014 by William R. Pearson and The Rector &
208 --- fasta3.orig/scripts/expand_links.pl
209 +++ fasta3/scripts/expand_links.pl
210 @@ -1,4 +1,4 @@
211 -#!/usr/bin/env perl
212 +#!/usr/bin/perl
213
214 ################################################################
215 # copyright (c) 2010, 2014 by William R. Pearson and The Rector &
216 --- fasta3.orig/scripts/expand_refseq_isoforms.pl
217 +++ fasta3/scripts/expand_refseq_isoforms.pl
218 @@ -1,4 +1,4 @@
219 -#!/usr/bin/env perl
220 +#!/usr/bin/perl
221
222 ################################################################
223 # copyright (c) 2010, 2014 by William R. Pearson and The Rector &
224 --- fasta3.orig/scripts/expand_uniref50.pl
225 +++ fasta3/scripts/expand_uniref50.pl
226 @@ -1,4 +1,4 @@
227 -#!/usr/bin/env perl
228 +#!/usr/bin/perl
229
230 ################################################################
231 # copyright (c) 2010, 2014 by William R. Pearson and The Rector &
232 --- fasta3.orig/scripts/expand_up_isoforms.pl
233 +++ fasta3/scripts/expand_up_isoforms.pl
234 @@ -1,4 +1,4 @@
235 -#!/usr/bin/env perl
236 +#!/usr/bin/perl
237
238 ################################################################
239 # copyright (c) 2010, 2014 by William R. Pearson and The Rector &
240 --- fasta3.orig/scripts/fasta_annot_cmd.sh
241 +++ fasta3/scripts/fasta_annot_cmd.sh
242 @@ -54,7 +54,7 @@
243 blt_out="$OUTNAME.fa_tab"
244 blr_out="$OUTNAME.fa_tab_rn"
245
246 -export BLAST_PATH="/seqprg/bin"
247 +export BLAST_PATH="/usr/bin"
248 # BLAST_PATH="../bin"
249
250 cmd="$cmd -mF8CBL=$blt_out $QUERY $DATABASE"
251 @@ -73,7 +73,7 @@
252 # run the program
253 $BLAST_PATH/$SRCH_CMD $cmd > $bl0_out
254
255 -$BLAST_PATH/rename_exons.py --have_qslen --dom_info $blt_out > $blr_out
256 +/usr/share/fasta3/scripts/rename_exons.py --have_qslen --dom_info $blt_out > $blr_out
257
258 if [ ! -s $blr_out ]; then
259 # echo "# " `ls -l $blt_out $blr_out`
260 @@ -81,4 +81,4 @@
261 # echo "# " `ls -l $blt_out $blr_out`
262 fi
263
264 -$BLAST_PATH/merge_fasta_btab.pl --plot_url="plot_domain6t.cgi" --have_qslen --dom_info --btab $blr_out $bl0_out
265 +/usr/share/fasta3/scripts/merge_fasta_btab.pl --plot_url="plot_domain6t.cgi" --have_qslen --dom_info --btab $blr_out $bl0_out
266 --- fasta3.orig/scripts/get_genome_seq.py
267 +++ fasta3/scripts/get_genome_seq.py
268 @@ -1,4 +1,4 @@
269 -#!/usr/bin/env python3
270 +#!/usr/bin/python3
271
272 ################
273 ## get_hg38_bed.py parses an HG38 coordinate into a pseudo-bed entry,
274 --- fasta3.orig/scripts/get_protein.py
275 +++ fasta3/scripts/get_protein.py
276 @@ -1,4 +1,4 @@
277 -#!/usr/bin/env python3
278 +#!/usr/bin/python3
279
280 ## get_protein_www.py --
281 ## get a protein sequence from the Uniprot or NCBI/Refseq web sites using the accession
282 --- fasta3.orig/scripts/get_protein_sql.py
283 +++ fasta3/scripts/get_protein_sql.py
284 @@ -1,4 +1,4 @@
285 -#!/usr/bin/env python
286 +#!/usr/bin/python3
287
288 ## get_protein_sql.py --
289 ## get a protein sequence from a local Uniprot or NCBI/Refseq mySQL database using the accession
290 --- fasta3.orig/scripts/get_protein_sql_www.py
291 +++ fasta3/scripts/get_protein_sql_www.py
292 @@ -1,4 +1,4 @@
293 -#!/usr/bin/env python3
294 +#!/usr/bin/python3
295
296 ## get_protein.py --
297 ## get a protein sequence from Uniprot or NCBI/Refseq using the accession
298 --- fasta3.orig/scripts/get_refseq.py
299 +++ fasta3/scripts/get_refseq.py
300 @@ -1,4 +1,4 @@
301 -#!/usr/bin/env python3
302 +#!/usr/bin/python3
303
304 import sys
305 import re
306 --- fasta3.orig/scripts/get_uniprot.py
307 +++ fasta3/scripts/get_uniprot.py
308 @@ -1,4 +1,4 @@
309 -#!/usr/bin/env python3
310 +#!/usr/bin/python3
311
312 import sys
313 import re
314 --- fasta3.orig/scripts/get_up_prot_iso_sql.py
315 +++ fasta3/scripts/get_up_prot_iso_sql.py
316 @@ -1,4 +1,4 @@
317 -#!/usr/bin/env python3
318 +#!/usr/bin/python3
319
320 import sys
321 import re
322 --- fasta3.orig/scripts/lav2plt.pl
323 +++ fasta3/scripts/lav2plt.pl
324 @@ -1,4 +1,4 @@
325 -#!/usr/bin/env perl
326 +#!/usr/bin/perl
327
328 # lav2plt.pl - produce plotfrom lav output */
329
330 --- fasta3.orig/scripts/lavplt_ps.pl
331 +++ fasta3/scripts/lavplt_ps.pl
332 @@ -1,4 +1,4 @@
333 -#!/usr/bin/env perl
334 +#!/usr/bin/perl
335 #
336 ################################################################
337 # copyright (c) 2012, 2014 by William R. Pearson and The Rector &
338 --- fasta3.orig/scripts/lavplt_svg.pl
339 +++ fasta3/scripts/lavplt_svg.pl
340 @@ -1,4 +1,4 @@
341 -#!/usr/bin/env perl
342 +#!/usr/bin/perl
343 #
344 ################################################################
345 # copyright (c) 2012, 2014 by William R. Pearson and The Rector &
346 --- fasta3.orig/scripts/links2sql.pl
347 +++ fasta3/scripts/links2sql.pl
348 @@ -1,4 +1,4 @@
349 -#!/usr/bin/env perl
350 +#!/usr/bin/perl
351
352 ################################################################
353 # copyright (c) 2014 by William R. Pearson and The Rector &
354 --- fasta3.orig/scripts/m8_btop_msa.pl
355 +++ fasta3/scripts/m8_btop_msa.pl
356 @@ -1,4 +1,4 @@
357 -#!/usr/bin/env perl
358 +#!/usr/bin/perl
359
360 ################################################################
361 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
362 --- fasta3.orig/scripts/m9B_btop_msa.pl
363 +++ fasta3/scripts/m9B_btop_msa.pl
364 @@ -1,4 +1,4 @@
365 -#!/usr/bin/env perl
366 +#!/usr/bin/perl
367
368 ################################################################
369 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
370 --- fasta3.orig/scripts/map_exon_coords.py
371 +++ fasta3/scripts/map_exon_coords.py
372 @@ -1,4 +1,4 @@
373 -#!/usr/bin/env python3
374 +#!/usr/bin/python3
375 #
376 # given a -m8CB file with exon annotations for the query and subject,
377 # provide a function that maps subject coordinates to query, or vice versa
378 --- fasta3.orig/scripts/merge_blast_btab.pl
379 +++ fasta3/scripts/merge_blast_btab.pl
380 @@ -1,4 +1,4 @@
381 -#!/usr/bin/env perl
382 +#!/usr/bin/perl
383
384 ################################################################
385 # copyright (c) 2018 by William R. Pearson and The Rector &
386 --- fasta3.orig/scripts/merge_fasta_btab.pl
387 +++ fasta3/scripts/merge_fasta_btab.pl
388 @@ -1,4 +1,4 @@
389 -#!/usr/bin/env perl
390 +#!/usr/bin/perl
391
392 ################################################################
393 # copyright (c) 2018 by William R. Pearson and The Rector &
394 --- fasta3.orig/scripts/relabel_domains.py
395 +++ fasta3/scripts/relabel_domains.py
396 @@ -1,4 +1,4 @@
397 -#!/usr/bin/env python3
398 +#!/usr/bin/python3
399
400 # Given a blast_tabular file with search results from one or more
401 # protein queries, modify the domain color numbers (e.g. ~1, ~2) so
402 --- fasta3.orig/scripts/rename_exons.py
403 +++ fasta3/scripts/rename_exons.py
404 @@ -1,4 +1,4 @@
405 -#!/usr/bin/env python3
406 +#!/usr/bin/python3
407 #
408 # given a -m8CB file with exon annotations for the query and subject,
409 # adjust the subject exon names to match the query exon names
410 --- fasta3.orig/scripts/summ_domain_ident.pl
411 +++ fasta3/scripts/summ_domain_ident.pl
412 @@ -1,4 +1,4 @@
413 -#!/usr/bin/env perl
414 +#!/usr/bin/perl
415
416 ################################################################
417 # copyright (c) 2014 by William R. Pearson and The Rector &
418 --- fasta3.orig/scripts/test_py.sh
419 +++ fasta3/scripts/test_py.sh
420 @@ -5,39 +5,39 @@
421 ## test python scripts
422 ##
423
424 -echo 'get_genome_seq.py'
425 -get_genome_seq.py chr1:109687874-109687909
426 +# echo 'get_genome_seq.py'
427 +# /usr/share/fasta3/scripts/get_genome_seq.py chr1:109687874-109687909
428
429 echo 'get_protein.py'
430 -get_protein.py 'sp|P09488|GSTM1_HUMAN'
431 -get_protein.py 'P09488'
432 -get_protein.py 'NP_000552'
433 +/usr/share/fasta3/scripts/get_protein.py 'sp|P09488|GSTM1_HUMAN'
434 +/usr/share/fasta3/scripts/get_protein.py 'P09488'
435 +/usr/share/fasta3/scripts/get_protein.py 'NP_000552'
436
437 echo 'get_refseq.py'
438 -get_refseq.py NP_000552
439 -get_refseq.py NP_0000552
440 +/usr/share/fasta3/scripts/get_refseq.py NP_000552
441 +/usr/share/fasta3/scripts/get_refseq.py NP_0000552
442
443 echo 'get_uniprot.py'
444 -get_uniprot.py P09488
445 -get_uniprot.py 'sp|P09488|GSTM1_HUMAN'
446 +/usr/share/fasta3/scripts/get_uniprot.py P09488
447 +/usr/share/fasta3/scripts/get_uniprot.py 'sp|P09488|GSTM1_HUMAN'
448
449 echo '################################################################'
450 echo 'map_exon_coords.py -- look for chrA:start-stop::chrB:start-stop in output'
451 # (a) produce an appropriate alignment file
452 -fasta36 -q -m 8CBL -V \!ann_exons_up_sql.pl+--gen_coord+--exon_label -V q\!ann_exons_up_sql.pl+--gen_coord+--exon_label \!get_protein.py+P30711 \!get_protein.py+P20135 > hum_chk_map_test.m8CBL
453 +fasta36 -q -m 8CBL -V \!/usr/share/fasta3/scripts/ann_exons_up_sql.pl+--gen_coord+--exon_label -V q\!/usr/share/fasta3/scripts/ann_exons_up_sql.pl+--gen_coord+--exon_label \!/usr/share/fasta3/scripts/get_protein.py+P30711 \!/usr/share/fasta3/scripts/get_protein.py+P20135 > hum_chk_map_test.m8CBL
454 # (b) expand chromosome locations on subject and query exons to both genomes
455 -map_exon_coords.py hum_chk_map_test.m8CBL
456 +/usr/share/fasta3/scripts/map_exon_coords.py hum_chk_map_test.m8CBL
457
458 echo 'rename_exons.py -- look for exon_X in output'
459 -rename_exons.py hum_chk_map_test.m8CBL # produces a renamed exon_x
460 -
461 -echo '################################################################'
462 -echo 'annot_blast_btop4.py -- put annotations on blast BTOP alignment with (or without) raw_score'
463 -# (a) from FASTA -m8CBl -- no raw score
464 -echo '.fa_tab no raw score'
465 -annot_blast_btop4.py --no_raw_score --have_qslen --query ../seq/mgstm1.aa --q_ann_file gstm1_mouse.annot --ann_file a1zb72_drome.annot mgstm1_v_a1zb72_dr.fa_tab
466 -
467 -## .bl_tab uses --ann_script because of multiple HSPs
468 -echo '.bl_tab yes raw score'
469 -annot_blast_btop4.py --raw_score --have_qslen --query ../seq/mgstm1.aa --q_ann_file gstm1_mouse.annot --ann_script ann_pfam_sql.pl mgstm1_v_a1zb72.bl_tab
470 +/usr/share/fasta3/scripts/rename_exons.py hum_chk_map_test.m8CBL # produces a renamed exon_x
471
472 +# echo '################################################################'
473 +# echo 'annot_blast_btop4.py -- put annotations on blast BTOP alignment with (or without) raw_score'
474 +# # (a) from FASTA -m8CBl -- no raw score
475 +# echo '.fa_tab no raw score'
476 +# /usr/share/fasta3/scripts/annot_blast_btop4.py --no_raw_score --have_qslen --query /usr/share/doc/fasta3/examples/seq/mgstm1.aa --q_ann_file gstm1_mouse.annot --ann_file a1zb72_drome.annot mgstm1_v_a1zb72_dr.fa_tab
477 +#
478 +# ## .bl_tab uses --ann_script because of multiple HSPs
479 +# echo '.bl_tab yes raw score'
480 +# /usr/share/fasta3/scripts/annot_blast_btop4.py --raw_score --have_qslen --query /usr/share/doc/fasta3/examples/seq/mgstm1.aa --q_ann_file gstm1_mouse.annot --ann_script ann_pfam_sql.pl mgstm1_v_a1zb72.bl_tab
481 +#
482 --- fasta3.orig/scripts/test_ann_scripts.sh
483 +++ fasta3/scripts/test_ann_scripts.sh
484 @@ -9,22 +9,22 @@
485 # SP:GSTM1_HUMAN -- ebi searches without accession
486 ##
487
488 -if [ ! $1=='' ]; then
489 +if [ ! "$1" = '' ]; then
490 script_file=$1
491 else
492 - script_file=ann_script_list
493 + script_file=/usr/share/fasta3/scripts/ann_script_list
494 fi
495
496 -if [ ! $1=='' ]; then
497 +if [ ! "$1" = '' ]; then
498 ex_file=$1
499 else
500 - ex_file=acc_examples
501 + ex_file=/usr/share/fasta3/scripts/acc_examples
502 fi
503
504 -for script in `cat $script_file `; do
505 - for acc_type in `cat $ex_file`; do
506 - echo $script ${acc_type}
507 - $script ${acc_type}
508 - done
509 - echo '***DONE***' $script `date`
510 -done
511 +while read -r script ; do
512 + while read -r acc_type ; do
513 + echo "${script}" "${acc_type}"
514 + "${script}" "${acc_type}"
515 + done < ${ex_file}
516 + echo '***DONE***' "$script" "$(date)"
517 +done < ${script_file}
518 --- fasta3.orig/scripts/ann_script_list
519 +++ fasta3/scripts/ann_script_list
520 @@ -1,9 +1,5 @@
521 -ann_exons_up_sql.pl
522 -ann_exons_up_www.pl
523 -ann_feats2ipr.pl
524 -ann_feats_up_sql.pl
525 -ann_feats_up_www2.pl
526 -ann_ipr_www.pl
527 -ann_pfam30.pl
528 -ann_pfam_www.pl
529 -ann_upfeats_pfam_www_e.pl
530 +/usr/share/fasta3/scripts/ann_exons_up_www.pl
531 +/usr/share/fasta3/scripts/ann_feats_up_sql.pl
532 +/usr/share/fasta3/scripts/ann_feats_up_www2.pl
533 +/usr/share/fasta3/scripts/ann_ipr_www.pl
534 +/usr/share/fasta3/scripts/ann_upfeats_pfam_www_e.pl
535 --- fasta3.orig/psisearch2/clustal2fasta.pl
536 +++ fasta3/psisearch2/clustal2fasta.pl
537 @@ -1,4 +1,4 @@
538 -#!/usr/bin/env perl
539 +#!/usr/bin/perl
540
541 ################################################################
542 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
543 --- fasta3.orig/psisearch2/clustal2fasta.py
544 +++ fasta3/psisearch2/clustal2fasta.py
545 @@ -1,4 +1,4 @@
546 -#!/usr/bin/env python
547 +#!/usr/bin/python3
548
549 ################################################################
550 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
551 --- fasta3.orig/psisearch2/m89_btop_msa2.pl
552 +++ fasta3/psisearch2/m89_btop_msa2.pl
553 @@ -1,4 +1,4 @@
554 -#!/usr/bin/env perl
555 +#!/usr/bin/perl
556
557 ################################################################
558 # copyright (c) 2014,2015 by William R. Pearson and The Rector &
559 --- fasta3.orig/psisearch2/psisearch2_msa.pl
560 +++ fasta3/psisearch2/psisearch2_msa.pl
561 @@ -1,4 +1,4 @@
562 -#!/usr/bin/env perl
563 +#!/usr/bin/perl
564
565 ################################################################
566 # copyright (c) 2016,2020 by William R. Pearson and The Rector &
567 @@ -54,7 +54,7 @@
568 # (3) NCBI blast+ programs: psiblast/makeblastdb
569 # (4) NCBI datatool (required only for ssearch36 PSSMs)
570
571 -my $pgm_bin = "/seqprg/bin";
572 +my $pgm_bin = "/usr/bin";
573
574 my $pgm_data = "/seqprg/data";
575 my $ssearch_bin = "$pgm_bin/ssearch36";
576 --- fasta3.orig/psisearch2/psisearch2_msa.py
577 +++ fasta3/psisearch2/psisearch2_msa.py
578 @@ -1,4 +1,4 @@
579 -#!/usr/bin/env python
580 +#!/usr/bin/python3
581
582 ################################################################
583 # copyright (c) 2016 by William R. Pearson and The Rector &
584 @@ -45,7 +45,7 @@
585 # (3) NCBI blast+ programs: psiblast/makeblastdb
586 # (4) NCBI datatool (required only for ssearch36 PSSMs)
587
588 -pgm_bin = "/seqprg/bin"
589 +pgm_bin = "/usr/bin"
590 pgm_data = "/seqprg/data"
591 ssearch_bin = pgm_bin+"/ssearch36"
592 psiblast_bin = pgm_bin+"/psiblast"
593 @@ -54,9 +54,9 @@
594 align2msa_lib = "m89_btop_msa2.pl"
595 clustal2fasta = "clustal2fasta.py"
596
597 -annot_cmds = {'rpd3': '"!../scripts/ann_pfam28.pl --pfacc --db RPD3 --vdoms --split_over"',
598 - 'rpd3nv':'"!../scripts/ann_pfam28.pl --pfacc --db RPD3 --split_over"',
599 - 'pfam':'"!../scripts/ann_pfam30.pl --pfacc --vdoms --split_over"'}
600 +annot_cmds = {'rpd3': '"!/usr/share/fasta3/scripts/ann_pfam28.pl --pfacc --db RPD3 --vdoms --split_over"',
601 + 'rpd3nv':'"!/usr/share/fasta3/scripts/ann_pfam28.pl --pfacc --db RPD3 --split_over"',
602 + 'pfam':'"!/usr/share/fasta3/scripts/ann_pfam30.pl --pfacc --vdoms --split_over"'}
603
604 num_iter = 5
605 srch_pgm = 'ssearch'
606 --- fasta3.orig/psisearch2/psisearch2_msa_iter.sh
607 +++ fasta3/psisearch2/psisearch2_msa_iter.sh
608 @@ -7,8 +7,8 @@
609 #
610
611
612 -PS_BIN=~/Devel/fa36_v3.8/psisearch2
613 -Q_DIR="../seq"
614 +PS_BIN=/usr/share/fasta3/psisearch2
615 +Q_DIR=/usr/share/doc/fasta3/examples/
616 FA_DB=/slib2/fa_dbs/qfo78.lseg
617 BL_DB=/slib2/bl_dbs/qfo78
618 DB=$FA_DB
619 --- fasta3.orig/psisearch2/psisearch2_msa_iter_bl.sh
620 +++ fasta3/psisearch2/psisearch2_msa_iter_bl.sh
621 @@ -6,7 +6,7 @@
622 # psisearch2_msa.pl --pgm psiblast --query query.aa --num_iter 5 --db /slib2/bl_dbs/qfo78
623 #
624
625 -PS_BIN=~/Devel/fa36_v3.8/psisearch2
626 +PS_BIN=/usr/share/fasta3/psisearch2
627 q_file=$1
628
629 db=/slib2/bl_dbs/pir1