[Bioperl-l] Bug in the Bio::SeqIO.scf.pm code

Chris Fields cjfields at uiuc.edu
Mon Jan 29 13:21:51 UTC 2007


Could you add a test file for the bug to the bug report or send it to  
me?  If you send it make sure not to CC the entire mail list.

I'll commit this to CVS once we have a test in place.

chris

On Jan 29, 2007, at 5:29 AM, Anthony Underwood wrote:

> Hi All,
>
>
>
> Has anybody else come across this problem:
>
>
>
> I have some scf files that fail to be read by the next_seq method  
> within
> scf.pm due to line 226: my $name_comment = $name_comments[0]- 
> >as_text();
>
> Error: can not call method as_text on undefined object.
>
>
>
> It appears that if the scf file has no comments then the array
> @name_comments created in the previous line is empty.
>
>
>
> I overcame this by replacing line 226 with the following lines:
>
> my $name_comment;
>
> if (@name_comments){
>
>      $name_comment = $name_comments[0]->as_text();
>
>      $name_comment =~ s/^Comment:\s+//;
>
> }
>
>
>
>
>
> Should this be incorporated into the code? Many thanks,
>
>
>
> Anthony
>
>
>
>
> -----------------------------------------
> *******************************************************************
> *******
> The information contained in the EMail and any attachments is
> confidential and intended solely and for the attention and use of
> the named addressee(s). It may not be disclosed to any other person
> without the express authority of the HPA, or the intended
> recipient, or both. If you are not the intended recipient, you must
> not disclose, copy, distribute or retain this message or any part
> of it. This footnote also confirms that this EMail has been swept
> for computer viruses, but please re-sweep any attachments before
> opening or saving. HTTP://www.HPA.org.uk **************************
> ************************************************
>
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> 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






More information about the Bioperl-l mailing list