question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong URI while adding GFF track

See original GitHub issue

While adding a new track to an assembly with the following command;

jbrowse add-track --trackType=FeatureTrack -n 'Annotation' --assemblyNames=CHL-ADG1  -l inPlace /mnt/www/pgdp-jbrowse2/jbrowse2/data/chl-adg1/ADG1_cp.gff.gz

It outputs this in the config.json as;

{
      "type": "FeatureTrack",
      "trackId": "ADG1_cp.gff",
      "name": "Annotation",
      "assemblyNames": [
        "CHL-ADG1"
      ],
      "adapter": {
        "type": "Gff3TabixAdapter",
        "gffGzLocation": {
          "uri": "ADG1_cp.gff.gz"
        },
        "index": {
          "location": {
            "uri": "ADG1_cp.gff.gz.tbi"
          },
          "indexType": "TBI"
        }
      }
    }

Which generates a HTTP 404 error due to file being not located. I solved the problem by adding the location of the file to the URIs manually.

{
      "type": "FeatureTrack",
      "trackId": "ADG1_cp.gff",
      "name": "Annotation",
      "assemblyNames": [
        "CHL-ADG1"
      ],
      "adapter": {
        "type": "Gff3TabixAdapter",
        "gffGzLocation": {
          "uri": "data/chl-adg1/ADG1_cp.gff.gz"
        },
        "index": {
          "location": {
            "uri": "data/chl-adg1/ADG1_cp.gff.gz.tbi"
          },
          "indexType": "TBI"
        }
      }
    }

Thank you, Ilayda

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
cmdcolincommented, Feb 23, 2021

To keep things organized, you can use --subDir which will copy the file to a subdirectory e.g.

jbrowse add-track myfile.bam --load copy --subDir bams

This will copy myfile.bam and myfile.bam.bai to a bams subdirectory, and output a track config like this

{
      "type": "AlignmentsTrack",
      "trackId": "volvox-sorted",
      "name": "volvox-sorted",
      "assemblyNames": [
        "volvox"
      ],
      "adapter": {
        "type": "BamAdapter",
        "bamLocation": {
          "uri": "test/volvox-sorted.bam"
        },
        "index": {
          "location": {
            "uri": "test/volvox-sorted.bam.bai"
          },
          "indexType": "BAI"
        },
        "sequenceAdapter": {
          "type": "IndexedFastaAdapter",
          "fastaLocation": {
            "uri": "volvox.fa"
          },
          "faiLocation": {
            "uri": "volvox.fa.fai"
          }
        }
      }
    }

It is true that it would get hard to organize the data directory properly without using something like --subDir, but let me know if that helps.

It is also allowed to use --load inPlace as you were using it if we fix the bug with it!

1reaction
cmdcolincommented, Feb 23, 2021

To be clear, using --load inPlace data/chl-adg1/ADG1_cp.gff.gz.tbi and not --load inPlace /mnt/www/pgdp-jbrowse2/jbrowse2/data/chl-adg1/ADG1_cp.gff.gz …once we fix the bug

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions: Custom Annotation Tracks
This error is caused by a logical conflict in the Genome Browser software. It accepts custom GFF tracks that have multiple "exons" at...
Read more >
GFF format trouble · Issue #20 · jaumlrc/ProphET - GitHub
I validated my GFF file and i still receive this error "The following line does not have 9 columns separated by , a...
Read more >
Error in parseURI("") : cannot parse URI (issue resolved)
I tried, but the read counting was not finished after 72hrs, so I assumed the counting was too heavy, shift my effort to...
Read more >
Troubleshooting - JBrowse
From what we have seen, the "Integer overflow error" sometimes appears on BigWig tracks when your webserver is not configured correctly.
Read more >
Adding Custom Tracks - Ensembl GRCh37
Upload a file to our servers (max 20MB unzipped), from either your own computer or a location on the web (URL-based data). If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found