![]() Usrbinperl -w Calculating the reverse complement of a strand of DNA Calculating the reverse complement of a strand of DNA As youll see, it first tries one method, which fails, and then tries another method, which succeeds.Įxample 4-4. Searching a database with some query DNA, it is common to automatically search for the reverse complement of the query as well, since you may have in hand the opposite strand Such a calculation is an important part of many bioinformatics applications. Pretty straightforward to write a program that, given one strand, prints out the other. Given the close relationship between the two strands of DNA in a double helix, it turns out that its , a DNA polymer is composed of nucleotides. Exploring the documentation is a great way to get up to speed on the Perl language.Ĥ.6 Calculating the Reverse Complement in Perl Languages, but you may find them very useful. They occasionally assume more than a beginners knowledge about programming The Perl documentation also includes several tutorials that can be a great help in learning Perl. But then comes a bunch of gibberish or so it seems at this point in your learning curve Filehandles? Output streams? List context?Īll this information is necessary in documentation after all, you need to get the whole story somewhere Usually you can ignore what doesnt make sense. For instance, the documentation for the print function starts out: Prints a string or a comma-separated list of strings. The documentation tends to give the entire story in aĬoncise form, and this can be daunting for beginners. Once youve got the documentation on your screen, you may find that reading it answers some questions but raises others. This is usually the quickest way to extract what you need to know. Now click on Print to view theĬheck out the examples they give to see how the language feature is actually used. Once youve found this page, you may want toīookmark it in your browser, as you may find yourself turning to it frequently. Youll see a rather lengthy alphabetical listing of Perls functions. Select Perls Builtinįunctions and then Alphabetical Listing of Perls Functions. Just to try it out, lets look up the print operator. SeeĪppendix A for more discussion about different sources of Perlĭocumentation. Thats the version I refer to in this book. Perl documentation may come in slightly different forms on your computer system, but the web version is the same for everybody. It should be installed on your computer, and it may also be found on the Internet at the Perl site. ![]() RegularĮxpressions are the key to text manipulation, one of the most powerful features of Perl as youll see in later chapters.Ī Perl programmers most important resource is the Perl documentation. The substitution operator is an example of the use of regular expressions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |