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.
- {seqmat-1.2.1/seqmat.egg-info → seqmat-1.2.2}/PKG-INFO +1 -1
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/__init__.py +1 -1
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/seqmat.py +3 -2
- {seqmat-1.2.1 → seqmat-1.2.2/seqmat.egg-info}/PKG-INFO +1 -1
- {seqmat-1.2.1 → seqmat-1.2.2}/setup.py +1 -1
- {seqmat-1.2.1 → seqmat-1.2.2}/LICENSE +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/MANIFEST.in +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/README.md +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/examples/basic_usage.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/examples/data_inspection.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/requirements.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/cli.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/config.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/gene.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/lmdb_store.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/sqlite_store.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/transcript.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat/utils.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/SOURCES.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/dependency_links.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/entry_points.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/requires.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/seqmat.egg-info/top_level.txt +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/setup.cfg +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/tests/__init__.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/tests/bench_gene_creation.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/tests/test_gene.py +0 -0
- {seqmat-1.2.1 → seqmat-1.2.2}/tests/test_seqmat.py +0 -0
|
@@ -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
|
|
291
|
-
hi = end
|
|
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
|
|
@@ -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.
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|