commit/galaxy-central: jgoecks: Fix bugs when converting BED to FLI and JS module references.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/19345740820f/ changeset: 19345740820f user: jgoecks date: 2012-09-17 23:36:40 summary: Fix bugs when converting BED to FLI and JS module references. affected #: 2 files diff -r 833f02590bbd11f8ed1bdc024b380c1bb185bfae -r 19345740820fe9fe62fe46e9ae54efbabc1eb019 lib/galaxy/datatypes/converters/interval_to_fli.py --- a/lib/galaxy/datatypes/converters/interval_to_fli.py +++ b/lib/galaxy/datatypes/converters/interval_to_fli.py @@ -53,7 +53,17 @@ else: # BED format. for line in open( in_fname, 'r' ): + # Ignore track lines. + if line.startswith("track"): + continue + fields = line.split() + + # Ignore lines with no feature name. + if len( fields ) < 4: + continue + + # Process line name_loc_dict[ fields[3] ] = { 'contig': fields[0], 'start': int( fields[1] ), diff -r 833f02590bbd11f8ed1bdc024b380c1bb185bfae -r 19345740820fe9fe62fe46e9ae54efbabc1eb019 templates/tracks/browser.mako --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -86,17 +86,17 @@ JSON.parse('${ h.to_json_string( config['bookmarks'] ) }'), true ); - ui.init_editor(); + init_editor(); set_up_router({view: view}); %else: var continue_fn = function() { - view = trackster_ui.create_visualization( { + view = ui.create_visualization( { container: $("#browser-container"), name: $("#new-title").val(), dbkey: $("#new-dbkey").val() } ); view.editor = true; - ui.init_editor(); + init_editor(); set_up_router({view: view}); hide_modal(); }; Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket