File: transposeLargeFile.cpp

package info (click to toggle)
bitseq 0.7.5+dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 676 kB
  • sloc: cpp: 7,043; python: 562; makefile: 150; sh: 52
file content (22 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "ArgumentParser.h"
#include "transposeFiles.h"
#include "common.h"

int main(int argc,char* argv[]){
   string programDescription = 
"Transposes [input files] into [outFileName] so that there are M lines with N columns each.";
   ArgumentParser args(programDescription,"[input files]",1);
   args.addOptionS("o","outFile","outFileName",1,"Name of the output file.");
   if(!args.parse(argc,argv))return 0;
   if(args.verbose)buildTime(argv[0],__DATE__,__TIME__);

   if(transposeFiles(args.args(),args.getS("outFileName"),args.verbose)){
      if(args.verbose)message("DONE.\n");
      return 0;
   }else{
      error("Failed.\n");
      return 1;
   }
}