File: runAllSim4.pl

package info (click to toggle)
augustus 3.2.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 289,676 kB
  • sloc: cpp: 48,711; perl: 13,339; ansic: 1,251; makefile: 859; sh: 58
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");
    } 
}