Skip to content
Snippets Groups Projects
Commit 15503ca9 authored by Alice Brenon's avatar Alice Brenon
Browse files

Turn the repos into a (hopefully) proper python package

parent 9013115e
No related branches found
No related tags found
No related merge requests found
*.pyc
#!/usr/bin/python3
import argparse
from sequence import eNESequence
from editDistance import Metric
from ene_comparator import eNESequence, Metric
from sys import argv
def getArgs():
......@@ -29,7 +28,7 @@ def getMetric(args):
otherWeight = args.otherWeight or 0.
return Metric(missingENE, missingType, wrongType, namesWeight, otherWeight)
if __name__ == '__main__':
def main():
args = getArgs()
print(args)
m = getMetric(args)
......@@ -38,3 +37,6 @@ if __name__ == '__main__':
print([str(s) for s in leftSequence])
print([str(s) for s in rightSequence])
print(m.differences(leftSequence, rightSequence))
if __name__ == '__main__':
main()
from .editDistance import Metric
from .sequence import eNESequence
File moved
File moved
setup.py 0 → 100644
from distutils.core import setup
setup(
name="ENE-comparator",
version="0.1.0",
description="yeah, maybe",
author="Alice Brenon",
author_email="alice.brenon@liris.cnrs.fr",
url="https://gitlab.liris.cnrs.fr/abrenon/ene-comparator",
packages=["ene_comparator"],
install_requires=['lxml'],
scripts=['comparator.py'],
)
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