Learn about the Browser: Difference between revisions
From genomewiki
Jump to navigationJump to search
(changed cse to soe) |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
== Use the browser website == | == Use the browser website == | ||
* Bob Kuhn is giving workshops throughout the year | * Bob Kuhn is giving workshops throughout the year at several US conferences, in Europe, Australia and Asia | ||
** | ** Read about how to [http://genome.ucsc.edu/training/ | host] | ||
* Video tutorials and slides by [http://www.openhelix.com/downloads/ucsc/ucsc_home.shtml Openhelix] | * Video tutorials and slides by [http://www.openhelix.com/downloads/ucsc/ucsc_home.shtml Openhelix] | ||
* An introduction on [http://www.nature.com/scitable/ebooks/guide-to-the-ucsc-genome-browser-16569863/contents Nature Education] | * An introduction on [http://www.nature.com/scitable/ebooks/guide-to-the-ucsc-genome-browser-16569863/contents Nature Education] | ||
* Basic materials written by the gurus: The [http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html User's guide] and the [http://genome.ucsc.edu/FAQ/ FAQs]. | * Basic materials written by the gurus: The [http://genome.ucsc.edu/goldenPath/help/hgTracksHelp.html User's guide] and the [http://genome.ucsc.edu/FAQ/ FAQs]. | ||
* View a [ | * View a [http://genome.ucsc.edu/cgi-bin/hgPublicSessions gallery] of browser sessions that highlight interesting data sets. | ||
* Type in (manually) a couple of [http://genome.ucsc.edu/FAQ/FAQcustom custom tracks] in [http://genome.ucsc.edu/FAQ/FAQformat.html different formats] (just try bed for a start, you mostly won't need the others) | * Type in (manually) a couple of [http://genome.ucsc.edu/FAQ/FAQcustom custom tracks] in [http://genome.ucsc.edu/FAQ/FAQformat.html different formats] (just try bed for a start, you mostly won't need the others) | ||
** Try typing "chr1 1 1000 Hello_World!" as a custom track | ** Try typing "chr1 1 1000 Hello_World!" as a custom track | ||
Line 14: | Line 14: | ||
== Download the data of the genome browser (sequences and annotations) == | == Download the data of the genome browser (sequences and annotations) == | ||
* Be aware that internal coordinates (not those shown on the website) are [[Coordinate_Transforms|0-based]]! | * Be aware that internal coordinates (not those shown on the website) are [[Coordinate_Transforms|0-based]]! (only exception: wiggle) | ||
* Unlike Gbrowse and Ensembl, UCSC is storing the data partially in SQL (coordiantes, outline of x-y-plots) and partially in flat text files (sequences, alignments, details of x-y-plots) | * Unlike Gbrowse and Ensembl, UCSC is storing the data partially in SQL (coordiantes, outline of x-y-plots) and partially in flat text files (sequences, alignments, details of x-y-plots) | ||
* Table Browser: The easiest way to access data (you don't have to care whether data is stored in MySQL or in textfiles): | * Table Browser: The easiest way to access data (you don't have to care whether data is stored in MySQL or in textfiles): | ||
Line 21: | Line 21: | ||
** [http://genome.ucsc.edu/FAQ/FAQdownloads#download29 Public mysql access] | ** [http://genome.ucsc.edu/FAQ/FAQdownloads#download29 Public mysql access] | ||
** [[Image:Kent_allJoiner.ppt|The all.joiner file]], describes relations between all database tables | ** [[Image:Kent_allJoiner.ppt|The all.joiner file]], describes relations between all database tables | ||
** For all genes-related tables, there is a [http://genome-test. | ** For all genes-related tables, there is a [http://genome-test.soe.ucsc.edu/images/knownGeneSchema.gif graphical map] (sub-optimal layout :-) | ||
* Flat-file data: Download from the [http://genome.ucsc.edu/FAQ/FAQdownloads#download1 ftp server] (stored in /gbdb on browser servers) | * Flat-file data: Download from the [http://genome.ucsc.edu/FAQ/FAQdownloads#download1 ftp server] (stored in /gbdb on browser servers) | ||
** [http://genome.ucsc.edu/FAQ/FAQformat.html Text file formats] | ** [http://genome.ucsc.edu/FAQ/FAQformat.html Text file formats] | ||
Line 37: | Line 37: | ||
** [[Cookie_Session|How are cookies handled by the browser?]] | ** [[Cookie_Session|How are cookies handled by the browser?]] | ||
** [[Category:Mirror_Site_FAQ|All other documents in this category]] | ** [[Category:Mirror_Site_FAQ|All other documents in this category]] | ||
** The [http://genome-test. | ** The [http://genome-test.soe.ucsc.edu/eng/ old documentation website with developer documentation] | ||
**[[Running your own gfServer]] (=BLAT server), needed in cases where you don't want or cannot use the UCSC BLAT servers. | **[[Running your own gfServer]] (=BLAT server), needed in cases where you don't want or cannot use the UCSC BLAT servers. | ||
Line 45: | Line 45: | ||
* General introduction to the [[the source tree]] | * General introduction to the [[the source tree]] | ||
* What is documented to be available in the [[Kent source utilities]] | * What is documented to be available in the [[Kent source utilities]] | ||
** ... and what is [http://hgwdev. | ** ... and what is [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/sources really available] in the source tree? | ||
* Some important tools are already compiled (even for windows!) [http://hgdownload. | * Some important tools are already compiled (even for windows!) [http://hgdownload.soe.ucsc.edu/admin/exe/ from here] | ||
* [http://genome.ucsc.edu/admin/jk-install.html Compile all tools (includes the browser webserver)] yourself | * [http://genome.ucsc.edu/admin/jk-install.html Compile all tools (includes the browser webserver)] yourself | ||
** The best starting point is the main zipfile: http://hgdownload. | ** The best starting point is the main zipfile: http://hgdownload.soe.ucsc.edu/admin/jksrc.zip | ||
** You need to set some [[Build_Environment_Variables|environment variables]] before you start the compilation | ** You need to set some [[Build_Environment_Variables|environment variables]] before you start the compilation | ||
** Walkthroughs for... | ** Walkthroughs for... | ||
Line 57: | Line 57: | ||
** The most common problem on the mailing list are harmless warnings that trigger errors. "cc1: warnings being treated as errors". To ignore them, which is usually safe, [https://lists.soe.ucsc.edu/pipermail/genome-mirror/2006-November/000251.html remove the -Wall option from the makefile] | ** The most common problem on the mailing list are harmless warnings that trigger errors. "cc1: warnings being treated as errors". To ignore them, which is usually safe, [https://lists.soe.ucsc.edu/pipermail/genome-mirror/2006-November/000251.html remove the -Wall option from the makefile] | ||
** See also the textfile README.building.source [http://hgwdev. | ** See also the textfile README.building.source [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/product/README.building.source README.building.source] | ||
** [http://genome.ucsc.edu/contacts.html Search through the archives] or the [[:Category:Technical FAQ| Technical-FAQ-Category of the wiki]] when you have problems | ** [http://genome.ucsc.edu/contacts.html Search through the archives] or the [[:Category:Technical FAQ| Technical-FAQ-Category of the wiki]] when you have problems | ||
** Send an email to the mailing list if you cannot find the answer yourself | ** Send an email to the mailing list if you cannot find the answer yourself | ||
Line 71: | Line 71: | ||
** [http://www.soe.ucsc.edu/~sugnet/doc/trackHowto/browserTalk.pdf Charles Sugnet's presentation about TrackDB] | ** [http://www.soe.ucsc.edu/~sugnet/doc/trackHowto/browserTalk.pdf Charles Sugnet's presentation about TrackDB] | ||
** [[How_to_add_a_track_to_a_mirror]] | ** [[How_to_add_a_track_to_a_mirror]] | ||
** [http://hgwdev. | ** [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/product/README.trackDb The structure of the trackDB] | ||
** [http://hgwdev. | ** [http://hgwdev.osoe.ucsc.edu/~kent/src/unzipped/hg/makeDb/trackDb/ Full TrackDB-Documentation: shows all possible trackDB statements] | ||
*** Examples: [http://hgwdev. | *** Examples: [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/makeDb/trackDb/human/hg19/trackDb.ra UCSC trackDb for hg19] | ||
*** Examples for the composite statements in trackDb, from the [Encode trackDb http://hgwdev. | *** Examples for the composite statements in trackDb, from the [Encode trackDb http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/makeDb/trackDb/human/hg19/trackDb.wgEncode.ra] | ||
* When you run into problems, search through the [http://genome.ucsc.edu/mirror.html mailing list] when you have problems and read the documentation in the directory [http://hgwdev. | * When you run into problems, search through the [http://genome.ucsc.edu/mirror.html mailing list] when you have problems and read the documentation in the directory [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/product/ kent/src/product] | ||
** [http://genome-test. | ** [http://genome-test.soe.ucsc.edu/~hiram/rgbItemExamples.html#RGB color codes] | ||
** [http://genome-test. | ** [http://genome-test.soe.ucsc.edu/admin/ a similar place with hgSearchSpec docs and statistics (the system to search for ids)] can be found completely off-track | ||
* Create a browser for a [[Building a new genome database|completely new genome]] | * Create a browser for a [[Building a new genome database|completely new genome]] | ||
** Slides of a class on [https://banana-slug.soe.ucsc.edu/_media/lecture_notes:genomebrowsersetup.pdf Creating a browser for new bacterial genome] | ** Slides of a class on [https://banana-slug.soe.ucsc.edu/_media/lecture_notes:genomebrowsersetup.pdf Creating a browser for new bacterial genome] | ||
Line 84: | Line 84: | ||
== Making Of: How the UCSC genome annotations are created == | == Making Of: How the UCSC genome annotations are created == | ||
* How the UCSC folks created their tracks: | * How the UCSC folks created their tracks: | ||
** The [http://hgwdev. | ** The [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/makeDb/doc/ UCSC's makeDb-files] are a log of all commands that are necessary to re-create all annotations for a particular genome. | ||
** Some explanations how to read the makeDb files: [http://hgwdev. | ** Some explanations how to read the makeDb files: [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/doc/bashVsCsh.txt bashVsCsh] | ||
** The [http://hgwdev. | ** The [http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/makeDb/trackDb/ trackDb-files] are the "track database" of the browser. They include all instructions on how annotations are displayed (e.g. the type of display, colors, settings, options, filenames, etc.) | ||
** [[Implementation_Notes|Notes on the history of the internal tools: Autosql. Blastz. Chains and nets]] | ** [[Implementation_Notes|Notes on the history of the internal tools: Autosql. Blastz. Chains and nets]] | ||
* Whole-genome multiple alignments ([[Chains_Nets]]) | * Whole-genome multiple alignments ([[Chains_Nets]]) | ||
Line 93: | Line 93: | ||
* [http://genome.ucsc.edu/FAQ/FAQlicense#license4 How to create a browser for a new genome from scratch] | * [http://genome.ucsc.edu/FAQ/FAQlicense#license4 How to create a browser for a new genome from scratch] | ||
* [http://users.soe.ucsc.edu/~markd/genbank-update/ Genbank Updates] | * [http://users.soe.ucsc.edu/~markd/genbank-update/ Genbank Updates] | ||
* Cross-links to other databases | |||
** Outlinks for genes are copied from uniProt. The whole uniProt update process is rather complicated, see [[UCSC_Genes_Staging_Process]] | |||
== Developing with the UCSC API == | == Developing with the UCSC API == | ||
Line 100: | Line 102: | ||
== Statistics, overviews == | == Statistics, overviews == | ||
*[[Gene_Set_Summary_Statistics]] | *[[Gene_Set_Summary_Statistics]] | ||
* [http://genome-test. | * [http://genome-test.soe.ucsc.edu/~hiram/WEBStats/ Web hit statistics of the UCSC browser] | ||
[[Category:Technical FAQ]] | [[Category:Technical FAQ]] |
Latest revision as of 07:30, 1 September 2018
This page links to various pages that will help you to learn more about the UCSC Genome Browser. It is sorted by increasing technical complexity: the first steps require only a webbrowser, the last ones administrator access to a Linux webserver.
Use the browser website
- Bob Kuhn is giving workshops throughout the year at several US conferences, in Europe, Australia and Asia
- Read about how to | host
- Video tutorials and slides by Openhelix
- An introduction on Nature Education
- Basic materials written by the gurus: The User's guide and the FAQs.
- View a gallery of browser sessions that highlight interesting data sets.
- Type in (manually) a couple of custom tracks in different formats (just try bed for a start, you mostly won't need the others)
- Try typing "chr1 1 1000 Hello_World!" as a custom track
- If you need to graph data, there are different graphing formats
- Subscribe to the mailing list or search through it. Most everyday questions have already been asked by someone else so searching gives you an answer usually faster than asking on the mailing list.
Download the data of the genome browser (sequences and annotations)
- Be aware that internal coordinates (not those shown on the website) are 0-based! (only exception: wiggle)
- Unlike Gbrowse and Ensembl, UCSC is storing the data partially in SQL (coordiantes, outline of x-y-plots) and partially in flat text files (sequences, alignments, details of x-y-plots)
- Table Browser: The easiest way to access data (you don't have to care whether data is stored in MySQL or in textfiles):
- SQL-stored data (FAQ):
- Public mysql access
- File:Kent allJoiner.ppt, describes relations between all database tables
- For all genes-related tables, there is a graphical map (sub-optimal layout :-)
- Flat-file data: Download from the ftp server (stored in /gbdb on browser servers)
Install a copy of the browser on your own machine (Unix or Mac)
- Create a mirror of the UCSC site:
- Official FAQ: mirror a complete browser, the main reference for browser installation
- Inofficial FAQ: Browser Installation, on the wiki, a lot more info
- Mirror only selected genomes
- Adapt your cgi-bin/Hg.conf file for your mirror
- Be prepared that you'll need to create at least and also download parts of the hg18. At least mouse genomes still depend on it.
- Make sure that you keep your own tracks separate, read this before loading any local data: Local TrackDB table
- Updating the data automatically from UCSC
- Pro and cons of storing custom tracks in MySQL or as flat files
- How are cookies handled by the browser?
- The old documentation website with developer documentation
- Running your own gfServer (=BLAT server), needed in cases where you don't want or cannot use the UCSC BLAT servers.
Compile the UCSC source tree and analyze genomes yourself
- The source tree (aka Kent source) is the collection of all tools used at the UCSC browser group
- You could also call this an API, as you can use these tools from your own programs
- General introduction to the the source tree
- What is documented to be available in the Kent source utilities
- ... and what is really available in the source tree?
- Some important tools are already compiled (even for windows!) from here
- Compile all tools (includes the browser webserver) yourself
- The best starting point is the main zipfile: http://hgdownload.soe.ucsc.edu/admin/jksrc.zip
- You need to set some environment variables before you start the compilation
- Walkthroughs for...
- MacOS X users
- Debian and Ubuntu
- CentOS Notes
- Windows: see [1] but your mileage may vary to get everything to compile.
- The most common problem on the mailing list are harmless warnings that trigger errors. "cc1: warnings being treated as errors". To ignore them, which is usually safe, remove the -Wall option from the makefile
- See also the textfile README.building.source README.building.source
- Search through the archives or the Technical-FAQ-Category of the wiki when you have problems
- Send an email to the mailing list if you cannot find the answer yourself
- Some more sophisticated genome pipelines
- Create your own whole-genome alignment
- Create your own liftOver file
Modify your own copy of the browser
- You load track data into your mirror
- with the hgLoadxxx utils (e.g. hgLoadBed)
- and show meta data (name, type, possible controls, etc) on the browser by editing a textfile called trackDb.ra
- TrackDB documentation:
- Charles Sugnet's presentation about TrackDB
- How_to_add_a_track_to_a_mirror
- The structure of the trackDB
- Full TrackDB-Documentation: shows all possible trackDB statements
- Examples: UCSC trackDb for hg19
- Examples for the composite statements in trackDb, from the [Encode trackDb http://hgwdev.soe.ucsc.edu/~kent/src/unzipped/hg/makeDb/trackDb/human/hg19/trackDb.wgEncode.ra]
- When you run into problems, search through the mailing list when you have problems and read the documentation in the directory kent/src/product
- color codes
- a similar place with hgSearchSpec docs and statistics (the system to search for ids) can be found completely off-track
- Create a browser for a completely new genome
- Slides of a class on Creating a browser for new bacterial genome
- The most difficult part: Adding a completely new track type and visualisation code to the browser
Making Of: How the UCSC genome annotations are created
- How the UCSC folks created their tracks:
- The UCSC's makeDb-files are a log of all commands that are necessary to re-create all annotations for a particular genome.
- Some explanations how to read the makeDb files: bashVsCsh
- The trackDb-files are the "track database" of the browser. They include all instructions on how annotations are displayed (e.g. the type of display, colors, settings, options, filenames, etc.)
- Notes on the history of the internal tools: Autosql. Blastz. Chains and nets
- Whole-genome multiple alignments (Chains_Nets)
- Mm9_multiple_alignment
- Whole-genome alignment pipeline: Angies mental model and Max's howto
- How to create a browser for a new genome from scratch
- Genbank Updates
- Cross-links to other databases
- Outlinks for genes are copied from uniProt. The whole uniProt update process is rather complicated, see UCSC_Genes_Staging_Process
Developing with the UCSC API
- Debug the cgi-scripts with GDB
- Understand the binning scheme