.. _bigGenePred: bigGenePred example ------------------- You can read more about preparing the files necessary for a bigGenePred track on `UCSC"s bigBarChart help page `_. The following code uses the example files provided by UCSC. This code is automatically run and the built trackhub is uploaded to the `trackhub-demo `_ repository. You can view the live hub using `this link `_. .. code-block:: python import trackhub hub, genomes_file, genome, trackdb = trackhub.default_hub( hub_name="bigGenePred", short_label="bigGenePred", long_label="bigGenePred", defaultPos="chr19:44905790-44909388", genome="hg38", email="eva.jason@nih.gov", ) track = trackhub.Track( name="bigGenePred", bigDataUrl="http://genome.ucsc.edu/goldenPath/help/examples/bigGenePredEx4.bb", shortLabel="bigGenePred", longLabel="bigGenePred", tracktype="bigGenePred", visibility="pack", ) trackdb.add_tracks(track) trackhub.upload.upload_hub( hub=hub, host="localhost", remote_dir="example_hubs/example_bigGenePred_hub" )