Introduction to Python

Bioinformatics Platform


2025 - Training session

Introduction to Python





Introduction to Python


Help for installation
Workshop supports

Specific supports


Useful packages

logo_r_adv

Useful modules:
Methods and modules cheeatsheets:

Modules:
  • import os
    os: This module provides a way to interact with the operating system. It allows you to perform operations such as manipulating files and directories, retrieving environment information, and more.
    ->How to use OS
  • import sys
    sys: This module allows you to interact with the Python interpreter and provides functions and variables to manipulate different parts of the Python runtime environment.
    ->How to use sys
  • import math
    math: This module provides basic mathematical functions like trigonometric, logarithmic functions, etc.
    ->How to use math
  • import datetime
    datetime: This module provides classes for manipulating dates and times.
    ->How to use datetime
  • import random
    random: This module allows you to generate random numbers and choose elements randomly.
    ->How to use random
  • import re
    re: This module provides tools for working with regular expressions, allowing you to search and manipulate strings.
    ->How to use re / RegEx
    Cheatsheet


Pandas and NumPy

logo_r_adv

Pandas
Install with: pip install pandas
Load with: import pandas as pd



logo_r_dv

NumPy
Install with: pip install numpy
Load with: import numpy as np



logo_r_dv

  • Scipy
    Included with NumPy.
    Load with: import scipy
  • Cheatsheet: SciPy.pdf
Matplotlib, Plotly and Seaborn

logo_python_adv

Matplotlib
Install with: pip install matplotlib
Load with: import matplotlib as mpl



logo_python_adv

Seaborn
Install with: pip install seaborn
Load with: import seaborn as sns



logo_python_adv

Plotly
Install with: pip install plotly
Load with: import plotly.express as px



Contact us


Drop-in hours:

Come to meet us Wednesdays from 1pm to 3pm!


To discover more about the Bioinformatics Platform, visit our website


phone

514-934-1934, ext. 76406

address

Glen site, ES1.5500
Research Institute of the McGill University Health Center
1001 Bd Décarie, Montréal, QC H4A 3J1