SlideShare a Scribd company logo
1 of 21
Download to read offline
Bioinformatics Training
Introduction to Perl Programming
Andrea Telatin
Andrea TelatinBecoming a Bioinformatician
We started with…
1. Most bioinformatics file formats are text files!
2. There are quite a few robust programs
3. Our goal is often to create a pipeline
4. For most pipelines we need some glue
Re-loading…
Re-loading…
BASH COMMANDS
BIO TOOLS
PERL
Andrea TelatinBecoming a Bioinformatician
Playing with the BASH
• Example 1:
• Download 3 to 5 PNG images from the web
• Install the program “ImageMagik” using the
repository (apt-get…)
BASH COMMANDS
Andrea TelatinBecoming a Bioinformatician
Playing with the BASH
• Move to the download images directory
• Type “convert -resize 50% image1.png small1.png”
• How to automate the process to create a smaller
version of all the images?
BASH COMMANDS
Andrea TelatinBecoming a Bioinformatician
Playing with the BASH
• Remember of the “man command”
• Never forget about google
BASH COMMANDS
Andrea TelatinBecoming a Bioinformatician
Playing with the BASH
• Now you should create a directory for today’s tasks
• Then download into it (using wget):
• http://www.telatin.com/reads.tar.gz
• http://www.telatin.com/amplicon.tar.gz
• The human chromosome 2 (hg19)
BASH COMMANDS
Andrea TelatinBecoming a Bioinformatician
Reads alignments
• Extract the .tar.gz archives using tar. Check via
google how to do this (tar is a strange program)
• Now we have to install bwa to align reads. We can
use the repository again.
BASH COMMANDS
BIO TOOLS
Andrea TelatinBecoming a Bioinformatician
Reads alignments
• Create an index:

bwa index genome.fa
• Align reads:

bwa mem genome.fa reads.fastq > output.sam
BASH COMMANDS
BIO TOOLS
Andrea TelatinBecoming a Bioinformatician
SAMtools
• Download them via the repository
• SAM to BAM pipeline:
• samtools view -bS file.sam > file.bam
• samtools sort file.bam sorted_file
• samtools index sorted_file.bam
BASH COMMANDS
BIO TOOLS
Andrea TelatinBecoming a Bioinformatician
IGV
• DON’T Download it via the repository. Download it
from the internet!
• Unzip it into a directory (eg: IGV in your home)
• Launch it with the terminal: “sh igv.sh”
BASH COMMANDS
BIO TOOLS
Andrea TelatinBecoming a Bioinformatician
IGV
• Load as genome the human chromosome 2
• Load as tracks both the BED and the BAM files
BASH COMMANDS
BIO TOOLS
Andrea TelatinBecoming a Bioinformatician
BASH COMMANDS
BIO TOOLSBED/GFF
VCF
BAM
Programming:

an introduction
ANDS
OOLS
PERL
INPUT (files, parameters)



ELABORATION (steps to transform the input)
!
OUTPUT (files, text…)
INPUT (files, parameters)



ELABORATION (steps to transform the input)
!
OUTPUT (files, text…)
Try thinking about “grep” or “head”
Imitare i programmi della shell è un buon modo per farne!
di validi.!
I programmi della shell:
• Hanno una guida (documentazione)
• Hanno dei comportamenti standardizzati (si imparano

in fretta una volta imparati questi standard)
• Sono robusti (controllano l’input, danno errori che ci

aiutano a lanciarli correttamente)
Programmare significa saper scomporre il !
nostro obiettivo in passaggi !
che un computer possa effettuare.
Programming:

a live introduction
http://www.codepad.org/
Possiamo usare per le piccole “prove”
un sistema online per interpretare codice Perl

More Related Content

Similar to Bioinformatica: introduzione (BMR Genomics) - Lezione 25 luglio 2014

SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony AppsSymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony AppsPablo Godel
 
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
Symfony Live NYC 2014 -  Rock Solid Deployment of Symfony AppsSymfony Live NYC 2014 -  Rock Solid Deployment of Symfony Apps
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony AppsPablo Godel
 
Django dev-env-my-way
Django dev-env-my-wayDjango dev-env-my-way
Django dev-env-my-wayRobert Lujo
 
Tiny Puppet Can Install Everything. Prove me wrong!
Tiny Puppet Can Install Everything. Prove me wrong!Tiny Puppet Can Install Everything. Prove me wrong!
Tiny Puppet Can Install Everything. Prove me wrong!Alessandro Franceschi
 
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...The University of Queensland
 
You need a PROcess to catch running processes and their modules_v2.0
You need a PROcess to catch running processes and their modules_v2.0You need a PROcess to catch running processes and their modules_v2.0
You need a PROcess to catch running processes and their modules_v2.0Michael Gough
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python courseEran Shlomo
 
Run python from windows taskscheduler
Run python from windows taskschedulerRun python from windows taskscheduler
Run python from windows taskschedulerNorifumi Irie
 
Making the most of your Test Suite
Making the most of your Test SuiteMaking the most of your Test Suite
Making the most of your Test Suiteericholscher
 
Creating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareCreating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareB1 Systems GmbH
 
Java build tools
Java build toolsJava build tools
Java build toolsSujit Kumar
 
2600 av evasion_deuce
2600 av evasion_deuce2600 av evasion_deuce
2600 av evasion_deuceDb Cooper
 
2014 manchester-reproducibility
2014 manchester-reproducibility2014 manchester-reproducibility
2014 manchester-reproducibilityc.titus.brown
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneVincenzo Barone
 

Similar to Bioinformatica: introduzione (BMR Genomics) - Lezione 25 luglio 2014 (20)

SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony AppsSymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
 
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
Symfony Live NYC 2014 -  Rock Solid Deployment of Symfony AppsSymfony Live NYC 2014 -  Rock Solid Deployment of Symfony Apps
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
 
Django dev-env-my-way
Django dev-env-my-wayDjango dev-env-my-way
Django dev-env-my-way
 
Tiny Puppet Can Install Everything. Prove me wrong!
Tiny Puppet Can Install Everything. Prove me wrong!Tiny Puppet Can Install Everything. Prove me wrong!
Tiny Puppet Can Install Everything. Prove me wrong!
 
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
Australian Bioinformatics Conference (ABiC) 2014 Talk - Doing bioinformatics ...
 
Supply Chainsaw
Supply ChainsawSupply Chainsaw
Supply Chainsaw
 
Deep Dive into BPjs
Deep Dive into BPjsDeep Dive into BPjs
Deep Dive into BPjs
 
You need a PROcess to catch running processes and their modules_v2.0
You need a PROcess to catch running processes and their modules_v2.0You need a PROcess to catch running processes and their modules_v2.0
You need a PROcess to catch running processes and their modules_v2.0
 
B wapp – bee bug – installation
B wapp – bee bug – installationB wapp – bee bug – installation
B wapp – bee bug – installation
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
bios booting process
bios booting processbios booting process
bios booting process
 
Run python from windows taskscheduler
Run python from windows taskschedulerRun python from windows taskscheduler
Run python from windows taskscheduler
 
Making the most of your Test Suite
Making the most of your Test SuiteMaking the most of your Test Suite
Making the most of your Test Suite
 
py4inf-01-intro.ppt
py4inf-01-intro.pptpy4inf-01-intro.ppt
py4inf-01-intro.ppt
 
Creating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre softwareCreating a dynamic software deployment solution using free/libre software
Creating a dynamic software deployment solution using free/libre software
 
Subversion and bugtracker
Subversion and bugtrackerSubversion and bugtracker
Subversion and bugtracker
 
Java build tools
Java build toolsJava build tools
Java build tools
 
2600 av evasion_deuce
2600 av evasion_deuce2600 av evasion_deuce
2600 av evasion_deuce
 
2014 manchester-reproducibility
2014 manchester-reproducibility2014 manchester-reproducibility
2014 manchester-reproducibility
 
Where's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind PloneWhere's the source, Luke? : How to find and debug the code behind Plone
Where's the source, Luke? : How to find and debug the code behind Plone
 

More from Andrea Telatin

Next Generation Sequencing revolution (February 2010 - PhD retreat)
Next Generation Sequencing revolution (February 2010 - PhD retreat)Next Generation Sequencing revolution (February 2010 - PhD retreat)
Next Generation Sequencing revolution (February 2010 - PhD retreat)Andrea Telatin
 
A primer on microbial diversity: 16S Amplicons analysis
A primer on microbial diversity: 16S Amplicons analysisA primer on microbial diversity: 16S Amplicons analysis
A primer on microbial diversity: 16S Amplicons analysisAndrea Telatin
 
Flash introduction to Qiime2 -- 16S Amplicon analysis
Flash introduction to Qiime2 -- 16S Amplicon analysisFlash introduction to Qiime2 -- 16S Amplicon analysis
Flash introduction to Qiime2 -- 16S Amplicon analysisAndrea Telatin
 
First adventure within a shell - Andrea Telatin at Quadram Institute
First adventure within a shell - Andrea Telatin at Quadram InstituteFirst adventure within a shell - Andrea Telatin at Quadram Institute
First adventure within a shell - Andrea Telatin at Quadram InstituteAndrea Telatin
 
Sequenziamento ed assemblaggio di genomi batterici
Sequenziamento ed assemblaggio di genomi battericiSequenziamento ed assemblaggio di genomi batterici
Sequenziamento ed assemblaggio di genomi battericiAndrea Telatin
 
Laboratorio di Biologia Molecolare I - UniPD - 2010
Laboratorio di Biologia Molecolare I - UniPD - 2010Laboratorio di Biologia Molecolare I - UniPD - 2010
Laboratorio di Biologia Molecolare I - UniPD - 2010Andrea Telatin
 
Uno sguardo al microbioma degli Italiani
Uno sguardo al microbioma degli ItalianiUno sguardo al microbioma degli Italiani
Uno sguardo al microbioma degli ItalianiAndrea Telatin
 
PHP 7.0 new features (and new interpreter)
PHP 7.0 new features (and new interpreter)PHP 7.0 new features (and new interpreter)
PHP 7.0 new features (and new interpreter)Andrea Telatin
 
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR Genomics
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR GenomicsTarget Enrichment with NGS: Cardiomyopathy as a case study - BMR Genomics
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR GenomicsAndrea Telatin
 
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...Andrea Telatin
 
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...Andrea Telatin
 
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014Andrea Telatin
 
Introduction to 16S Analysis with NGS - BMR Genomics
Introduction to 16S Analysis with NGS - BMR GenomicsIntroduction to 16S Analysis with NGS - BMR Genomics
Introduction to 16S Analysis with NGS - BMR GenomicsAndrea Telatin
 

More from Andrea Telatin (13)

Next Generation Sequencing revolution (February 2010 - PhD retreat)
Next Generation Sequencing revolution (February 2010 - PhD retreat)Next Generation Sequencing revolution (February 2010 - PhD retreat)
Next Generation Sequencing revolution (February 2010 - PhD retreat)
 
A primer on microbial diversity: 16S Amplicons analysis
A primer on microbial diversity: 16S Amplicons analysisA primer on microbial diversity: 16S Amplicons analysis
A primer on microbial diversity: 16S Amplicons analysis
 
Flash introduction to Qiime2 -- 16S Amplicon analysis
Flash introduction to Qiime2 -- 16S Amplicon analysisFlash introduction to Qiime2 -- 16S Amplicon analysis
Flash introduction to Qiime2 -- 16S Amplicon analysis
 
First adventure within a shell - Andrea Telatin at Quadram Institute
First adventure within a shell - Andrea Telatin at Quadram InstituteFirst adventure within a shell - Andrea Telatin at Quadram Institute
First adventure within a shell - Andrea Telatin at Quadram Institute
 
Sequenziamento ed assemblaggio di genomi batterici
Sequenziamento ed assemblaggio di genomi battericiSequenziamento ed assemblaggio di genomi batterici
Sequenziamento ed assemblaggio di genomi batterici
 
Laboratorio di Biologia Molecolare I - UniPD - 2010
Laboratorio di Biologia Molecolare I - UniPD - 2010Laboratorio di Biologia Molecolare I - UniPD - 2010
Laboratorio di Biologia Molecolare I - UniPD - 2010
 
Uno sguardo al microbioma degli Italiani
Uno sguardo al microbioma degli ItalianiUno sguardo al microbioma degli Italiani
Uno sguardo al microbioma degli Italiani
 
PHP 7.0 new features (and new interpreter)
PHP 7.0 new features (and new interpreter)PHP 7.0 new features (and new interpreter)
PHP 7.0 new features (and new interpreter)
 
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR Genomics
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR GenomicsTarget Enrichment with NGS: Cardiomyopathy as a case study - BMR Genomics
Target Enrichment with NGS: Cardiomyopathy as a case study - BMR Genomics
 
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...
Bioinformatica: Esercizi su Perl, espressioni regolari e altre amenità (BMR G...
 
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...
Bioinformatica: Leggere file con Perl, e introduzione alle espressioni regola...
 
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014
Introduzione al Perl (BMR Genomics) - Lezione 1 Agosto 2014
 
Introduction to 16S Analysis with NGS - BMR Genomics
Introduction to 16S Analysis with NGS - BMR GenomicsIntroduction to 16S Analysis with NGS - BMR Genomics
Introduction to 16S Analysis with NGS - BMR Genomics
 

Recently uploaded

Mining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxMining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxKyawThanTint
 
NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.syedmuneemqadri
 
Film Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfFilm Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfPharmatech-rx
 
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeGBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeAreesha Ahmad
 
Isolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxIsolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxGOWTHAMIM22
 
The Scientific names of some important families of Industrial plants .pdf
The Scientific names of some important families of Industrial plants .pdfThe Scientific names of some important families of Industrial plants .pdf
The Scientific names of some important families of Industrial plants .pdfMohamed Said
 
GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)Areesha Ahmad
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent Universitypablovgd
 
The solar dynamo begins near the surface
The solar dynamo begins near the surfaceThe solar dynamo begins near the surface
The solar dynamo begins near the surfaceSérgio Sacani
 
Lec 1.b Totipotency and birth of tissue culture.ppt
Lec 1.b Totipotency and birth of tissue culture.pptLec 1.b Totipotency and birth of tissue culture.ppt
Lec 1.b Totipotency and birth of tissue culture.pptasifali1111
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpSérgio Sacani
 
Erythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C KalyanErythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C Kalyanmuralinath2
 
Errors: types, determination and elimination
Errors: types, determination and eliminationErrors: types, determination and elimination
Errors: types, determination and eliminationArunLakshmiMeenakshi
 
Plasma proteins_ Dr.Muralinath_Dr.c. kalyan
Plasma proteins_ Dr.Muralinath_Dr.c. kalyanPlasma proteins_ Dr.Muralinath_Dr.c. kalyan
Plasma proteins_ Dr.Muralinath_Dr.c. kalyanmuralinath2
 
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfMODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfRevenJadePalma
 
Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!University of Hertfordshire
 
GBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interactionGBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interactionAreesha Ahmad
 
SCHISTOSOMA HEAMATOBIUM life cycle .pdf
SCHISTOSOMA HEAMATOBIUM life cycle  .pdfSCHISTOSOMA HEAMATOBIUM life cycle  .pdf
SCHISTOSOMA HEAMATOBIUM life cycle .pdfDebdattaGhosh6
 
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...Sahil Suleman
 
GBSN - Microbiology Lab (Microbiology Lab Safety Procedures)
GBSN -  Microbiology Lab (Microbiology Lab Safety Procedures)GBSN -  Microbiology Lab (Microbiology Lab Safety Procedures)
GBSN - Microbiology Lab (Microbiology Lab Safety Procedures)Areesha Ahmad
 

Recently uploaded (20)

Mining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptxMining Activity and Investment Opportunity in Myanmar.pptx
Mining Activity and Investment Opportunity in Myanmar.pptx
 
NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.NUMERICAL Proof Of TIme Electron Theory.
NUMERICAL Proof Of TIme Electron Theory.
 
Film Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdfFilm Coated Tablet and Film Coating raw materials.pdf
Film Coated Tablet and Film Coating raw materials.pdf
 
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday LifeGBSN - Microbiology (Unit 7) Microbiology in Everyday Life
GBSN - Microbiology (Unit 7) Microbiology in Everyday Life
 
Isolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptxIsolation of AMF by wet sieving and decantation method pptx
Isolation of AMF by wet sieving and decantation method pptx
 
The Scientific names of some important families of Industrial plants .pdf
The Scientific names of some important families of Industrial plants .pdfThe Scientific names of some important families of Industrial plants .pdf
The Scientific names of some important families of Industrial plants .pdf
 
GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)GBSN - Microbiology Lab (Compound Microscope)
GBSN - Microbiology Lab (Compound Microscope)
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent University
 
The solar dynamo begins near the surface
The solar dynamo begins near the surfaceThe solar dynamo begins near the surface
The solar dynamo begins near the surface
 
Lec 1.b Totipotency and birth of tissue culture.ppt
Lec 1.b Totipotency and birth of tissue culture.pptLec 1.b Totipotency and birth of tissue culture.ppt
Lec 1.b Totipotency and birth of tissue culture.ppt
 
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 RpWASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
WASP-69b’s Escaping Envelope Is Confined to a Tail Extending at Least 7 Rp
 
Erythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C KalyanErythropoiesis- Dr.E. Muralinath-C Kalyan
Erythropoiesis- Dr.E. Muralinath-C Kalyan
 
Errors: types, determination and elimination
Errors: types, determination and eliminationErrors: types, determination and elimination
Errors: types, determination and elimination
 
Plasma proteins_ Dr.Muralinath_Dr.c. kalyan
Plasma proteins_ Dr.Muralinath_Dr.c. kalyanPlasma proteins_ Dr.Muralinath_Dr.c. kalyan
Plasma proteins_ Dr.Muralinath_Dr.c. kalyan
 
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdfMODERN PHYSICS_REPORTING_QUANTA_.....pdf
MODERN PHYSICS_REPORTING_QUANTA_.....pdf
 
Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!Quantifying Artificial Intelligence and What Comes Next!
Quantifying Artificial Intelligence and What Comes Next!
 
GBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interactionGBSN - Microbiology (Unit 6) Human and Microbial interaction
GBSN - Microbiology (Unit 6) Human and Microbial interaction
 
SCHISTOSOMA HEAMATOBIUM life cycle .pdf
SCHISTOSOMA HEAMATOBIUM life cycle  .pdfSCHISTOSOMA HEAMATOBIUM life cycle  .pdf
SCHISTOSOMA HEAMATOBIUM life cycle .pdf
 
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
Alternative method of dissolution in-vitro in-vivo correlation and dissolutio...
 
GBSN - Microbiology Lab (Microbiology Lab Safety Procedures)
GBSN -  Microbiology Lab (Microbiology Lab Safety Procedures)GBSN -  Microbiology Lab (Microbiology Lab Safety Procedures)
GBSN - Microbiology Lab (Microbiology Lab Safety Procedures)
 

Bioinformatica: introduzione (BMR Genomics) - Lezione 25 luglio 2014

  • 1. Bioinformatics Training Introduction to Perl Programming Andrea Telatin
  • 2. Andrea TelatinBecoming a Bioinformatician We started with… 1. Most bioinformatics file formats are text files! 2. There are quite a few robust programs 3. Our goal is often to create a pipeline 4. For most pipelines we need some glue
  • 5. Andrea TelatinBecoming a Bioinformatician Playing with the BASH • Example 1: • Download 3 to 5 PNG images from the web • Install the program “ImageMagik” using the repository (apt-get…) BASH COMMANDS
  • 6. Andrea TelatinBecoming a Bioinformatician Playing with the BASH • Move to the download images directory • Type “convert -resize 50% image1.png small1.png” • How to automate the process to create a smaller version of all the images? BASH COMMANDS
  • 7. Andrea TelatinBecoming a Bioinformatician Playing with the BASH • Remember of the “man command” • Never forget about google BASH COMMANDS
  • 8. Andrea TelatinBecoming a Bioinformatician Playing with the BASH • Now you should create a directory for today’s tasks • Then download into it (using wget): • http://www.telatin.com/reads.tar.gz • http://www.telatin.com/amplicon.tar.gz • The human chromosome 2 (hg19) BASH COMMANDS
  • 9. Andrea TelatinBecoming a Bioinformatician Reads alignments • Extract the .tar.gz archives using tar. Check via google how to do this (tar is a strange program) • Now we have to install bwa to align reads. We can use the repository again. BASH COMMANDS BIO TOOLS
  • 10. Andrea TelatinBecoming a Bioinformatician Reads alignments • Create an index:
 bwa index genome.fa • Align reads:
 bwa mem genome.fa reads.fastq > output.sam BASH COMMANDS BIO TOOLS
  • 11. Andrea TelatinBecoming a Bioinformatician SAMtools • Download them via the repository • SAM to BAM pipeline: • samtools view -bS file.sam > file.bam • samtools sort file.bam sorted_file • samtools index sorted_file.bam BASH COMMANDS BIO TOOLS
  • 12. Andrea TelatinBecoming a Bioinformatician IGV • DON’T Download it via the repository. Download it from the internet! • Unzip it into a directory (eg: IGV in your home) • Launch it with the terminal: “sh igv.sh” BASH COMMANDS BIO TOOLS
  • 13. Andrea TelatinBecoming a Bioinformatician IGV • Load as genome the human chromosome 2 • Load as tracks both the BED and the BAM files BASH COMMANDS BIO TOOLS
  • 14. Andrea TelatinBecoming a Bioinformatician BASH COMMANDS BIO TOOLSBED/GFF VCF BAM
  • 16. INPUT (files, parameters)
 
 ELABORATION (steps to transform the input) ! OUTPUT (files, text…)
  • 17. INPUT (files, parameters)
 
 ELABORATION (steps to transform the input) ! OUTPUT (files, text…) Try thinking about “grep” or “head”
  • 18. Imitare i programmi della shell è un buon modo per farne! di validi.! I programmi della shell: • Hanno una guida (documentazione) • Hanno dei comportamenti standardizzati (si imparano
 in fretta una volta imparati questi standard) • Sono robusti (controllano l’input, danno errori che ci
 aiutano a lanciarli correttamente)
  • 19. Programmare significa saper scomporre il ! nostro obiettivo in passaggi ! che un computer possa effettuare.
  • 21. http://www.codepad.org/ Possiamo usare per le piccole “prove” un sistema online per interpretare codice Perl