Skip to content
Snippets Groups Projects
Commit 02305427 authored by Larissa Glass's avatar Larissa Glass Committed by Michael Zimmermann
Browse files

Resolve: Hotfix package installation

parent 2c8e894b
No related branches found
No related tags found
1 merge request!7Resolve: Hotfix package installation
......@@ -27,15 +27,11 @@ To install package, run
pip install .
```
Afterwards, it can be imported using
To generate the sampled transcripts, open a new shell, activate your environment and run
```python
import tsg
```
conda activate transcript-structure-generator
To generate the sampled transcripts, run
```
transcript-generator --transcripts <transcripts_file> --annotation <annotations_file> --prob_inclusion=<probability_inclusion>
```
......
[project]
name = "tsg"
version = "0.1.0"
authors = [
{ name="Michael Zimmermann", email="michael.zimmermann@unibas.ch" },
{ name="Andri Fraenkl", email="andri.fraenkl@unibas.ch" },
{ name="Larissa Glass", email="larissa.glass@unibas.ch" },
]
description = "Transcript Structure Generator"
readme = "README.md"
requires-python = ">=3.7"
license = {text = "MIT"}
dependencies = [
"pandas",
]
[project.urls]
"Homepage" = "https://git.scicore.unibas.ch/zavolan_group/tools/transcript-structure-generator"
[project.scripts]
transcript-generator = "tsg.cli:app"
\ No newline at end of file
"""Setup the package."""
from setuptools import setup
setup(
name='tsg',
author='Zimmermann, M; Fraenkl, A;Glass, L',
url='https://git.scicore.unibas.ch/zavolan_group/tools/transcript-structure-generator',
license='MIT',
version='0.0.1',
packages=['tsg'],
install_requires=['pandas'],
entry_points={
'console_scripts': [
'transcript-generator = tsg:cli',
]
}
)
"""Transcript structure generator package."""
from tsg.cli import cli
__version__ = '0.0.0'
from tsg.cli import app
if __name__ == "__main__":
app()
\ No newline at end of file
......@@ -2,7 +2,7 @@ import argparse
import logging
from pathlib import Path
from .main import sample_transcripts
from tsg.main import sample_transcripts
def setup_logging(loglevel: str=None) -> None:
......@@ -40,7 +40,7 @@ def output_filename(filename: str) -> str:
return "generated_" + filepath.name
def cli():
def app():
args = get_args()
setup_logging(args.log)
......@@ -51,7 +51,3 @@ def cli():
output_filename(args.transcripts),
output_filename(args.annotation),
)
if __name__ == "__main__":
cli()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment