fff086f0ce7a549b800ec5ce3409a48287bd6732 dschmelt Wed Apr 3 12:14:13 2019 -0700 Updating the MANE track html description #23113 diff --git src/hg/htdocs/goldenPath/help/bigGenePred.html src/hg/htdocs/goldenPath/help/bigGenePred.html index d564189..2a76c29 100755 --- src/hg/htdocs/goldenPath/help/bigGenePred.html +++ src/hg/htdocs/goldenPath/help/bigGenePred.html @@ -1,36 +1,36 @@ <!DOCTYPE html> <!--#set var="TITLE" value="Genome Browser bigGenePred Track Format" --> <!--#set var="ROOT" value="../.." --> <!-- Relative paths to support mirror sites with non-standard GB docs install --> <!--#include virtual="$ROOT/inc/gbPageStart.html" --> <h1>bigGenePred Track Format</h1> <p> -The bigGenePred format stores positional annotations items for collections of exons, much as -<a href="../../FAQ/FAQformat.html#format1">BED</a> files indexed as bigBeds do. However, the -bigGenePred format includes 8 additional fields that contain details about coding frames, -annotation status, and other gene-specific information. This is most commonly used in the Browser -to display individual codons, highlighting start, stop, and amino acid translations.</p> -<p> -bigGenePred files that have not been compressed can be described as bed12+8 files. They can be -created using the program <code>bedToBigBed</code>, run with the <code>-as</code> option to pull -in a special <a href="http://www.linuxjournal.com/article/5949" target="_blank">autoSql</a> -(<em>.as</em>) file that defines the extra fields of the bigGenePred.</p> -<p> -Much like bigBed, bigGenePred files are in an indexed binary format. The main advantage of binary +The bigGenePred format stores positional annotation items for collections of exons in a compressed +format, similar to how <a href="../../FAQ/FAQformat.html#format1">BED</a> files can be compressed +into bigBeds. The bigGenePred format includes 8 additional fields that contain details about coding +frames,annotation status, and other gene-specific information. This is commonly used in the Browser +to display start codons, stop codons, and amino acid translations.</p> +<p> +Before compression, bigGenePred files can be described as bed12+8 files. bigGenePred +files can be created using the program <code>bedToBigBed</code>, run with the <code>-as</code> +option to pull in a special <a href="http://www.linuxjournal.com/article/5949" target="_blank"> +autoSql</a> (<em>.as</em>) file that defines the extra fields of the bigGenePred.</p> +<p> +Much like bigBed, bigGenePred files are in an indexed binary format. The advantage of using a binary format is that only the portions of the file needed to display a particular region are read by the Genome Browser server. Because of this, indexed binary files have much faster display performance than regular BED format files when working with large data sets. The bigGenePred file remains on the user's web-accessible server (http, https or ftp) and only the portion needed to display the current genome position is cached as a "sparse file". If you want more information on finding a a web-accessible server or need hosting space for your bigGenePred files, please see the <a href="hgTrackHubHelp.html#Hosting">Hosting</a> section of the Track Hub Help documentation.</p> <a name="bigGenePred"></a> <h2>bigGenePred file definition</h2> <p> The following autoSql definition specifies bigGenePred gene prediction files. This definition, contained in the file <a href="examples/bigGenePred.as"><em>bigGenePred.as</em></a>, is pulled in when the <code>bedToBigBed</code> utility is run with the @@ -62,33 +62,34 @@ <p> The following bed12+8 is an example of a <a href="examples/bigGenePred.txt">bigGenePred input file </a>.</p> <h2>Creating a bigGenePred track</h2> <p> To create a bigGenePred track, follow these steps:</p> <p> <strong>Step 1.</strong> Format your bigGenePred file. The first 12 fields of the bigGenePred bed12+8 format are described by the basic <a href="../../FAQ/FAQformat.html#format1">BED file format</a>. You can also read the <a href="../../FAQ/FAQformat.html#format9">genePred format</a>. Your bigGenePred file must also contain the 8 extra fields described in the autoSql file definition shown above: <code>name2, cdsStartStat, cdsEndStat, exonFrames, type, geneName, geneName2, -geneType</code>. Your bigGenePred file must be sorted first on the <code>chrom</code> field, and -secondarily on the <code>chromStart</code> field. You can use the UNIX <code>sort</code> command to -do this:</p> +geneType</code>. For reference, you can use this example bed12+8 input file, +<a href="examples/bigGenePred.txt">bigGenePred.txt</a>. Your bigGenePred file must be sorted +first on the <code>chrom</code> field, and secondarily on the <code>chromStart</code> field. You +can use the UNIX <code>sort</code> command to do this:</p> <pre><code>sort -k1,1 -k2,2n unsorted.bed > input.bed</code></pre> <p> <strong>Step 2.</strong> Download the <code>bedToBigBed</code> program from the <a href="http://hgdownload.soe.ucsc.edu/admin/exe/">binary utilities directory</a>.</p> <p> <strong>Step 3.</strong> Download the <em>chrom.sizes</em> file for your genome assembly using the <code>fetchChromSizes</code> script from the <a href="http://hgdownload.soe.ucsc.edu/admin/exe/">same directory</a>. Alternatively, you can download the <em>chrom.sizes</em> file for any assembly hosted at UCSC from our <a href="http://hgdownload.soe.ucsc.edu/downloads.html">downloads</a> page (click on "Full data set" for any assembly). For example, the <em>hg38.chrom.sizes</em> file for the hg38 database is located at <a href="http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chrom.sizes" target="_blank">http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chrom.sizes</a>.</p> @@ -196,30 +197,66 @@ computer.</li> <li> Run the <code>bedToBigBed</code> utility to create the bigGenePred output file (<em>step 4</em>, above): <pre><code><B>bedToBigBed</B> -type=bed12+8 -tab -as=bigGenePred.as bigGenePred.txt hg38.chrom.sizes bigGenePred.bb</code></pre></li> <li> Place the newly created bigGenePred file (<em>bigGenePred.bb</em>) on a web-accessible server (<em>Step 5</em>, above).</li> <li> Construct a track line that points to the bigGenePred file (<em>Step 6</em>, above).</li> <li> Create the custom track on the human assembly hg38 (Dec. 2013), and view it in the Genome Browser (<em>step 7</em>, above).</li> </ol> +<h3>Example #4</h3> +<p>In this example, you will convert a genePred file to bigGenePred using command line utilities. +You can download utilities from the +<a href="http://hgdownload.soe.ucsc.edu/admin/exe/">utilities directory</a>.</p> +<ol> + <li> + Obtain a genePred extended file. Here we are downloading the Comprehensive Gencode V28 gene data. + <pre><code>wget http://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/wgEncodeGencodeCompV28.txt.gz</code></pre></li> + <li> + Uncompress the file. + <pre><code>gunzip wgEncodeGencodeCompV28.txt.gz </code></pre></li> + <li> +Isolate columns 2 till the end, removing the bin column, and saving as <em>wgCompV28Cut.txt</em>. + <pre><code>cut -f 2- wgEncodeGencodeCompV28.txt > wgCompV28Cut.txt </code></pre></li> + <li> + Convert the genePred extended file to a bigGenePred text file, reordering and adding columns. + <pre><code>genePredToBigGenePred wgCompV28Cut.txt wgEncodeGencodeCompV28BigGP.txt</code></pre></li> + <li> + Obtain input files for the binary conversion. + <pre><code>fetchChromSizes hg38 > hg38.chrom.sizes +wget https://hgwdev.gi.ucsc.edu/goldenPath/help/examples/bigGenePred.as</code></pre></li> + <li> + Convert your text bigGenePred to a binary indexed format. + <pre><code>bedToBigBed -type=bed12+8 -tab -as=bigGenePred.as wgEncodeGencodeCompV28BigGP.txt hg38.chrom.sizes wgEncodeGencodeCompV28.bgp</code></pre></li> + <li> + Put your binary indexed file in a web-accessible location. See the <a href=”https://genome.ucsc.edu/goldenpath/help/hgTrackHubHelp.html#Hosting”>hosting section</a> for more information.</li> + <li> + View your dataset in the Browser by entering your data URL in the bigDataUrl field of the URL. + <pre><code>http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hgct_customText=track%20type=bigGenePred%20bigDataUrl=https://hgwdev.gi.ucsc.edu/~dschmelt/wgEncodeGencodeCompV28.bgp</code></pre> +You can also add your data in the <a href="../../cgi-bin/hgCustom?db=hg38">custom track management +page</a>. This allows you to set position, configuration options, and write a more complete +desciption. If you want to see codons, you will have to right click to configure codon view or +set this option using the <code>baseColorDefault=genomicCodons</code> code as is done below. +<pre><code>browser position chr10:67,884,600-67,884,900 +track type=bigGenePred baseColorDefault=genomicCodons name="bigGenePred Example Four" description="BGP Made from genePred" visibility=pack bigDataUrl=https://hgwdev.gi.ucsc.edu/~dschmelt/wgEncodeGencodeCompV28.bgp</code></pre></li> +</ol> <h2>Sharing your data with others</h2> <p> If you would like to share your bigGenePred data track with a colleague, learn how to create a URL link to your data by looking at <a href="customTrack.html#EXAMPLE11">Example #6</a>.</p> <h2>Extracting data from bigBed format</h2> <p> Because the bigGenePred files are an extension of bigBed files, which are indexed binary files, it can be difficult to extract data from them. UCSC has developed the following programs to assist in working with bigBed formats, available from the <a href="http://hgdownload.soe.ucsc.edu/admin/exe/">binary utilities directory</a>.</p> <ul> <li> <code>bigBedToBed</code> — converts a bigBed file to ASCII BED format.</li> <li>