Skip to content
Snippets Groups Projects
Commit 96631891 authored by Aaron's avatar Aaron
Browse files

bamToBed assumes stdin.

parent 141a5bf6
No related branches found
No related tags found
No related merge requests found
......@@ -55,11 +55,11 @@ int main(int argc, char* argv[]) {
bool showHelp = false;
// input files
string bamFile;
string color = "255,0,0";
string tag = "";
string bamFile = "stdin";
string color = "255,0,0";
string tag = "";
bool haveBam = false;
bool haveBam = true;
bool haveColor = false;
bool haveOtherTag = false;
bool writeBedPE = false;
......@@ -69,7 +69,6 @@ int main(int argc, char* argv[]) {
bool obeySplits = false;
// check to see if we should print out some help
if(argc <= 1) showHelp = true;
for(int i = 1; i < argc; i++) {
int parameterLength = (int)strlen(argv[i]);
......@@ -89,7 +88,6 @@ int main(int argc, char* argv[]) {
if(PARAMETER_CHECK("-i", 2, parameterLength)) {
if ((i+1) < argc) {
haveBam = true;
bamFile = argv[i + 1];
i++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment