modifygffforclc_gw.pl
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| modifygffforclc_gw.pl [2017/01/24 11:36] – hyjeong | modifygffforclc_gw.pl [2021/03/17 13:09] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | # | ||
| + | # | ||
| + | # This script assumes that the input GFF file has only CDS/ | ||
| + | # features. It adds gene features to all of them, and also adds " | ||
| + | # to each CDSs. | ||
| + | # | ||
| + | # | ||
| + | while (<>) { | ||
| + | chomp; | ||
| + | print $_, " | ||
| + | last if /^##FASTA/ || /^>/; | ||
| + | | ||
| + | my @data = split /\t/, $_; | ||
| + | |||
| + | if ($data[2] =~ / | ||
| + | $type = $1; | ||
| + | $data[2] = ' | ||
| + | print join " | ||
| + | | ||
| + | if ($type eq ' | ||
| + | $data[2] = ' | ||
| + | print join " | ||
| + | } | ||
| + | } | ||
| + | print $_, " | ||
| + | } | ||
| + | | ||
