[Bioperl-l] write_sequence]

Paulo Almeida palmeida at igc.gulbenkian.pt
Mon May 9 13:11:59 EDT 2005


If you use >> instead of > , when indicating the output file, write_seq
appends the output to the file. Something like this, if you are
specifying the output file when creating the SeqIO object:

$out = Bio::SeqIO->new(-file => ">>outputfilename");

-Paulo

On Mon, May 09, 2005 at 06:47:21PM +0200, Ferdinand Marlétaz wrote:
> Sorry if my question is stupid !!!
> 
> I start programming using bioperl and I've a little problem with the
> function write_sequence. In fact I'd like to add sequence to
> pre-existing files  in a loop and I was convinced that re-do a
> write_seq on a already written file would only add the interest
> lines... But it's not the case and  it overwrites my previous files.
> What could be the solution to this problem ???
> 
> Thanks
> 
> cheers
> 
> Ferdi
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioperl-l

-- 
Paulo Almeida
Instituto Gulbenkian de Ciencia
Apartado 14, 2781-901, Oeiras, PORTUGAL
tel  +351 21 446 46 35
fax  +351 21 440 79 70
http://www.igc.gulbenkian.pt


More information about the Bioperl-l mailing list