Skip to content
Snippets Groups Projects
Commit 18159df2 authored by Hugo Madge Leon's avatar Hugo Madge Leon
Browse files

Small changes overall

parent 9773a0e9
No related branches found
No related tags found
1 merge request!36Small changes overall
"""Set up project."""
from setuptools import setup, find_packages
from pathlib import Path
project_root_dir = Path(__file__).parent.resolve()
with open(project_root_dir / "requirements.txt",
"r", encoding="utf-8") as _file:
INSTALL_REQUIRES = _file.read().splitlines()
"r", encoding="utf-8") as f:
INSTALL_REQUIRES = f.read().splitlines()
url = 'https://git.scicore.unibas.ch/zavolan_group/tools/terminal-fragment-selector'
setup(
name='terminal-fragment-selection',
name='terminal-fragment-selector',
version='0.1.1',
url='https://git.scicore.unibas.ch/zavolan_group/tools/terminal-fragment-selector',
url=url,
license='MIT',
author='Hugo Madge Leon, Sunho Kim, Tanya Nandan',
author_email='hmadge@ethz.ch',
......
"""Initialise package."""
......@@ -61,9 +61,7 @@ def file_validation(fasta_file: str,
"""
with open(fasta_file, "r") as handle:
fasta = SeqIO.parse(handle, "fasta")
try:
any(fasta)
except Exception:
if not any(fasta):
logger.exception("Input FASTA file is either empty or \
incorrect file type.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment