[Bioperl-l] Primary seq primary_id?

Hilmar Lapp hlapp@gnf.org
Thu, 7 Nov 2002 11:42:24 -0800


You do get a string. It's just the memory location of the object to fulfill the requirement to return something which is unique in the application. If you don't like that string, set e.g. $input->primary_id($input->accession_number).

	-hilmar

> -----Original Message-----
> From: Wiepert, Mathieu [mailto:Wiepert.Mathieu@mayo.edu]
> Sent: Thursday, November 07, 2002 10:42 AM
> To: 'bioperl-l@bioperl.org'
> Subject: [Bioperl-l] Primary seq primary_id?
> 
> 
> Hi,
> 
> I am pretty sure that something is messed up for me.  When I 
> call Bio::Seq to get the primary_id of a sequence, I no 
> longer get a string...
> 
> my $seq = Bio::SeqIO->new(-file=>'amino.fa' , '-format' => 'fasta' );
> my $input = $seq->next_seq();
> my $primary_id = $input->primary_id;
> print $primary_id;
> 
> gives me
> 
> Bio::Seq=HASH(0x82d88d4)
> 
> Is there something really silly that I missed somewhere?  I 
> used to get strings...
> 
> -Mat
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
>