7a173a092486bb744c3f42d694aab108ecae34d5 dschmelt Wed Apr 10 12:21:42 2019 -0700 Adding GTF to bigGenePred Example4 #21582 diff --git src/hg/htdocs/goldenPath/help/bigGenePred.html src/hg/htdocs/goldenPath/help/bigGenePred.html index 8e1c758..5cf8820 100755 --- src/hg/htdocs/goldenPath/help/bigGenePred.html +++ src/hg/htdocs/goldenPath/help/bigGenePred.html @@ -198,83 +198,82 @@
bedToBigBed
utility to create the bigGenePred output file (step 4,
above):
bedToBigBed -type=bed12+8 -tab -as=bigGenePred.as bigGenePred.txt hg38.chrom.sizes bigGenePred.bb
In this example, you will convert a genePred file to bigGenePred using command line utilities. +
In this example, you will convert a GTF file to bigGenePred using command line utilities. You can download utilities from the utilities directory.
wget http://hgdownload.soe.ucsc.edu/goldenPath/hg38/database/wgEncodeGencodeCompV28.txt.gz
wget http://genome.ucsc.edu/goldenPath/help/examples/bigGenePredExample4.gtf
gunzip wgEncodeGencodeCompV28.txt.gz
gtfToGenePred -genePredExt bigGenePredExample4.gtf example4.genePred
cut -f 2- wgEncodeGencodeCompV28.txt > wgCompV28Cut.txt
genePredToBigGenePred example4.genePred ex4BigGenePred.txt
genePredToBigGenePred wgCompV28Cut.txt wgEncodeGencodeCompV28BigGP.txt
fetchChromSizes hg38 > hg38.chrom.sizes
-wget https://hgwdev.gi.ucsc.edu/goldenPath/help/examples/bigGenePred.as
bedToBigBed -type=bed12+8 -tab -as=bigGenePred.as wgEncodeGencodeCompV28BigGP.txt hg38.chrom.sizes wgEncodeGencodeCompV28.bgp
bedToBigBed -type=bed12+8 -tab -as=bigGenePred.as ex4BigGenePred.txt hg38.chrom.sizes ex4BigGenePred.bb
http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hgct_customText=track%20type=bigGenePred%20bigDataUrl=https://hgwdev.gi.ucsc.edu/~dschmelt/wgEncodeGencodeCompV28.bgp
+ View your dataset in the Browser by entering your hosted data URL in the bigDataUrl field of the
+ URL. For example, you can paste this link into your web browser.
+ http://genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&hgct_customText=track%20type=bigGenePred%20bigDataUrl=http://genome.ucsc.edu/goldenPath/help/examples/ex4bigGenePred.bb
You can also add your data in the custom track management
page. 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 baseColorDefault=genomicCodons
code as is done below.
+desciption. If you want to see codons, you can right click, then click configure codon view or
+set these options using the baseColorDefault=genomicCodons
code as is done below.
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
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 Example #6.
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 -binary utilities directory.
-bigBedToBed
— converts a bigBed file to ASCII BED format.bigBedSummary
— extracts summary information from a bigBed
file.bigBedInfo
— prints out information about a bigBed file.As with all UCSC Genome Browser programs, simply type the program name (with no parameters) at the command line to view the usage statement.
If you encounter an error when you run the bedToBigBed
program, check your input
file for data coordinates that extend past the end of the chromosome. If these are
present, run the bedClip
program
(available here) to remove the problematic
row(s) before running the bedToBigBed
program.