Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: How to make a Counter

by tospo (Hermit)
on May 27, 2011 at 11:19 UTC ( #906970=note: print w/replies, xml ) Need Help??

in reply to How to make a Counter

Just a few hints because you are new here:

  • People on this forum are not all familiar with biological jargon, so you can't expect everybody to know what a geneID is or to recognise the file format you are posting. Try to describe your problems in a way that everybody will udnerstand ('I have a text file with the following format and I want to count how many times the following text occurs..')
  • As said above, put code tags around the bits of your post where formatting should be preserved as you paste it:
    < code >
    Some formatted text here
  • Explore BioPerl and try to find the best module for your job by searching or join the bioperl mailing lists where you can ask people who know both Perl and biology.
  • In this case - and that is often the case - you might get away with a simply command line tool if you are on a UNIX based system (including Mac). For example: the 'grep' command can find a specific string in a file and, with the -c option, counts it for you, like so:
    $ grep -c Glyma05g00620.1 THE_NAME_OF_YOUR_FILE_HERE

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906970]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-01-22 13:15 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.