~ubuntu-branches/ubuntu/vivid/ncbi-tools6/vivid

« back to all changes in this revision

Viewing changes to demo/blastclust.c

  • Committer: Package Import Robot
  • Author(s): Aaron M. Ucko, Andreas Tille
  • Date: 2012-06-24 22:54:29 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120624225429-y81u0gzrppi3fhyf
Tags: 6.1.20120620-2
[ Andreas Tille ]
debian/upstream: Strings containing ': ' need to be quoted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
static char const rcsid[] = "$Id: blastclust.c,v 6.49 2007/12/21 14:00:47 madden Exp $";
 
1
static char const rcsid[] = "$Id: blastclust.c,v 6.50 2011/12/19 18:40:17 gouriano Exp $";
2
2
 
3
 
/*  $RCSfile: blastclust.c,v $  $Revision: 6.49 $  $Date: 2007/12/21 14:00:47 $
 
3
/*  $RCSfile: blastclust.c,v $  $Revision: 6.50 $  $Date: 2011/12/19 18:40:17 $
4
4
* ===========================================================================
5
5
*
6
6
*                            PUBLIC DOMAIN NOTICE
33
33
*
34
34
* ---------------------------------------------------------------------------
35
35
* $Log: blastclust.c,v $
 
36
* Revision 6.50  2011/12/19 18:40:17  gouriano
 
37
* Corrected printf formatting. NOJIRA
 
38
*
36
39
* Revision 6.49  2007/12/21 14:00:47  madden
37
40
* Exit if query cannot be processed, JIRA SB-32
38
41
*
427
430
    for (index=0; index<num_clusters; index++) {
428
431
        for (i=0; i<cluster[index]->size; i++) {
429
432
            if (numeric_id_type)
430
 
                fprintf(global_fp, "%ld ", cluster[index]->elements[i]->gi); 
 
433
                fprintf(global_fp, "%d ", cluster[index]->elements[i]->gi); 
431
434
            else 
432
435
                fprintf(global_fp, "%s ", cluster[index]->elements[i]->id);
433
436
            MemFree(cluster[index]->elements[i]);
1227
1230
           for (i=0; i<num_queries; i++) {
1228
1231
               if (gi_list[i] > 0) {
1229
1232
                   id_list[i] = (CharPtr) MemNew(10);
1230
 
                   sprintf(id_list[i], "%ld", gi_list[i]);
 
1233
                   sprintf(id_list[i], "%d", gi_list[i]);
1231
1234
               }
1232
1235
               total_id_len += StringLen(id_list[i]) + 1;
1233
1236
           }
1264
1267
        DayTimeStr(timestr, TRUE, TRUE);
1265
1268
        if (finish_incomplete)
1266
1269
            fprintf(progressfp, 
1267
 
               "%s Finish clustering of %ld queries, starting from query %ld\n", 
 
1270
               "%s Finish clustering of %d queries, starting from query %d\n", 
1268
1271
                    timestr, num_queries, first_seq);
1269
1272
        else
1270
 
            fprintf(progressfp, "%s Start clustering of %ld queries\n", 
 
1273
            fprintf(progressfp, "%s Start clustering of %d queries\n", 
1271
1274
                    timestr, num_queries);
1272
1275
    }
1273
1276
 
1327
1330
          
1328
1331
          if (print_progress && (index + 1)%PROGRESS_INTERVAL == 0) {
1329
1332
             DayTimeStr(timestr, TRUE, TRUE);
1330
 
             fprintf(progressfp, "%s Finished processing of %ld queries\n", 
 
1333
             fprintf(progressfp, "%s Finished processing of %d queries\n", 
1331
1334
                     timestr, index+1);
1332
1335
          }
1333
1336
       } /* End of loop on queries */