Skip to content

Commit

Permalink
Basic usage functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
yhoogstrate committed Aug 25, 2015
1 parent c69f47d commit 56585ba
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
STAR
Spliced Transcripts Alignment to a Reference
© Alexander Dobin, 2009-20134
© Alexander Dobin, 2009-2015

STAR is a free open source software distributed under GPLv3

Expand Down
26 changes: 23 additions & 3 deletions source/STAR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,33 @@
#include "bam_cat.h"

#include "htslib/htslib/sam.h"
#include "parametersDefault.xxd"



void usage() {
printf("Usage: STAR [options]... --genomeDir REFERENCE --readFilesIn R1.fq R2.fq\n");
printf("Spliced Transcripts Alignment to a Reference (c) Alexander Dobin, 2009-2015\n\n");

std::cout << parametersDefault;

printf("For more details see:\n");
printf("<https://github.com/alexdobin/STAR>\n");
printf("<https://github.com/alexdobin/STAR/blob/master/doc/STARmanual.pdf>\n");

exit(0);
}


int main(int argInN, char* argIn[]) {

// If no argument is given, or the first argument is either '-h' or '--help', run usage()
if((argInN == 1) || (argInN == 2 && (strcmp("-h",argIn[1]) == 0 || strcmp ("--help",argIn[1]) == 0 ))) {
usage();
}

time(&g_statsAll.timeStart);

Parameters *P = new Parameters; //all parameters

P->inputParameters(argInN, argIn);

*(P->inOut->logStdOut) << timeMonthDayTime(g_statsAll.timeStart) << " ..... Started STAR run\n" <<flush;
Expand Down

0 comments on commit 56585ba

Please sign in to comment.