Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searchable annotation tracks are not working #1227

Closed
hrehrauer opened this issue Nov 19, 2020 · 10 comments
Closed

Searchable annotation tracks are not working #1227

hrehrauer opened this issue Nov 19, 2020 · 10 comments

Comments

@hrehrauer
Copy link

We load our own reference together with bed and gtf files. Things worked fine but now we get the error this.config.browser is undefined and the features are in the end displayed but not searchable. fyi. our code is:

`

            <title>igv.js</title>
            
            <!-- IGV JS-->
           
            <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.min.js"></script>
              
              </head>
              
              <body>
              
              
              <div id="igv-div" style="padding-top: 10px;padding-bottom: 10px; border:1px solid lightgray"></div>
                
                <script type="text/javascript">
                  
                  document.addEventListener("DOMContentLoaded", function () {
                    
                    const config =
                      {
                        reference: {
                          id: "GRCm38.p6",
                          fastaURL: "https://fgcz-gstore.uzh.ch/reference/Mus_musculus/GENCODE/GRCm38.p6/Sequence/WholeGenomeFasta/genome.fa",
                          indexURL: "https://fgcz-gstore.uzh.ch/reference/Mus_musculus/GENCODE/GRCm38.p6/Sequence/WholeGenomeFasta/genome.fa.fai",
                          wholeGenomeView: true
                        },
                        tracks: [
                          {
                            type: 'alignment',
                            format: 'bam',
                            url: 'https://fgcz-gstore.uzh.ch/projects/p3397/STAR_51639_2020-11-13--20-37-31/PTcre-_PM3.bam',
                            indexURL: 'https://fgcz-gstore.uzh.ch/projects/p3397/STAR_51639_2020-11-13--20-37-31/PTcre-_PM3.bam.bai',
                            samplingDepth: '2000',
                            alignmentRowHeight: 10,
                            colorBy: "strand",
                            name: 'PTcre-_PM3',
                            showSoftClips: true,
                            filter: {duplicates: false}
                          },
                          {
                            name: "Genes",
                            type: "annotation",
                            format: "gtf",
                            sourceType: "file",
                            url: "https://fgcz-gstore.uzh.ch/reference/Mus_musculus/GENCODE/GRCm38.p6/Annotation/Release_M23-2019-11-05/Genes/transcripts.only.gtf",
                            displayMode: "EXPANDED",
                            name: "GRCm38.p6 Genes",
                            searchable: true
                          },
                          {                                     
                            name: "exons",    
                            type: "annotation",
                            format: "bed",    
                            sourceType: "file",
                            url: "https://fgcz-gstore.uzh.ch/reference/Mus_musculus/GENCODE/GRCm38.p6/Annotation/Release_M23-2019-11-05/Genes/genes.bed",
                            displayMode: "EXPANDED",
                            name: "GRCm38.p6 Exons",
                            searchable: true  
                          }
                        ]
                      };
                    
                   const igvDiv = document.getElementById("igv-div"); 
                    igv.createBrowser(igvDiv, config)
                    .then(function (browser) {
                      console.log("Created IGV browser");
                    })
                    
                  });
                
                </script>
                  
                  </body>
                  
                  </html>

`

Can you please help? The error message is:
TypeError: this.config.browser is undefined value textFeatureSource.js:233 e textFeatureSource.js:224 h runtime.js:63 _invoke runtime.js:293 S runtime.js:118 gr runtime.js:747 o runtime.js:747
Best
Hubert

@jrobinso
Copy link
Contributor

Which version of igv.js are you using?

@hrehrauer
Copy link
Author

We are using
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/igv.min.js"></script>
best
hubert

@hrehrauer
Copy link
Author

In fact we are unsure, if we should run our own igv.js or if it is save to refer to your server?
best
hubert

@jrobinso
Copy link
Contributor

Running from the server is fine, that is a permanent URL for that release. Version 2.7.1 is a very recent release, I'm searching now to see when this bug was introduced.

@jrobinso
Copy link
Contributor

I found the problem and it will be fixed in this weekends release (2.7.2). In the meantime, do you recall the release you were using that was working? It looks like 2.6.8 should not have this problem, but I'm not certain.

@jrobinso jrobinso changed the title error: this.config.browser is undefined Searchable annotation tracks are not working Nov 19, 2020
@hrehrauer
Copy link
Author

unfortunately, I don't know the release that was still working. ;-(
We probably used it succesfully in September.
many thanks
hubert

@jrobinso
Copy link
Contributor

Well the fix ill be released this weekend, as 2.7.2, but if you need a faster solution the "2.6.8" version should work.

@hrehrauer
Copy link
Author

thanks. we will give it a try next week.
best
hubert

jrobinso added a commit that referenced this issue Nov 22, 2020
This reverts commit e6a0555, try a different approach.
@hrehrauer
Copy link
Author

any news on when it will be rolled out?

@jrobinso
Copy link
Contributor

Just released as 2.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants