ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/fqtrim/fqtrim.cpp
(Generate patch)
# Line 155 | Line 155
155      }
156  
157    openfw(f_out, args, 'o');
158 +  if (f_out==NULL) f_out=stdout;
159    if (trashReport)
160      openfw(freport, args, 'r');
161    char* infile=NULL;
# Line 333 | Line 334
334           }
335        if (isfasta) {
336          if (prefix.is_empty()) {
337 <          fprintf(f_out, "@%s_x%d\n%s\n", qd->firstname, qd->count,
337 >          fprintf(f_out, ">%s_x%d\n%s\n", qd->firstname, qd->count,
338                          rseq.chars());
339            }
340          else { //use custom read name
341 <          fprintf(f_out, "@%s%08d_x%d\n%s\n", prefix.chars(), outcounter,
341 >          fprintf(f_out, ">%s%08d_x%d\n%s\n", prefix.chars(), outcounter,
342                       qd->count, rseq.chars());
343            }
344          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines