http://www.perlmonks.org?node_id=967100


in reply to How can I count the number and kinds of letters at 1st, 2nd and 3rd positions of 3-letter words in a string?

I've noticed the trend in your posts:

When I see that many questions on virtually the same topics (bioinformatics, strings, regular expressions), with little change in level of understanding of the Perl tools between posts, I start to think one of two things is at play here. Either this individual is just letting us solve his problems for him (I'm happy to dismiss this possibility for now, as just me being grumpy), or this individual needs not just an answer to his immediate question, but help learning the tools better so that he'll be better equipped to solve such problems on his own. Perhaps you really haven't been shown where to find the best information on the topics you're inquiring about. That's our fault, so here goes:

There are a number of free sources of information on regular expressions: perlrequick, perlretut, perlre.

Sources of information on conditionals and looping: perlintro, perlsyn

Sources of information on the substr function: substr.

Books about Bioinformatics, and using Perl to solve Bioinformatics problems: Beginning Perl for Bioinformatics, Mastering Perl for Bioinformatics, Developing Bioinformatics Computer Skills.

And I shouldn't forget to mention these gems: Learning Perl, and Mastering Regular Expressions.

There are many other books out there, but I picked these ones to help you narrow down the haystack to a few needles that will be most beneficial to you right now.

I think it would be accurate to say that if you were to spend a few hours with perlintro, perlrequick, perlretut, and substr, you would save yourself many more hours of trouble-shooting time in the longrun... time well spent. Furthermore, if you were to pick one or two of the books from the list above and spend a week or two with it, as well as a few days with all of the POD I linked to, you could become one of the Monastery's stronger Bioinformatics fonts of wisdom.


Dave

  • Comment on Re: How can I count the number and kinds of letters at 1st, 2nd and 3rd positions of 3-letter words in a string?
  • Download Code

Replies are listed 'Best First'.
Re^2: How can I count the number and kinds of letters at 1st, 2nd and 3rd positions of 3-letter words in a string?
by aaron_baugher (Curate) on Apr 25, 2012 at 17:14 UTC

    That brings up a question I've been wondering about: Obviously we get a lot of questions about mining bioinformatics data, from people in that business who are trying to become Perl programmers in their spare time. (There's nothing wrong with that, of course, although when I started learning Perl, I started with "hello world," not "mine gigabytes of data for complex character patterns.")

    So, with many bioinformatics folks doing it themselves, I figure there must be many more who would rather hire a programmer. I'd further guess that many wouldn't need a full-time person, just someone they can call to put together quick scripts. Is that what the pros here are seeing? Is there a large demand in the industry for Perl programmers? Would it make sense to study up on how the data works, to be able to promote oneself as a "bioinformatics data mining guy"?

    Aaron B.
    My Woefully Neglected Blog, where I occasionally mention Perl.

      Perl has always been a language dedicated to getting things done. While many of us (myself included) enjoy the exploration of deeper topics, many who use it are more interested in the result than in the tool used to obtain the result. There's nothing wrong with that. But as you've identified, it might benefit some of those people to hire someone. Nevertheless, one of Perl's strengths is that it is within reach of the "weekend mechanics" of programming. If you need to rebuild a car's transmission you'll probably send that out to a mechanic. But if all you're doing is changing brake pads or even building a go-cart with a lawn mower engine, you might tackle that yourself just because you can. That's one of Perl's strengths; the weekend programmer, non-CS student, sysadmin, biologist, and sales manager can all accomplish a lot with the "baby Perl" subset.

      As I attend Perl Mongers meetings, and as I work with clients, it's easy to forget that not everyone is building big web applications sitting on top of database abstractions and powerful frameworks. Not everyone has a release manager, version control, a QA department, unit testing requirements, and all those other things that are common in "the industry." Perl is used within the programming industry, but it's also heavily used just to get things done.

      Whether there's money to be had seeking contracts in the bioinformatics industry, I have no idea. I've always thought (perhaps wrongly so) that many of our bioinformatics questions are coming from academia, which is not necessarily a pot of gold.


      Dave

        Yes, I think the main reason Perl has been my favorite language for 15 years is that it's so useful for just "getting things done." In fact, that's why I asked my question: I much prefer that kind of "just get the results quickly" scripting over "building big web applications." Unfortunately, it seems harder to make a living from the former, but I'm always watching for that kind of work, while doing the web stuff to pay the bills.

        Aaron B.
        My Woefully Neglected Blog, where I occasionally mention Perl.

Re^2: How can I count the number and kinds of letters at 1st, 2nd and 3rd positions of 3-letter words in a string?
by Boldra (Deacon) on Apr 26, 2012 at 12:18 UTC

    Hi Dave, there is a third possibility when a user seems not to be learning anything: A shared account.



    - Boldra