seqmat 1.2.1__tar.gz → 1.2.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 (28) hide show
  1. {seqmat-1.2.1/seqmat.egg-info → seqmat-1.2.2}/PKG-INFO +1 -1
  2. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/__init__.py +1 -1
  3. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/seqmat.py +3 -2
  4. {seqmat-1.2.1 → seqmat-1.2.2/seqmat.egg-info}/PKG-INFO +1 -1
  5. {seqmat-1.2.1 → seqmat-1.2.2}/setup.py +1 -1
  6. {seqmat-1.2.1 → seqmat-1.2.2}/LICENSE +0 -0
  7. {seqmat-1.2.1 → seqmat-1.2.2}/MANIFEST.in +0 -0
  8. {seqmat-1.2.1 → seqmat-1.2.2}/README.md +0 -0
  9. {seqmat-1.2.1 → seqmat-1.2.2}/examples/basic_usage.py +0 -0
  10. {seqmat-1.2.1 → seqmat-1.2.2}/examples/data_inspection.py +0 -0
  11. {seqmat-1.2.1 → seqmat-1.2.2}/requirements.txt +0 -0
  12. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/cli.py +0 -0
  13. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/config.py +0 -0
  14. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/gene.py +0 -0
  15. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/lmdb_store.py +0 -0
  16. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/sqlite_store.py +0 -0
  17. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/transcript.py +0 -0
  18. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/utils.py +0 -0
  19. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/SOURCES.txt +0 -0
  20. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/dependency_links.txt +0 -0
  21. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/entry_points.txt +0 -0
  22. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/requires.txt +0 -0
  23. {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/top_level.txt +0 -0
  24. {seqmat-1.2.1 → seqmat-1.2.2}/setup.cfg +0 -0
  25. {seqmat-1.2.1 → seqmat-1.2.2}/tests/__init__.py +0 -0
  26. {seqmat-1.2.1 → seqmat-1.2.2}/tests/bench_gene_creation.py +0 -0
  27. {seqmat-1.2.1 → seqmat-1.2.2}/tests/test_gene.py +0 -0
  28. {seqmat-1.2.1 → seqmat-1.2.2}/tests/test_seqmat.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seqmat
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Lightning-fast gene manipulation and analysis library.
5
5
  Home-page: https://github.com/nicolasalynn/seqmat
6
6
  Author: Nicolas Lynn Vila
@@ -5,7 +5,7 @@ A comprehensive Python library for genomic sequence analysis with full mutation
5
5
  splicing analysis, and sequence manipulation.
6
6
  """
7
7
 
8
- __version__ = "1.2.1"
8
+ __version__ = "1.2.2"
9
9
  __author__ = "Nicolas Lynn Vila"
10
10
  __email__ = "nicolasalynn@gmail.com"
11
11
 
@@ -287,8 +287,9 @@ class SeqMat:
287
287
  new.mutations = copy.deepcopy(self.mutations)
288
288
  new.mutated_positions = set(self.mutated_positions)
289
289
  if start is not None or end is not None:
290
- lo = start or self.index.min()
291
- hi = end or self.index.max()
290
+ lo = start if start is not None else self.index.min()
291
+ hi = end if end is not None else self.index.max()
292
+ lo, hi = min(lo, hi), max(lo, hi)
292
293
  mask = (self.seq_array['index'] >= lo) & (self.seq_array['index'] <= hi)
293
294
  new.seq_array = self.seq_array[mask].copy()
294
295
  new._cow = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seqmat
3
- Version: 1.2.1
3
+ Version: 1.2.2
4
4
  Summary: Lightning-fast gene manipulation and analysis library.
5
5
  Home-page: https://github.com/nicolasalynn/seqmat
6
6
  Author: Nicolas Lynn Vila
@@ -8,7 +8,7 @@ long_description = (this_directory / "README.md").read_text()
8
8
 
9
9
  setup(
10
10
  name="seqmat",
11
- version="1.2.1",
11
+ version="1.2.2",
12
12
  author="Nicolas Lynn Vila",
13
13
  author_email="nicolasalynn@gmail.com",
14
14
  description="Lightning-fast gene manipulation and analysis library.",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes