420 likes | 579 Views
Structural Biology and Biocomputing Programme. Displaying NGS data Osvaldo Graña ograna@cnio.es Madrid, Marzo 2012. How to upload a BAM file to the browser?.
E N D
Structural Biology and Biocomputing Programme Displaying NGS data Osvaldo Graña ograna@cnio.es Madrid, Marzo 2012
How to upload a BAM file to the browser? BAM files are quite big, we cannot upload these files to the browser. But we can create an index file for the BAM file, this way the genome browser is able to upload only the information inside the BAM file for the region that we are visualizing. Steps: 1)create the INDEX file for the BAM file (with Samtools) cd samtools-0.1.18/misc/ samtools index ../../163adh.bam ****A new file was created '163adh.bam.bai', the BAM index file 3)put these two files together in a computer accesible from outside scp 163adh.bam* ograna@ubio:public_html/cursos/Master_Bioinformatica_2013/UCSC/
How to upload a BAM file to the browser? 4)Now we can access the files through an internet browser
How to upload a BAM file to the browser? 5)now we can create the new track in the browser **** remember that the reads comes from a human tissue
How to upload a BAM file to the browser? * adding the new track for the BAM file
How to upload a BAM file to the browser? * DEFINING the new track for the BAM file
How to upload a BAM file to the browser? * DEFINING the new track for the BAM file
How to upload a BAM file to the browser? * the new track is successfully defined and ready to use if we go back to the browser
How to upload a BAM file to the browser? * the reads contained in the BAM file are now shown in the browser, paste the following position: chr10:73590778-73591952
How to create a BED file from a BAM file with Bedtools 1)convert BAM to BED (original reads in the BAM are 40bp length) ./BEDTools-Version-2.16.1/bin/bedtools bamtobed -i 163adh.bam > 163adh.bed 3)edit the bed file and add the BED header as the first line
Uploading the BED file to the genome browser 1.- Select the proper genome and assembly (the reads come from a human tissue)
Uploading the BED file to the genome browser * click 'add custom tracks'
Uploading the BED file to the genome browser * select the BED file
Uploading the BED file to the genome browser * The BED file is correctly uploaded, now we go back to the browser
How to change the BED file coordinates to the latest assembly mm10 *For this exercise we are going to create first a NEW bed file directly in the browser in the mouse mm9 assembly
How to change the BED file coordinates to the latest assembly mm10 *Create a new bed file DIRECTLY in the browser: select mouse and the mm9 assembly
How to change the BED file coordinates to the latest assembly mm10 *Now we paste the coordinates for 3 theoretical reads
How to change the bed file coordinates to the latest assembly mm10 *we send the coordinates to create the new track
How to change the bed file coordinates to the latest assembly mm10 *the new track has been created, now we go back to the browser
How to change the bed file coordinates to the latest assembly mm10 *The reads that we created are shown in the 3'UTR of the mouse Mdm1 gene
How to change the bed file coordinates to the latest assembly mm10 *The reads that we created are shown in the 3'UTR of the mouse Mdm1 gene THESE COORDINATES ARE NOT VALID for the mouse MM10 assembly, we are going to check it now
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *Rebuilding the track using mm10 with the coodinates of mm9
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *Rebuilding the track using mm10 with the coodinates of mm9
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *Rebuilding the track using mm10 with the coodinates of mm9
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *Rebuilding the track using mm10 with the coodinates of mm9
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *In the mm10 assembly they are not over the Mdm1 gene anymore because coordinates has changed. We have to translate the coordinates from mm9 to mm10.
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly * We have to use the liftOver tool
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly * We have to use the liftOver tool
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly * We have to use the liftOver tool
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly * We have to use the liftOver tool
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly * We have to use the liftOver tool
The same coordinates of the reads in mm9 do not work with the mouse mm10 assembly *Converted coordinates
New coordinates for mouse mm10 assembly *We add now the new mm10 custom track with the new coordinates
New coordinates for mouse mm10 assembly *We add now the new mm10 custom track with the new coordinates
New coordinates for mouse mm10 assembly We add now the new mm10 custom track with the new coordinates
New coordinates for mouse mm10 assembly *Now we have the same reads shown in the same region of gene Mdm1 but in the latest mouse assembly mm10
Don't loose your data in the UCSC genome browser, create a user account
Don't loose your data in the UCSC genome browser, create a user account
Don't loose your data in the UCSC genome browser, create a user account
Don't loose your data in the UCSC genome browser, create a user account