<jupyter_start><jupyter_text>Google Colab notebook example  Install igv-notebook<jupyter_code>!pip install igv-notebook<jupyter_output><empty_output><jupyter_text>Load by URL<jupyter_code>import igv_notebook

igv_notebook.init()

b = igv_notebook.Browser(
    {
        "genome": "hg19",
        "locus": "chr22:24,376,166-24,376,456"
    }
)


b.load_track(
    {
        "name": "BAM",
        "url": "https://s3.amazonaws.com/igv.org.demo/gstt1_sample.bam",
        "indexURL": "https://s3.amazonaws.com/igv.org.demo/gstt1_sample.bam.bai",
        "format": "bam",
        "type": "alignment"
    })


b.zoom_in()


### Load by file path<jupyter_output><empty_output><jupyter_text>**Download example files**<jupyter_code>!wget https://github.com/igvteam/igv-notebook/raw/main/examples/data/gstt1_sample.bam
!wget https://github.com/igvteam/igv-notebook/raw/main/examples/data/gstt1_sample.bam.bai<jupyter_output><empty_output><jupyter_text>**Load by file path (not use of "path" and "indexPath")**<jupyter_code>import igv_notebook

igv_notebook.init()

b = igv_notebook.Browser(
    {
        "genome": "hg19",
        "locus": "chr22:24,376,166-24,376,456",
        "tracks": [{
            "name": "Local BAM",
            "path": "/content/gstt1_sample.bam",
            "indexPath": "/content/gstt1_sample.bam.bai",
            "format": "bam",
            "type": "alignment"
        }]
    })


b.zoom_in()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.16608996539792387, 'fraction_numerical': 0.03321799307958478, 'mean_word_length': 3.408536585365854, 'pattern_counts': {'":': 15, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '102113', 'license': 'MIT', 'n_tokens_mistral': 617, 'n_tokens_neox': 579, 'n_words': 69, 'path': 'examples/BamFiles_Colab.ipynb', 'repo_name': 'igvteam/igv-notebook', 'size': '1445'}