Mercurial > repos > chrisd > testshed
comparison gene_fraction/src/Sam.h @ 0:0fd352f62446 draft default tip
planemo upload for repository https://github.com/ChrisD11/Duplicon commit 3ee0594c692faac542ffa58f4339d79b9b8aefbd-dirty
| author | chrisd |
|---|---|
| date | Sun, 21 Feb 2016 06:05:24 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0fd352f62446 |
|---|---|
| 1 #ifndef SAM_H | |
| 2 #define SAM_H | |
| 3 | |
| 4 #include <string> | |
| 5 #include <vector> | |
| 6 | |
| 7 #include "args.h" | |
| 8 #include "Alignments.h" | |
| 9 | |
| 10 /** | |
| 11 * Class for dealing with sam files | |
| 12 */ | |
| 13 | |
| 14 class Sam { | |
| 15 public: | |
| 16 /** | |
| 17 * Ctor initializes sam file path | |
| 18 */ | |
| 19 Sam(std::string sam_fp); | |
| 20 void read_sam(cmd_args args); | |
| 21 | |
| 22 /** | |
| 23 * Reads sam file from stdin | |
| 24 */ | |
| 25 void read_from_stdin(); | |
| 26 | |
| 27 /** | |
| 28 * Reads sam file from directory or file path | |
| 29 */ | |
| 30 void read_from_file(const std::string &sam_fp); | |
| 31 | |
| 32 /** | |
| 33 * | |
| 34 */ | |
| 35 void read_from_dir(const std::string &sam_dir_fp); | |
| 36 | |
| 37 std::vector<Alignments> alignment; | |
| 38 | |
| 39 private: | |
| 40 std::string _sam_fp; | |
| 41 }; | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 #endif /* SAM_H */ | |
| 48 |
