091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §introduction to python...

8
Outline § Introduction to Python § Exercise 5: Getting started in Python 1

Upload: others

Post on 01-Aug-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Outline§ Introduction to Python

§ Exercise 5: Getting started in Python

1

Page 2: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Programming languages commonly used in bioinformatics:

§ Python (Biopython)§ Perl (BioPerl)§ R (Bioconductor)§ C§ C++§ Java§ Ruby§ MATLAB (Software with GUI)

Bioinformatics programming languages

Scripting languages: general purpose programming languages that support scripts, short programs that automate a task. Typically the code used in scripting languages is interpreted by software during run time, as opposed to lower level languages in which code has to be compiled before execution. 2

Page 3: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Why learn a programming language?

3

Page 4: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

§ Very versatile.

§ Easy to read syntax (structure of commands) and semantics (meaning

of commands).

§ A high level interpreted language – code is processed at runtime.

§ Python is a great for beginners and advanced programmers.

§ Lots of resources for general programing and computational biology.

§ It’s fun!

§ It’s empowering.

§ It’s a desirable skill that looks good on your CV/resume.

Why Python?

4

Page 5: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Python can be used to build just about anything (although not always the best or fastest option)!

§ Backend web development

§ Data analysis

§ Productivity/automation tools

§ Stitching programs together into pipelines

§ Games

§ Apps

What is Python good for?

5

Page 6: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Python is easily the top general purpose interpreted language

Open source projects

Perl

Python

Andrew Binstock, 2014

6

Page 7: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

7

Goals for the next three class meetings:

1. Become familiar with computer programming concepts.

2. Be able to accomplish some very simple computational tasks using Python.

3. Establish a framework upon which you can learn how to code if you so desire.

Page 8: 091219 python introrna.colostate.edu/2019/lib/exe/fetch.php?media=... · §Introduction to Python §Exercise 5: Getting started in Python 1. Programming languages commonly used in

Exercise 5:

§ Download Ex 5 and launch it in Jupyter Notebook

8