Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

Comment on Re: How to make a Counter
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906970]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2016-02-14 23:18 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (471 votes), past polls