g2nb / igv-jupyter

Extension for Jupyter which integrates igv.js
MIT License
154 stars 13 forks source link

Problems loading GTF file #48

Closed sagnikbanerjee15 closed 2 years ago

sagnikbanerjee15 commented 2 years ago

Hello,

I am using the following code to load a gtf file but nothing gets loaded. Could you please look into it?

track_list = [
            {
                "name": "HA",
                "url": "HA.gtf",
                "format": "gff",
                "type": "annotation",
                "indexed": False
            }
        ]

b = igv.Browser( 
    {"reference": {
        "id": "ref",
        "fastaURL": "genome.fasta",
        "indexed": False,
        "tracks": track_list
    }}
 )

b.show()

image

But once I load it manually, I can see the features

image

Thank you.

sagnikbanerjee15 commented 2 years ago

I figured the error. The gtf file was empty.

jrobinso commented 2 years ago

Also, if it's a gtf file the format should be "gtf", not "gff".

On Sun, Jan 16, 2022 at 11:46 AM Sagnik Banerjee @.***> wrote:

Closed #48 https://github.com/igvteam/igv-jupyter/issues/48.

— Reply to this email directly, view it on GitHub https://github.com/igvteam/igv-jupyter/issues/48#event-5900725308, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHD2HDO7OKAAYSXROKI2DDUWMOAVANCNFSM5MDDYZZQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>