Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created April 6, 2011 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbolser/029b187e0369c3901c57 to your computer and use it in GitHub Desktop.
Save dbolser/029b187e0369c3901c57 to your computer and use it in GitHub Desktop.
#!/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;
print
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