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