deps/kb_meme/meme-5.0.1/src/tomtom.c
/**************************************************************************
 * Creates a logo of the aligned target and query motif
 **************************************************************************/
Creates a logo of the aligned target and query motif
Creates a logo of the aligned target and query motif
static void create_logo(MOTIF_DB_T *target_db, MOTIF_T *target,
    MOTIF_DB_T *query_db, MOTIF_T *query, int offset, 
    bool png, bool eps, bool ssc, char *output_dirname) {
  STR_T *logo_filename;
  char *logo_path;
  logo_filename = str_create(50);
  str_setf(
      logo_filename, 
      "align_%s_%d_%s", 
      get_motif_id(query), 
      target_db->id, 
      get_motif_st_id(target)
    );
  logo_path = make_path_to_file(output_dirname, str_internal(logo_filename));
  CL_create2(target, get_motif_id(target), query, get_motif_id(query), true,
      ssc, LOGOHEIGHT, 0, -offset, "Tomtom", logo_path, eps, png);
  myfree(logo_path);
  str_destroy(logo_filename, false);
}
static void create_logo ( MOTIF_DB_T * target_db , MOTIF_T * target , MOTIF_DB_T * query_db , MOTIF_T * query , int offset , bool png , bool eps , bool ssc , char * output_dirname ) { STR_T * logo_filename ; char * logo_path ; logo_filename = str_create ( 50 ) ; str_setf ( logo_filename , " " , get_motif_id ( query ) , target_db -> id , get_motif_st_id ( target ) ) ; logo_path = make_path_to_file ( output_dirname , str_internal ( logo_filename ) ) ; CL_create2 ( target , get_motif_id ( target ) , query , get_motif_id ( query ) , true , ssc , LOGOHEIGHT , 0 , - offset , " " , logo_path , eps , png ) ; myfree ( logo_path ) ; str_destroy ( logo_filename , false ) ; }
Creates a logo of the aligned target and query motif
Creates a logo of the aligned target and query motif
// create filename // create output file path // create logo // clean up