Skip to content

Commit

Permalink
command line now printed to the log file
Browse files Browse the repository at this point in the history
  • Loading branch information
calkan committed May 16, 2019
1 parent 90701aa commit a4367bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion processbam.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include "config.h"

/* Sample this many fragments to calculate avg/median/std per library */
#define SAMPLEFRAG 1000000
#define SAMPLEFRAG 100000

/* Maximum sequence/quality length */
#define MAX_SEQ 1000
Expand Down
5 changes: 5 additions & 0 deletions tardis.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ int main( int argc, char** argv)
fprintf( logFile, "#CreationDate=%d.%d.%d\n\n", timeinfo->tm_year + 1900, timeinfo->tm_mon + 1, timeinfo->tm_mday);
free(log_file_path);

fprintf( logFile, "Command line:\n \t%s ", argv[0]);
for ( i = 1; i < argc; i++)
fprintf( logFile, "%s ", argv[i]);
fprintf( logFile, "\n\n");

/* Load configuration file (created if it does not exist) */
cfg = ( configuration*) getMem( sizeof( configuration));
load_config( cfg, params);
Expand Down

0 comments on commit a4367bb

Please sign in to comment.