Skip to content

Commit

Permalink
fix the problem of parsing Ensembl GFF3 files
Browse files Browse the repository at this point in the history
  • Loading branch information
yjx1217 committed Nov 12, 2021
1 parent 212ea1f commit 303dc2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simuG.pl
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,8 @@ sub parse_gff_file {
my ($mRNA_id, $gene_id) = ($attributes =~ /ID=([^;]+);\S*Parent=([^;]+)/);
$gff{$mRNA_id}{'parent'} = $gene_id;
}
} elsif ($type eq 'exon') {
}
if ($type eq 'exon') {
my ($mRNA_id) = ($attributes =~ /Parent=([^;]+)/);
my $exon_index = $start;
$gff{$mRNA_id}{'exon'}{$exon_index}{'chr'} = $chr;
Expand Down

0 comments on commit 303dc2f

Please sign in to comment.