13 use CXGN
::ITAG
::Release
;
16 my $message = shift || '';
17 $message = "Error: $message\n" if $message;
23 Script to get some stuff or something. (Naama should rewrite this)
31 sub HELP_MESSAGE
{usage
()}
34 getopts
('',\
%opt) or usage
();
36 my ($curr_pipeline) = CXGN
::ITAG
::Release
->find();
37 $curr_pipeline or die 'no current ITAG pipeline found in base dir '.CXGN
::ITAG
::Release
->releases_root_dir;
39 my $annotation_file = $curr_pipeline->get_file_info('combi_genomic_gff3')->{file
};
41 open my $loci_matches, "grep ITAG_sgn_loci $annotation_file |"
42 or die "$! running grep on $annotation_file";
44 while (my $line = <$loci_matches> ) {
46 my ($seq,$source,$type,$start,$end,$score,$dir,$phase,$attrs) = split /\s+/,$line,9;
47 next unless $source eq 'ITAG_sgn_loci';
48 my %attrs = map split(/(?<=[^\\])=/,$_), split(/(?<=[^\\]);/,$attrs);
49 print "got match for $attrs{Name} on $seq from $start to $end\n";