Mercurial > repos > chrisd > testing
view gene_fraction/src/main.cpp @ 0:f95150c37d38 draft default tip
planemo upload for repository https://github.com/ChrisD11/Tools commit ddc95e5d6b5f2c0a5340c0bc384aa822db8856d5
author | chrisd |
---|---|
date | Sun, 21 Feb 2016 23:31:55 -0500 |
parents | |
children |
line wrap: on
line source
#include <string> #include <iostream> #include <vector> #include "int_util.h" #include "dir_util.h" #include "args.h" #include "Fasta.h" #include "Sam.h" #include "SamRatio.h" using namespace std; int main(int argc, char *argv[]) { cmd_args args; args = parse_command_line(argc, argv); Fasta f(args.amr_fp); f.read_fasta(args.amr_fp); if(args.sam_dir) { list<string> sam_files = parse_sam_dir(args.sam_fp); for(auto &fn : sam_files) { args.sam_fp = fn; Sam s(args.sam_fp); s.read_sam(args); generate_samples(f.records, s.alignment, args); } } else { Sam s(args.sam_fp); s.read_sam(args); generate_samples(f.records, s.alignment, args); } return 0; }