function ready_motif(replace_id, motif_id, cache, indent, reverse_complement, title_text, group_id) {
        var elem = document.getElementById(replace_id);
        var pspm = motif_lookup[motif_id];
        // check we have enough information to make the task possible
        if (elem === null || elem === undefined) {
          if (console) console.error("Can not find element from id %s", replace_id);
          return;
        }
        if (pspm === undefined) {
          if (console) console.error("Missing pspm for %s: unable to replace %s", motif_id, replace_id);
          return;
        }
        // create the task
        var task = new MotifTask(replace_id, motif_id, cache, indent, reverse_complement, title_text);

        // dispatch the task
        if (group_id === undefined) {
          // this is defined in delay_draw.js
          add_draw_task(document.getElementById(replace_id), task);
        } else { 
          add_group_task(group_id, task);
        }
      }
/*
       * ready_motif
       *
       * Add the information about where a motif needs to be drawn and any
       * modifiers that change the way it is drawn (reverse_complement & 
       * indent) to the datastructures responsible for drawing them.
       *
       * Cache is used as a hint to the drawing code to reduce
       * draw calls by caching the output and using that when future
       * draw calls are made. A duplicate cache entry will be made
       * for each different indent and reverse_complement combination.
       *
       * If group_id is specified then the motifs will be drawn when the
       * group is activated as opposed to when they scroll onto screen
       * which is the default. Hence the group_id is only used for hidden
       * motifs.
       */
ready_motif
Add the information about where a motif needs to be drawn and any
modifiers that change the way it is drawn (reverse_complement &
indent) to the datastructures responsible for drawing them.

Cache is used as a hint to the drawing code to reduce
draw calls by caching the output and using that when future
draw calls are made. A duplicate cache entry will be made
for each different indent and reverse_complement combination.

If group_id is specified then the motifs will be drawn when the
group is activated as opposed to when they scroll onto screen
which is the default. Hence the group_id is only used for hidden
motifs.
ready_motif Add the information about where a motif needs to be drawn and any modifiers that change the way it is drawn ( reverse_complement & indent ) to the datastructures responsible for drawing them . Cache is used as a hint to the drawing code to reduce draw calls by caching the output and using that when future draw calls are made . A duplicate cache entry will be made for each different indent and reverse_complement combination . If group_id is specified then the motifs will be drawn when the group is activated as opposed to when they scroll onto screen which is the default . Hence the group_id is only used for hidden motifs .
function ready_motif(replace_id, motif_id, cache, indent, reverse_complement, title_text, group_id) {
        var elem = document.getElementById(replace_id);
        var pspm = motif_lookup[motif_id];
        if (elem === null || elem === undefined) {
          if (console) console.error("Can not find element from id %s", replace_id);
          return;
        }
        if (pspm === undefined) {
          if (console) console.error("Missing pspm for %s: unable to replace %s", motif_id, replace_id);
          return;
        }
        var task = new MotifTask(replace_id, motif_id, cache, indent, reverse_complement, title_text);
        if (group_id === undefined) {
          add_draw_task(document.getElementById(replace_id), task);
        } else { 
          add_group_task(group_id, task);
        }
      }
function ready_motif ( replace_id , motif_id , cache , indent , reverse_complement , title_text , group_id ) { var elem = document . getElementById ( replace_id ) ; var pspm = motif_lookup [ motif_id ] ; if ( elem === null || elem === undefined ) { if ( console ) console . error ( "Can not find element from id %s" , replace_id ) ; return ; } if ( pspm === undefined ) { if ( console ) console . error ( "Missing pspm for %s: unable to replace %s" , motif_id , replace_id ) ; return ; } var task = new MotifTask ( replace_id , motif_id , cache , indent , reverse_complement , title_text ) ; if ( group_id === undefined ) { add_draw_task ( document . getElementById ( replace_id ) , task ) ; } else { add_group_task ( group_id , task ) ; } }
ready_motif
 Add the information about where a motif needs to be drawn and any
 modifiers that change the way it is drawn (reverse_complement &
 indent) to the datastructures responsible for drawing them.
ready_motif Add the information about where a motif needs to be drawn and any modifiers that change the way it is drawn ( reverse_complement & indent ) to the datastructures responsible for drawing them .
// check we have enough information to make the task possible // create the task // dispatch the task // this is defined in delay_draw.js