@@ -63,6 +63,18 @@ def __init__(self, prog):
6363 args = parser .parse_args (args )
6464
6565 parentdir = os .path .join (os .path .dirname (__file__ ))
66+
67+ # create log file
68+ log_name = os .path .join (args .out , 'funannotate-compare.log' )
69+ if os .path .isfile (log_name ):
70+ os .remove (log_name )
71+
72+ # initialize script, log system info and cmd issue at runtime
73+ lib .setupLogging (log_name )
74+ cmd_args = " " .join (sys .argv )+ '\n '
75+ lib .log .debug (cmd_args )
76+ print ("-------------------------------------------------------" )
77+ lib .SystemInfo ()
6678
6779 # setup funannotate DB path
6880 if args .database :
@@ -76,8 +88,9 @@ def __init__(self, prog):
7688 sys .exit (1 )
7789
7890 # check database sources, so no problems later
79- sources = [os .path .join (FUNDB , 'Pfam-A.clans.tsv' ), os .path .join (FUNDB ,
80- 'interpro.xml' ), os .path .join (FUNDB , 'go.obo' )]
91+ sources = [os .path .join (FUNDB , 'Pfam-A.clans.tsv' ),
92+ os .path .join (FUNDB , 'interpro.tsv' ),
93+ os .path .join (FUNDB , 'go.obo' )]
8194 if not all ([os .path .isfile (f ) for f in sources ]):
8295 lib .log .error (
8396 'Database files not found in %s, run funannotate database and/or funannotate setup' % FUNDB )
0 commit comments