.. _bigNarrowPeak: bigNarrowPeak example --------------------- You can read more about preparing the files necessary for a bigNarrowPeak track on `UCSC's bigNarrowPeak 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="bigNarrowPeak", short_label="bigNarrowPeak", long_label="bigNarrowPeak", genome="hg38", email="eva.jason@nih.gov", ) track = trackhub.Track( tracktype="bigNarrowPeak", name="bigNarrowPeak", bigDataUrl="http://genome.ucsc.edu/goldenPath/help/examples/bigNarrowPeak.bb", shortLabel="bigNarrowPeak", longLabel="bigNarrowPeak", visibility="full", ) trackdb.add_tracks(track) trackhub.upload.upload_hub( hub=hub, host="localhost", remote_dir="example_hubs/example_bigNarrowPeak_hub" )