File: adjust-scripts

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