Mercurial > repos > fubar > jbrowse2
annotate autogenJB2.py @ 19:bde6b1d09f7d draft
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
author | fubar |
---|---|
date | Tue, 30 Jan 2024 06:05:03 +0000 |
parents | |
children |
rev | line source |
---|---|
19
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
1 import argparse |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
2 import os |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
3 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
4 from jbrowse2 import jbrowseConnector as jbC |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
5 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
6 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
7 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
8 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
9 if __name__ == "__main__": |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
10 parser = argparse.ArgumentParser(description="", epilog="") |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
11 parser.add_argument("--yaml", help="Track Configuration") |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
12 parser.add_argument("--outdir", help="Output directory", default="out") |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
13 parser.add_argument("--version", "-V", action="version", version="%(prog)s 0.0.1") |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
14 args = parser.parse_args() |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
15 if os.path.exists(args.outdir): |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
16 root = args.outdir |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
17 dirList = os.scandir(root) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
18 subdirs = [f.path for f in dirList if f.is_dir()] |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
19 genome_paths = [f.path for f in dirList if f.name.startswith('genome') and f.is_file()] |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
20 if len(genome_paths) > 0: |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
21 genome_fnames = [os.path.basename(x).split('_')[2:] for x in genome_paths] # expect genome_1_genomename.fasta etc |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
22 jc = jbC( |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
23 outdir=args.outdir, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
24 genomes=[ |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
25 { |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
26 "path": x, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
27 "meta": {"name" : genome_fnames[i], }, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
28 } |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
29 for i,x in enumerate(genome_paths) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
30 ], |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
31 ) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
32 jc.process_genomes() |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
33 # .add_default_view() replace from https://github.com/abretaud/tools-iuc/blob/jbrowse2/tools/jbrowse2/jbrowse2.py |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
34 default_session_data = { |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
35 "visibility": { |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
36 "default_on": [], |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
37 "default_off": [], |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
38 }, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
39 "style": {}, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
40 "style_labels": {}, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
41 } |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
42 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
43 track_paths = [x for x in genome_paths if not x.startswith('genome') and x.is_file()] |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
44 for i, track in enumerate(track_paths): |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
45 track_conf = {} |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
46 track_conf['format']= os.path.basename(track).split('_')[0] |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
47 track_conf["name"] = os.path.basename(track).split('_')[2:] # expect genome_1_genomename.fasta etc |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
48 fext = os.path.splitext(os.path.basename(track)).replace('.','') |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
49 track_conf["label"] = "%s_%i" % (os.path.basename(track), i) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
50 track_conf["trackfiles"] = [] |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
51 keys = jc.process_annotations(track_conf) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
52 |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
53 if keys: |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
54 for key in keys: |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
55 default_session_data["visibility"][ |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
56 track.attrib.get("visibility", "default_off") |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
57 ].append(key) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
58 if track_conf.get("style", None): |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
59 default_session_data["style"][key] = track_conf[ |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
60 "style" |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
61 ] # TODO do we need this anymore? |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
62 if track_conf.get("style_lables", None): |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
63 default_session_data["style_labels"][key] = track_conf.get( |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
64 "style_labels", None |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
65 ) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
66 # default_session_data["defaultLocation"] = root.find( |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
67 # "metadata/general/defaultLocation" |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
68 # ).text |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
69 # default_session_data["session_name"] = root.find( |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
70 # "metadata/general/session_name" |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
71 # ).text |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
72 # general_data = { |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
73 # "analytics": root.find("metadata/general/analytics").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
74 # "primary_color": root.find("metadata/general/primary_color").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
75 # "secondary_color": root.find("metadata/general/secondary_color").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
76 # "tertiary_color": root.find("metadata/general/tertiary_color").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
77 # "quaternary_color": root.find("metadata/general/quaternary_color").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
78 # "font_size": root.find("metadata/general/font_size").text, |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
79 # } |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
80 # jc.add_general_configuration(general_data) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
81 trackconf = jc.config_json.get("tracks", None) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
82 if trackconf: |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
83 jc.config_json["tracks"].update(jc.tracksToAdd) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
84 else: |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
85 jc.config_json["tracks"] = jc.tracksToAdd |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
86 jc.write_config() |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
87 jc.add_default_session(default_session_data) |
bde6b1d09f7d
planemo upload for repository https://github.com/usegalaxy-eu/temporary-tools/tree/master/jbrowse2 commit 1290bf486bc55c02fecd0327de10a28655a18e81-dirty
fubar
parents:
diff
changeset
|
88 # jc.text_index() not sure what broke here. |