20170519 class lecture note

From Biolecture.org
Revision as of 12:55, 20 May 2017 by imported>Jeonghu Kim (Created page with "<p><span style="font-size:20px">2017.05.19 Bioinformatics class lecture note</span>.</p> <hr /> <p>Topic : Bioprogramming</p> <p>> Today, we mainly talk about definition of ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

2017.05.19 Bioinformatics class lecture note.


Topic : Bioprogramming

> Today, we mainly talk about definition of bioprogramming, some Perl functions and 'grammar'.


1. Some Perl functions

  • #!/usr/bin/perl : As the Perl is a program, we need to load to use it. This code meens load and make a new script.
  • use : A calling function. We also need some 'rules' for using and handling codes, so by use 'use' function, load the set of rules.
    • ex) use strict / warning
    • At the above codes, 'strict' and 'warning' are  'library'; by definition of the professor, it's 'a set of books', but in the programming, 'a set of rules' for handling the Perl program comfortably.
  • my* : Function restricting a boundary of a section. Computer has memory divided as sections, and when we use the function, we can make or define a variable's boundary.
    • ex ) my $Bioinformatics
  • Also there are some types of variables.
    • @ : array ( sets in a box; the 'a' means 'array' and a circle surrounding 'a' means box. It's easy to understand when imagining the mathematical array form.)
      • ex) ( 1, 2, 3, ... )
    • % : hash ( divided key and value. A circle is a key and the another is a value.)
      • ex) ( 1, 2 / 3, 4 / .... )
    • $ : scaler ( just simply, one unit. 'S' means the name 'Scaler' and the bar means 'one'.)
      • ex) 1, 2, 3 ....
  •