File: runAllSim4.pl

package info (click to toggle)
augustus 3.3.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 486,188 kB
  • sloc: cpp: 51,969; perl: 20,926; ansic: 1,251; makefile: 935; python: 120; sh: 118
file content (22 lines) | stat: -rwxr-xr-x 723 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
#
# run sim4 once for each line in the matchlist file 
# 
#
my @contigs = ();

system ("rm -f sim4.results");
while (<>) {
    chomp;
    @f = split /\t/, $_;
    $estfilename = shift @f;
    system ("echo '$estfilename' | cdbyank ~/galdieria/galdi3/Newbler_all_454AllContigs.fna.long.uc.cidx > mrna.fa");
    system ("echo '@f' | cdbyank ~/galdieria/galdi3/build3.fa.cidx > genomic.fa");
    system ("perl -i.orig -p -e 's/^Incorrectly.*fixed.\n//' mrna.fa genomic.fa");
    system ("keepOnlyLonger.pl mrna.fa genomic.fa");
    if (open(LONG, "<genomic.fa.long")) {
	close LONG;
	system ("echo '--------\n>$estfilename' >> sim4.results");
	system ("sim4 mrna.fa genomic.fa.long >> sim4.results");
    } 
}