RefgenDetector 3.0.0__tar.gz → 3.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {refgendetector-3.0.0/src/RefgenDetector.egg-info → refgendetector-3.0.2}/PKG-INFO +2 -4
  2. {refgendetector-3.0.0 → refgendetector-3.0.2}/setup.py +7 -8
  3. {refgendetector-3.0.0 → refgendetector-3.0.2/src/RefgenDetector.egg-info}/PKG-INFO +2 -4
  4. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/RefgenDetector.egg-info/SOURCES.txt +3 -1
  5. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/RefgenDetector.egg-info/requires.txt +1 -1
  6. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/aligment_files.py +9 -6
  7. refgendetector-3.0.2/src/refgenDetector/exceptions/NoFileException.py +4 -0
  8. refgendetector-3.0.2/src/refgenDetector/exceptions/__init__.py +0 -0
  9. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/ref_manager.py +7 -1
  10. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/refgenDetector_main.py +14 -12
  11. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/variant_files.py +10 -4
  12. {refgendetector-3.0.0 → refgendetector-3.0.2}/LICENSE +0 -0
  13. {refgendetector-3.0.0 → refgendetector-3.0.2}/README.md +0 -0
  14. {refgendetector-3.0.0 → refgendetector-3.0.2}/setup.cfg +0 -0
  15. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/RefgenDetector.egg-info/dependency_links.txt +0 -0
  16. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/RefgenDetector.egg-info/entry_points.txt +0 -0
  17. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/RefgenDetector.egg-info/top_level.txt +0 -0
  18. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/__init__.py +0 -0
  19. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/chromosomes_dict.py +0 -0
  20. {refgendetector-3.0.0 → refgendetector-3.0.2}/src/refgenDetector/reference_genome_dictionaries.py +0 -0
@@ -1,7 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RefgenDetector
3
- Version: 3.0.0
4
- Summary: RefgenDetector
3
+ Version: 3.0.2
5
4
  Author: Mireia Marin i Ginestar
6
5
  Author-email: <mireia.marin@crg.eu>
7
6
  Keywords: python
@@ -9,13 +8,13 @@ Classifier: Programming Language :: Python :: 3
9
8
  Classifier: Operating System :: Unix
10
9
  Description-Content-Type: text/markdown
11
10
  License-File: LICENSE
12
- Requires-Dist: argparse
13
11
  Requires-Dist: pysam
14
12
  Requires-Dist: psutil
15
13
  Requires-Dist: rich
16
14
  Requires-Dist: pandas
17
15
  Requires-Dist: dnspython
18
16
  Requires-Dist: msgpack
17
+ Requires-Dist: numpy
19
18
  Dynamic: author
20
19
  Dynamic: author-email
21
20
  Dynamic: classifier
@@ -24,7 +23,6 @@ Dynamic: description-content-type
24
23
  Dynamic: keywords
25
24
  Dynamic: license-file
26
25
  Dynamic: requires-dist
27
- Dynamic: summary
28
26
 
29
27
  # EGA - RefgenDetector
30
28
 
@@ -1,32 +1,31 @@
1
1
  from setuptools import setup, find_packages
2
- # read the contents of your README file
3
2
  from pathlib import Path
3
+
4
4
  this_directory = Path(__file__).parent
5
5
  long_description = (this_directory / "README.md").read_text()
6
6
 
7
- VERSION = '3.0.0'
7
+ VERSION = '3.0.2'
8
8
  DESCRIPTION = 'RefgenDetector'
9
9
 
10
- # Setting up
11
10
  setup(
12
11
  name="RefgenDetector",
13
12
  version=VERSION,
14
13
  author="Mireia Marin i Ginestar",
15
14
  author_email="<mireia.marin@crg.eu>",
16
- description=DESCRIPTION,
17
15
  long_description=long_description,
18
16
  long_description_content_type='text/markdown',
19
- install_requires=['argparse', 'pysam', 'psutil', 'rich', 'pandas', 'dnspython', 'msgpack'],
17
+ install_requires=['pysam', 'psutil', 'rich', 'pandas', 'dnspython', 'msgpack', 'numpy'],
20
18
  keywords=['python'],
21
19
  classifiers=[
22
20
  "Programming Language :: Python :: 3",
23
- "Operating System :: Unix"],
21
+ "Operating System :: Unix",
22
+ ],
24
23
  entry_points={
25
24
  'console_scripts': [
26
25
  'refgenDetector=refgenDetector.refgenDetector_main:main',
27
26
  ],
28
27
  },
29
28
  packages=find_packages(where='src'),
30
- package_dir={'': 'src'}
31
-
29
+ package_dir={'': 'src'},
30
+ package_data={"refgenDetector": ["*.msgpack"]}
32
31
  )
@@ -1,7 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RefgenDetector
3
- Version: 3.0.0
4
- Summary: RefgenDetector
3
+ Version: 3.0.2
5
4
  Author: Mireia Marin i Ginestar
6
5
  Author-email: <mireia.marin@crg.eu>
7
6
  Keywords: python
@@ -9,13 +8,13 @@ Classifier: Programming Language :: Python :: 3
9
8
  Classifier: Operating System :: Unix
10
9
  Description-Content-Type: text/markdown
11
10
  License-File: LICENSE
12
- Requires-Dist: argparse
13
11
  Requires-Dist: pysam
14
12
  Requires-Dist: psutil
15
13
  Requires-Dist: rich
16
14
  Requires-Dist: pandas
17
15
  Requires-Dist: dnspython
18
16
  Requires-Dist: msgpack
17
+ Requires-Dist: numpy
19
18
  Dynamic: author
20
19
  Dynamic: author-email
21
20
  Dynamic: classifier
@@ -24,7 +23,6 @@ Dynamic: description-content-type
24
23
  Dynamic: keywords
25
24
  Dynamic: license-file
26
25
  Dynamic: requires-dist
27
- Dynamic: summary
28
26
 
29
27
  # EGA - RefgenDetector
30
28
 
@@ -13,4 +13,6 @@ src/refgenDetector/chromosomes_dict.py
13
13
  src/refgenDetector/ref_manager.py
14
14
  src/refgenDetector/reference_genome_dictionaries.py
15
15
  src/refgenDetector/refgenDetector_main.py
16
- src/refgenDetector/variant_files.py
16
+ src/refgenDetector/variant_files.py
17
+ src/refgenDetector/exceptions/NoFileException.py
18
+ src/refgenDetector/exceptions/__init__.py
@@ -1,7 +1,7 @@
1
- argparse
2
1
  pysam
3
2
  psutil
4
3
  rich
5
4
  pandas
6
5
  dnspython
7
6
  msgpack
7
+ numpy
@@ -1,11 +1,5 @@
1
1
  import os
2
2
  import sys
3
- # Add the parent directory to the Python path
4
- current_dir = os.path.dirname(os.path.abspath(__file__))
5
- parent_dir = os.path.dirname(current_dir)
6
- sys.path.insert(0, parent_dir)
7
- from refgenDetector.reference_genome_dictionaries import *
8
- from refgenDetector.exceptions.NoFileException import *
9
3
  import argparse
10
4
  import csv
11
5
  import gzip
@@ -14,6 +8,15 @@ import psutil
14
8
  import time
15
9
  from rich.console import Console
16
10
 
11
+ try:
12
+ # Works when installed as a pip package
13
+ from .reference_genome_dictionaries import *
14
+ from .exceptions.NoFileException import *
15
+ except ImportError:
16
+ # Works when run directly as a script
17
+ from refgenDetector.reference_genome_dictionaries import *
18
+ from refgenDetector.exceptions.NoFileException import *
19
+
17
20
  console = Console()
18
21
 
19
22
  def intersection_targetfile_referencerepo(dict_SN_LN, reference_genome):
@@ -0,0 +1,4 @@
1
+ class NoFileException(Exception):
2
+ def __init__(self):
3
+ self.message = "File Does Not Exist"
4
+ super().__init__(self.message)
@@ -1,7 +1,13 @@
1
1
  import sys
2
2
  import json
3
3
  from pathlib import Path
4
- from reference_genome_dictionaries import major_releases
4
+ try:
5
+ # Works when installed as a pip package
6
+ from .reference_genome_dictionaries import *
7
+ except ImportError:
8
+ # Works when run directly as a script
9
+ from reference_genome_dictionaries import *
10
+
5
11
 
6
12
  DEFAULT_MAJOR_RELEASES = dict(major_releases)
7
13
 
@@ -3,12 +3,12 @@
3
3
  """ refgenDetector.py: Script to infer the reference genome used to create a BAM or CRAM"""
4
4
 
5
5
  __author__ = "Mireia Marin Ginestar"
6
- __version__ = "2.0"
6
+ __version__ = "3.0.1"
7
7
  __maintainer__ = "Mireia Marin Ginestar"
8
8
  __email__ = "mireia.marin@crg.eu"
9
9
  __status__ = "Developement"
10
10
 
11
- version = "2.0.0"
11
+ version = "3.0.1"
12
12
 
13
13
  import os
14
14
  import sys
@@ -18,16 +18,18 @@ import pysam
18
18
  import psutil
19
19
  import time
20
20
  from rich.console import Console
21
-
22
- # Add the parent directory to the Python path
23
- current_dir = os.path.dirname(os.path.abspath(__file__))
24
- parent_dir = os.path.dirname(current_dir)
25
- sys.path.insert(0, parent_dir)
26
-
27
- from reference_genome_dictionaries import *
28
- from exceptions.NoFileException import *
29
- from aligment_files import *
30
- from variant_files import *
21
+ try:
22
+ # Works when installed as a pip package
23
+ from .reference_genome_dictionaries import *
24
+ from .exceptions.NoFileException import *
25
+ from .aligment_files import *
26
+ from .variant_files import *
27
+ except ImportError:
28
+ # Works when run directly as a script
29
+ from reference_genome_dictionaries import *
30
+ from exceptions.NoFileException import *
31
+ from aligment_files import *
32
+ from variant_files import *
31
33
 
32
34
  console = Console()
33
35
 
@@ -3,14 +3,20 @@ import sys
3
3
  import time
4
4
  import pandas as pd
5
5
  from dns.inet import inet_pton
6
- from aligment_files import comparison
7
- from chromosomes_dict import *
8
6
  from rich.console import Console
9
- import json
10
7
  import os
11
8
  import numpy as np
12
9
  import msgpack
13
- import pysam
10
+ try:
11
+ # Works when installed as a pip package
12
+ from .aligment_files import *
13
+ from .chromosomes_dict import *
14
+ except ImportError:
15
+ # Works when run directly as a script
16
+ from aligment_files import comparison
17
+ from chromosomes_dict import *
18
+
19
+
14
20
 
15
21
  final_results = []
16
22
  console = Console(highlight=False)
File without changes
File without changes
File without changes