G'day supriyoch_2008,

The documentation for Bio::DB::GenBank says that get_Seq_by_acc() returns a Bio::Seq object.

"I have got the following output from the script. It does not show name of individual gene."

The Bio::Seq documentation shows the desc() method you used. It's return value (your $desc) is the only data you output. Why did you you expect "name of individual gene" when you printed this?

I suggest you read the Bio::Seq documentation. It has methods for accessing the type of information you seem to want.

The Documentation section of the "BioPerl distribution page" shows many scripts. Do any of these do what you want? Do any have source code that helps with your current task?

The "BioPerl MANIFEST page" has a whole screenful of links to "examples/*" files. I suggest you have a look at these also.

— Ken


In reply to Re: How can one extract a name using perl? by kcott
in thread How can one extract a name using perl? by supriyoch_2008

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.