Mercurial > repos > fubar > jbrowse2dev
comparison jbrowse2/jbrowse2.py @ 2:22e3d068fdc9 draft
Uploaded
author | fubar |
---|---|
date | Wed, 03 Jan 2024 06:17:43 +0000 |
parents | cd5d63cd0eb5 |
children | 42ca8804cd93 |
comparison
equal
deleted
inserted
replaced
1:af3fba6c21aa | 2:22e3d068fdc9 |
---|---|
545 "assemblyNames": [self.genome_name], | 545 "assemblyNames": [self.genome_name], |
546 "adapter": { | 546 "adapter": { |
547 "type": "Gff3TabixAdapter", | 547 "type": "Gff3TabixAdapter", |
548 "gffGzLocation": {"locationType": "UriLocation", "uri": url}, | 548 "gffGzLocation": {"locationType": "UriLocation", "uri": url}, |
549 "index": { | 549 "index": { |
550 "location": {"locationType": "UriLocation", "uri": url + ".tbi"} | 550 "location": {"uri": url + ".tbi", "locationType": "UriLocation"} |
551 }, | 551 }, |
552 }, | 552 }, |
553 "displays": [ | 553 "displays": [ |
554 { | 554 { |
555 "type": "LinearBasicDisplay", | 555 "type": "LinearBasicDisplay", |
564 def add_bed(self, data, ext, trackData): | 564 def add_bed(self, data, ext, trackData): |
565 url = "%s.%s" % (trackData["label"], ext) | 565 url = "%s.%s" % (trackData["label"], ext) |
566 dest = os.path.realpath("%s/%s" % (self.outdir, url)) | 566 dest = os.path.realpath("%s/%s" % (self.outdir, url)) |
567 self._sort_bed(data, dest) | 567 self._sort_bed(data, dest) |
568 tId = trackData["label"] | 568 tId = trackData["label"] |
569 url = url + ".gz" | |
569 trackDict = { | 570 trackDict = { |
570 "type": "FeatureTrack", | 571 "type": "FeatureTrack", |
571 "trackId": tId, | 572 "trackId": tId, |
572 "name": trackData["name"], | 573 "name": trackData["name"], |
573 "assemblyNames": [self.genome_name], | 574 "assemblyNames": [self.genome_name], |
574 "adapter": { | 575 "adapter": { |
575 "type": "BedAdapter", | 576 "type": "BedTabixAdapter", |
576 "bedLocation": {"locationType": "UriLocation", "uri": url + ".gz"}, | 577 "bedGzLocation": {"locationType": "UriLocation", "uri": url}, |
578 "index": { | |
579 "location": {"uri": url + ".tbi", "locationType": "UriLocation"} | |
580 }, | |
577 }, | 581 }, |
578 "displays": [ | 582 "displays": [ |
579 { | 583 { |
580 "type": "LinearBasicDisplay", | 584 "type": "LinearBasicDisplay", |
581 "displayId": "%s-LinearBasicDisplay" % tId, | 585 "displayId": "%s-LinearBasicDisplay" % tId, |