Skip to content
Snippets Groups Projects
Commit 53552b00 authored by Hugo Madge Leon's avatar Hugo Madge Leon
Browse files
parents a6b19bc8 18159df2
No related branches found
No related tags found
No related merge requests found
argparse
biopython >= 1.78
numpy >= 1.23.3
pandas >= 1.4.4
\ No newline at end of file
From setup tools import setup, find_packages
"""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 f:
INSTALL_REQUIRES = f.read().splitlines()
url = 'https://git.scicore.unibas.ch/zavolan_group/tools/terminal-fragment-selector'
setup(
name = prog_for_life_science,
url = ssh://git@git.scicore.unibas.ch:2222/zavolan_group/tools/terminal-fragment-selector.git
author = Hugo Madge Leon, Sunho Kim, Tanya Nandan,
author_email = kimsun@ethz.ch,
License = MIT,
version = 1.0.0,
packages = find_packages(),
install_requires= ['random','argparse 1.4.0','os.path', 'check_positive', 'arghelper 0.4.2', 'fragmentation_v2', 'numpy 1.23.4', 'pandas 1.5']
)
\ No newline at end of file
name='terminal-fragment-selector',
version='0.1.1',
url=url,
license='MIT',
author='Hugo Madge Leon, Sunho Kim, Tanya Nandan',
author_email='hmadge@ethz.ch',
description='Terminal fragment selector',
packages=find_packages(),
install_requires=INSTALL_REQUIRES
)
"""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