-
-
Save dbolser/029b187e0369c3901c57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
die "pass GFF\n" | |
unless @ARGV; | |
while(<>){ | |
chomp; | |
my @x = split/\t/; | |
die unless@x==9; | |
my @y = split(/;/,$x[8]); | |
pop @y unless length $y[-1]; | |
$y[-1] = 'Note='. $y[-1] | |
unless index($y[-1], '=') > 0; | |
join("\t", @x[0..7], join(';', @y)), "\n"; | |
} | |
warn "OK\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment