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

small changes

parent 9773a0e9
Branches
Tags
3 merge requests!38Hugo,!37Test folder,!36Small changes overall
This commit is part of merge request !36. Comments created here will be created in the context of that merge request.
"""Set up project.""" """Set up project."""
from setuptools import setup, find_packages from setuptools import setup, find_packages
from pathlib import Path from pathlib import Path
project_root_dir = Path(__file__).parent.resolve() project_root_dir = Path(__file__).parent.resolve()
with open(project_root_dir / "requirements.txt", with open(project_root_dir / "requirements.txt",
"r", encoding="utf-8") as _file: "r", encoding="utf-8") as f:
INSTALL_REQUIRES = _file.read().splitlines() INSTALL_REQUIRES = f.read().splitlines()
url = 'https://git.scicore.unibas.ch/zavolan_group/tools/terminal-fragment-selector'
setup( setup(
name='terminal-fragment-selection', name='terminal-fragment-selector',
version='0.1.1', version='0.1.1',
url='https://git.scicore.unibas.ch/zavolan_group/tools/terminal-fragment-selector', url=url,
license='MIT', license='MIT',
author='Hugo Madge Leon, Sunho Kim, Tanya Nandan', author='Hugo Madge Leon, Sunho Kim, Tanya Nandan',
author_email='hmadge@ethz.ch', author_email='hmadge@ethz.ch',
description='Terminal fragment selector', description='Terminal fragment selector',
packages=find_packages(), packages=find_packages(),
install_requires=INSTALL_REQUIRES install_requires=INSTALL_REQUIRES,
entry_points={
'console_scripts': ['my-executable=terminal-fragment-selector.main:main'],
}
) )
"""Initialise package."""
from main import main
main()
...@@ -61,9 +61,7 @@ def file_validation(fasta_file: str, ...@@ -61,9 +61,7 @@ def file_validation(fasta_file: str,
""" """
with open(fasta_file, "r") as handle: with open(fasta_file, "r") as handle:
fasta = SeqIO.parse(handle, "fasta") fasta = SeqIO.parse(handle, "fasta")
try: if not any(fasta):
any(fasta)
except Exception:
logger.exception("Input FASTA file is either empty or \ logger.exception("Input FASTA file is either empty or \
incorrect file type.") incorrect file type.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment