Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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
    </code>
  • Explore BioPerl and try to find the best module for your job by searching bioperl.org 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-09-02 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls