def is_fastq_valid(filename): if not os.path.exists(filename): raise argparse.ArgumentTypeError('Cannot access input file') return filename