diff --git a/workflow/scripts/qc_fastq.py b/workflow/scripts/qc_fastq.py
index f58cb9f8e1a4bd249b7eb92fe56476616e4cb552..991d9275c2890d16c38c8cf8f2456911aa97a040 100755
--- a/workflow/scripts/qc_fastq.py
+++ b/workflow/scripts/qc_fastq.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env python3
-# -*- coding: latin-1 -*-
+
 '''QC check of raw .fastq files using FASTQC.'''
 
 import os
@@ -23,19 +23,6 @@ LOGGER.propagate = False
 LOGGER.setLevel(logging.INFO)
 
 
-def check_tools():
-    '''Checks for required componenets on user system'''
-
-    LOGGER.info('Checking for required libraries and components on this system')
-
-    fastqc_path = shutil.which("fastqc")
-    if fastqc_path:
-        LOGGER.info('Found fastqc: %s', fastqc_path)
-    else:
-        print("Please install 'fastqc' before using the tool")
-        sys.exit()
-
-
 def get_args():
     '''Define arguments.'''
     parser = argparse.ArgumentParser(
@@ -51,6 +38,19 @@ def get_args():
     return args
 
 
+def check_tools():
+    '''Checks for required componenets on user system'''
+
+    LOGGER.info('Checking for required libraries and components on this system')
+
+    fastqc_path = shutil.which("fastqc")
+    if fastqc_path:
+        LOGGER.info('Found fastqc: %s', fastqc_path)
+    else:
+        print("Please install 'fastqc' before using the tool")
+        sys.exit()
+
+
 def check_qual_fastq(fastq):
     '''Run fastqc on 1 or 2 files.'''
     qc_command = "fastqc -t -f fastq " + " ".join(fastq)