Skip to content
Snippets Groups Projects
Commit dfed27c2 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

update syntax and order of qc_fastq.py

parent 5f7f3d0f
Branches
Tags
No related merge requests found
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: latin-1 -*-
'''QC check of raw .fastq files using FASTQC.''' '''QC check of raw .fastq files using FASTQC.'''
import os import os
...@@ -23,19 +23,6 @@ LOGGER.propagate = False ...@@ -23,19 +23,6 @@ LOGGER.propagate = False
LOGGER.setLevel(logging.INFO) 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(): def get_args():
'''Define arguments.''' '''Define arguments.'''
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
...@@ -51,6 +38,19 @@ def get_args(): ...@@ -51,6 +38,19 @@ def get_args():
return 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): def check_qual_fastq(fastq):
'''Run fastqc on 1 or 2 files.''' '''Run fastqc on 1 or 2 files.'''
qc_command = "fastqc -t -f fastq " + " ".join(fastq) qc_command = "fastqc -t -f fastq " + " ".join(fastq)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment