File: removeExonFrame.pl

package info (click to toggle)
snpeff 5.4.b%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 757,500 kB
  • sloc: java: 62,572; perl: 2,279; sh: 1,184; python: 744; xml: 507; makefile: 48
file content (17 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/perl

while( $l = <STDIN> ) {
	chomp $l;
	@t = split /\t/, $l;

	if( $t[2] eq 'exon' ) {
		$t[7] = ".";
		for( $i=0 ; $i <= $#t ; $i++ ) {
			print "\t" if $i > 0;
			print $t[$i];
		}
		print "\n";
	} else {
		print "$l\n";
	}
}