# HG changeset patch # User yating-l # Date 1483025572 18000 # Node ID 40d00240688401f79b80014a6a5a4137fa965878 # Parent a256533e820d016e064a099b623f66ea7db439dd planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit c778f8ee85e9acc924c5c0a30042ac90c8e7a70d-dirty diff -r a256533e820d -r 40d002406884 templates/__init__.py diff -r a256533e820d -r 40d002406884 templates/display.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/display.txt Thu Dec 29 10:32:52 2016 -0500 @@ -0,0 +1,52 @@ +<%namespace name="os" module="os"/> + + +

+ The following has been generated by Hub Archive Creator: +

+ + + + +<%def name="print_tree(tree)"> + % if len(tree) == 0: + ## We do nothing, we are called by a leaf + ## If we are there, this is not normal though + ## TODO: Manage the error + return + % else: + % for vertex in tree: + % if len(tree[vertex][0]) > 0: +
  • + ${vertex} +
  • + + % else: +
  • + ${vertex} +
  • + % endif + % endfor + % endif + + +<%doc> + def recurse_print_tree(tree, level): + if len(tree) == 0: + return + + for vertex in tree: + composite_name = vertex + bullet_point = '
  • NCBI genome/${genomeID} (${specieFullName}) + + diff -r a256533e820d -r 40d002406884 templates/hubTxt/__init__.py diff -r a256533e820d -r 40d002406884 templates/hubTxt/layout.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/hubTxt/layout.txt Thu Dec 29 10:32:52 2016 -0500 @@ -0,0 +1,6 @@ +hub ${hubName} +shortLabel ${shortLabel} +longLabel ${longLabel} +genomesFile ${genomesFile} +email ${email} +descriptionUrl ${descriptionUrl} diff -r a256533e820d -r 40d002406884 templates/specieDescription/__init__.py diff -r a256533e820d -r 40d002406884 templates/specieDescription/layout.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/specieDescription/layout.txt Thu Dec 29 10:32:52 2016 -0500 @@ -0,0 +1,5 @@ + + + ${specieDescription} + + diff -r a256533e820d -r 40d002406884 templates/trackDb/__init__.py diff -r a256533e820d -r 40d002406884 templates/trackDb/layout.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/trackDb/layout.txt Thu Dec 29 10:32:52 2016 -0500 @@ -0,0 +1,14 @@ +% for trackDb in trackDbs: + ## See this http://genome.ucsc.edu/goldenPath/help/hgTrackHubHelp.html + track ${trackDb.trackName} + longLabel ${trackDb.longLabel} + shortLabel ${trackDb.shortLabel} + bigDataUrl ${trackDb.trackDataURL} + type ${trackDb.trackType} + visibility ${trackDb.visibility} + thickDrawItem ${trackDb.thickDrawItem} + priority ${trackDb.priority} + color ${trackDb.track_color} + group ${trackDb.group_name.lower().replace(' ', '_')} + +% endfor