From a4367bb00e1ec5814d290595e50f5b20bdd377c3 Mon Sep 17 00:00:00 2001 From: Can Alkan Date: Thu, 16 May 2019 19:15:06 +0300 Subject: [PATCH] command line now printed to the log file --- processbam.h | 2 +- tardis.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/processbam.h b/processbam.h index 8dceaea..57c12b1 100644 --- a/processbam.h +++ b/processbam.h @@ -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 diff --git a/tardis.c b/tardis.c index 0252f0a..c56c32d 100644 --- a/tardis.c +++ b/tardis.c @@ -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);