Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bamtools print #185

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions src/toolkit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_executable( bamtools_cmd
bamtools_header.cpp
bamtools_index.cpp
bamtools_merge.cpp
bamtools_print.cpp
bamtools_random.cpp
bamtools_resolve.cpp
bamtools_revert.cpp
Expand Down
4 changes: 4 additions & 0 deletions src/toolkit/bamtools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "bamtools_header.h"
#include "bamtools_index.h"
#include "bamtools_merge.h"
#include "bamtools_print.h"
#include "bamtools_random.h"
#include "bamtools_resolve.h"
#include "bamtools_revert.h"
Expand All @@ -36,6 +37,7 @@ static const std::string FILTER = "filter";
static const std::string HEADER = "header";
static const std::string INDEX = "index";
static const std::string MERGE = "merge";
static const std::string PRINT = "print";
static const std::string RANDOM = "random";
static const std::string RESOLVE = "resolve";
static const std::string REVERT = "revert";
Expand Down Expand Up @@ -75,6 +77,7 @@ AbstractTool* CreateTool(const std::string& arg)
if (arg == HEADER) return new HeaderTool;
if (arg == INDEX) return new IndexTool;
if (arg == MERGE) return new MergeTool;
if (arg == PRINT) return new PrintTool;
if (arg == RANDOM) return new RandomTool;
if (arg == RESOLVE) return new ResolveTool;
if (arg == REVERT) return new RevertTool;
Expand Down Expand Up @@ -114,6 +117,7 @@ int Help(int argc, char* argv[])
std::cerr << "\theader Prints BAM header information" << std::endl;
std::cerr << "\tindex Generates index for BAM file" << std::endl;
std::cerr << "\tmerge Merge multiple BAM files into single file" << std::endl;
std::cerr << "\tprint Text printout of alignments at a location" << std::endl;
std::cerr << "\trandom Select random alignments from existing BAM file(s), intended "
"more as a testing tool."
<< std::endl;
Expand Down