Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Chris Fields <cjfields <at> uiuc.edu>
Subject: Re: Bio::SeqIO - Error in ID value collection
Newsgroups: gmane.comp.lang.perl.bio.general
Date: Monday 31st March 2008 23:58:44 UTC (over 8 years ago)
The parser no longer has this line; it has been updated to work with  
both old and new format EMBL.  You might want to try updating from  
Subversion or install the nightly build.

http://bioperl.org/DIST/nightly_builds/

chris

On Mar 31, 2008, at 9:35 AM, Damien Pradel wrote:
> Hello,
>
> I use the SeqIO module in order to  parse EMBL files.
> Unfortunately I got a problem: the ID was not recognised because  
> instead of
> the ID value  I get the answer "unknown_id" ...
>
> So to solve this problem I have modified the file embl.pm located in
> directory SeqIO at the line 189 as follow :
>
> if( $line =~ /^ID\s+(\S+)\s+\S+\;\s+([^;]+)\;\s+(\S+)\;/ ) {
>       ($name,$mol,$div) = ($1,$2,$3);
>   }
>   unless( defined $name && length($name) ) {
>       $name = "unknown_id";
>   }
>
> in :
> if( $line =~ /^ID\s+(.+?)\;\s+([^;]+)\;\s+(\S+)\;/ ) {
>       ($name,$mol,$div) = ($1,$2,$3);
>   }
>   unless( defined $name && length($name) ) {
>       $name = "unknown_id";
>   }
>
> With this modification, the ID value is correctly collected.
>
> Hope it will help.
>
> Damien
> _______________________________________________
> Bioperl-l mailing list
> [email protected]
> http://lists.open-bio.org/mailman/listinfo/bioperl-l

Christopher Fields
Postdoctoral Researcher
Lab of Dr. Robert Switzer
Dept of Biochemistry
University of Illinois Urbana-Champaign
 
CD: 3ms