[Bioperl-l] [EMBL reformatter problem with large acc_number]

Sebastien Moretti Sebastien.Moretti at igs.cnrs-mrs.fr
Wed Dec 15 05:07:32 EST 2004


> > Hello,
> > I use bioperl 1.4 on linux OS.
> > I try to enhance some of my EMBL flat files with the standard EMBL
> > reformatter
> > of BioPerl:
> >
> > But some of my files have large accession number, like ensEMBL
> > accession
> > number, and my ID lines look like that:
> > 	ID   ENSG00000156345standard; genomic DNA; UNK; 17425 BP.
> >
> > So, I would like to change this and to add blank spaces before
> > 'standard;'.
>
> This has been discussed on the list previously and there is a patch
> waiting in bugzilla to sort out this behaviour
>
> http://bugzilla.bioperl.org/show_bug.cgi?id=1618
>
> A small change to EMBL.pm should have you on your way without having to
> change any of your code.
>
> Simon.

Thanks, I works with the patch but it cuts my accession number.
So, it must be better to change
$temp_line = sprintf("%-11.10sstandard; $mol; $div; %d BP.", $seq->id(), 
$len);
with 
$temp_line = sprintf("%-10s standard; $mol; $div; %d BP.", $seq->id(), $len);
as reported at the end of the bur report.

I hope it will be fixed automatically in the 1.5 BioPerl release !

-- 
Sebastien MORETTI
Linux User - #327894
CNRS - IGS
31 chemin Joseph Aiguier
13402 Marseille cedex 20, FRANCE
tel. +33 (0)4 91 16 44 55


More information about the Bioperl-l mailing list