Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor flat-file reformatting to remove redundant and empty tags
- Loading branch information
Showing
8 changed files
with
220 additions
and
54 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
chr10 102746607 102747330 chr10_100010101 1 + | ||
chr10 102756707 102757063 chr10_100020212 1 + | ||
chr10 102757103 102757628 chr10_100020608 1 + | ||
chr10 102758816 102759393 chr10_100022332 1 + | ||
chr10 102759402 102759798 chr10_100023087 1 + | ||
chr10 102763502 102763900 chr10_100027151 1 + | ||
chr10 102778574 102779028 chr10_100042744 1 + | ||
chr10 102790835 102791548 chr10_100059467 1 + | ||
chr10 102807700 102808458 chr10_100076094 1 + | ||
chr10 102809834 102810339 chr10_100078435 1 + | ||
chr10 102820652 102821466 chr10_100089212 1 + | ||
chr10 102821565 102821902 chr10_100090127 1 + | ||
chr10 102822305 102822874 chr10_100090866 1 + | ||
chr10 102825930 102826474 chr10_100094501 1 + | ||
chr10 102826938 102827286 chr10_100095501 1 + | ||
chr10 102827366 102827778 chr10_100095928 1 + | ||
chr10 102883063 102883551 chr10_100154436 1 + | ||
chr10 102891173 102891794 chr10_100162617 1 + | ||
chr10 102893599 102894301 chr10_100165069 1 + | ||
chr10 102905801 102906693 chr10_100177356 1 + |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
##gff-version 3 | ||
Group1.36 AU9 gene 176975 180744 0.84 + . ID=au9.g1002;Name=au9.g1002,foobar;score=20;start=99839;Alias=noggin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use JBlibs; | ||
|
||
use Test::More; | ||
use File::Temp; | ||
|
||
use Bio::JBrowse::FeatureStream::GFF3_LowLevel; | ||
|
||
sub tempdir { | ||
my $tempdir = File::Temp->newdir( CLEANUP => $ENV{KEEP_ALL} ? 0 : 1 ); | ||
#diag "using temp dir $tempdir"; | ||
return $tempdir; | ||
} | ||
|
||
|
||
{ | ||
require Bio::GFF3::LowLevel::Parser; | ||
my $p = Bio::GFF3::LowLevel::Parser->new( 'tests/data/redundant.gff3' ); | ||
|
||
my $s = Bio::JBrowse::FeatureStream::GFF3_LowLevel->new( | ||
parser => $p, | ||
track_label => 'faketracklabel' | ||
); | ||
|
||
my @i = $s->next_items; | ||
is_deeply( \@i, | ||
[ | ||
{ | ||
'alias' => 'noggin', | ||
'end' => '180744', | ||
'id' => 'au9.g1002', | ||
'name' => 'au9.g1002', | ||
'name2' => 'foobar', | ||
'score' => '0.84', | ||
'score2' => '20', | ||
'seq_id' => 'Group1.36', | ||
'source' => 'AU9', | ||
'start' => '176975', | ||
'start2' => '99839', | ||
'strand' => '+', | ||
'type' => 'gene' | ||
} | ||
] | ||
) or diag explain \@i; | ||
} | ||
|
||
done_testing; |
Oops, something went wrong.