seqmat 0.1.47__tar.gz → 0.1.49__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 (26) hide show
  1. {seqmat-0.1.47/seqmat.egg-info → seqmat-0.1.49}/PKG-INFO +8 -4
  2. {seqmat-0.1.47 → seqmat-0.1.49}/README.md +6 -2
  3. {seqmat-0.1.47 → seqmat-0.1.49}/requirements.txt +2 -2
  4. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/__init__.py +1 -1
  5. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/config.py +4 -1
  6. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/seqmat.py +3 -1
  7. {seqmat-0.1.47 → seqmat-0.1.49/seqmat.egg-info}/PKG-INFO +8 -4
  8. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat.egg-info/requires.txt +1 -1
  9. {seqmat-0.1.47 → seqmat-0.1.49}/setup.py +2 -2
  10. {seqmat-0.1.47 → seqmat-0.1.49}/LICENSE +0 -0
  11. {seqmat-0.1.47 → seqmat-0.1.49}/MANIFEST.in +0 -0
  12. {seqmat-0.1.47 → seqmat-0.1.49}/examples/basic_usage.py +0 -0
  13. {seqmat-0.1.47 → seqmat-0.1.49}/examples/data_inspection.py +0 -0
  14. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/cli.py +0 -0
  15. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/gene.py +0 -0
  16. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/lmdb_store.py +0 -0
  17. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/transcript.py +0 -0
  18. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat/utils.py +0 -0
  19. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat.egg-info/SOURCES.txt +0 -0
  20. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat.egg-info/dependency_links.txt +0 -0
  21. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat.egg-info/entry_points.txt +0 -0
  22. {seqmat-0.1.47 → seqmat-0.1.49}/seqmat.egg-info/top_level.txt +0 -0
  23. {seqmat-0.1.47 → seqmat-0.1.49}/setup.cfg +0 -0
  24. {seqmat-0.1.47 → seqmat-0.1.49}/tests/__init__.py +0 -0
  25. {seqmat-0.1.47 → seqmat-0.1.49}/tests/test_gene.py +0 -0
  26. {seqmat-0.1.47 → seqmat-0.1.49}/tests/test_seqmat.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seqmat
3
- Version: 0.1.47
3
+ Version: 0.1.49
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
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: numpy>=1.20.0
19
+ Requires-Dist: numpy<3,>=1.20.0
20
20
  Requires-Dist: pandas>=2.0.0
21
21
  Requires-Dist: pysam>=0.19.0
22
22
  Requires-Dist: requests>=2.26.0
@@ -496,6 +496,10 @@ print("Paths:", config)
496
496
  - Point all users' configs to the same data paths
497
497
  - Consider using environment variables for paths
498
498
 
499
+ **For ephemeral environments (e.g. Run.ai, Docker):**
500
+ - Store `config.json` in your persistent storage directory.
501
+ - Set `SEQMAT_CONFIG_DIR` to that directory so SeqMat finds the config even when the rest of the filesystem is ephemeral: `export SEQMAT_CONFIG_DIR=/storage/nicolaslynn/data/seqmat` (then keep `config.json` in that directory).
502
+
499
503
  **For development/testing:**
500
504
  - Use separate config files or directories
501
505
  - Set `default_organism` to your most-used organism
@@ -727,8 +731,8 @@ SeqMat is optimized for performance:
727
731
  ## Dependencies
728
732
 
729
733
  **Core (always required):**
730
- - numpy >= 1.20.0
731
- - pandas >= 1.3.0
734
+ - numpy >= 1.20.0, <3 (tested with NumPy 2.x)
735
+ - pandas >= 1.3.0 (use a build compatible with your NumPy version; for NumPy 2, prefer pandas ≥2.2 and pyarrow ≥14)
732
736
  - pysam >= 0.19.0
733
737
  - requests >= 2.26.0
734
738
  - tqdm >= 4.62.0
@@ -450,6 +450,10 @@ print("Paths:", config)
450
450
  - Point all users' configs to the same data paths
451
451
  - Consider using environment variables for paths
452
452
 
453
+ **For ephemeral environments (e.g. Run.ai, Docker):**
454
+ - Store `config.json` in your persistent storage directory.
455
+ - Set `SEQMAT_CONFIG_DIR` to that directory so SeqMat finds the config even when the rest of the filesystem is ephemeral: `export SEQMAT_CONFIG_DIR=/storage/nicolaslynn/data/seqmat` (then keep `config.json` in that directory).
456
+
453
457
  **For development/testing:**
454
458
  - Use separate config files or directories
455
459
  - Set `default_organism` to your most-used organism
@@ -681,8 +685,8 @@ SeqMat is optimized for performance:
681
685
  ## Dependencies
682
686
 
683
687
  **Core (always required):**
684
- - numpy >= 1.20.0
685
- - pandas >= 1.3.0
688
+ - numpy >= 1.20.0, <3 (tested with NumPy 2.x)
689
+ - pandas >= 1.3.0 (use a build compatible with your NumPy version; for NumPy 2, prefer pandas ≥2.2 and pyarrow ≥14)
686
690
  - pysam >= 0.19.0
687
691
  - requests >= 2.26.0
688
692
  - tqdm >= 4.62.0
@@ -1,5 +1,5 @@
1
- # Core dependencies
2
- numpy>=1.20.0,<2.0.0
1
+ # Core dependencies (numpy>=2 supported)
2
+ numpy>=1.20.0,<3
3
3
  pandas==2.1.4
4
4
  pysam>=0.19.0
5
5
  requests>=2.26.0
@@ -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__ = "0.1.47"
8
+ __version__ = "0.1.49"
9
9
  __author__ = "Nicolas Lynn Vila"
10
10
  __email__ = "nicolasalynn@gmail.com"
11
11
 
@@ -1,11 +1,14 @@
1
1
  """Configuration management for SeqMat."""
2
2
  import json
3
+ import os
3
4
  from pathlib import Path
4
5
  from typing import Dict, Any, List, Optional
5
6
 
6
7
  from platformdirs import user_config_dir, user_data_dir
7
8
 
8
- DEFAULT_CONFIG_DIR = Path(user_config_dir("seqmat", appauthor=False))
9
+ # Allow override via env so config can live in persistent storage (e.g. Run.ai)
10
+ _config_dir_env = os.environ.get("SEQMAT_CONFIG_DIR")
11
+ DEFAULT_CONFIG_DIR = Path(_config_dir_env) if _config_dir_env else Path(user_config_dir("seqmat", appauthor=False))
9
12
  DEFAULT_DATA_DIR = Path(user_data_dir("seqmat", appauthor=False))
10
13
  CONFIG_FILE = DEFAULT_CONFIG_DIR / "config.json"
11
14
 
@@ -423,7 +423,9 @@ class SeqMat:
423
423
  e['valid'] = True
424
424
  entries.append(e)
425
425
  i = np.searchsorted(self.seq_array['index'], pos, 'right')
426
- self.seq_array = np.concatenate([self.seq_array[:i], np.array(entries), self.seq_array[i:]])
426
+ # Explicit dtype for NumPy 2.x: list of np.void must be stacked with same dtype
427
+ entries_arr = np.array(entries, dtype=self.seq_array.dtype)
428
+ self.seq_array = np.concatenate([self.seq_array[:i], entries_arr, self.seq_array[i:]])
427
429
 
428
430
  def _delete(self, pos: int, ref: str) -> None:
429
431
  """Apply a deletion mutation."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seqmat
3
- Version: 0.1.47
3
+ Version: 0.1.49
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
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: numpy>=1.20.0
19
+ Requires-Dist: numpy<3,>=1.20.0
20
20
  Requires-Dist: pandas>=2.0.0
21
21
  Requires-Dist: pysam>=0.19.0
22
22
  Requires-Dist: requests>=2.26.0
@@ -496,6 +496,10 @@ print("Paths:", config)
496
496
  - Point all users' configs to the same data paths
497
497
  - Consider using environment variables for paths
498
498
 
499
+ **For ephemeral environments (e.g. Run.ai, Docker):**
500
+ - Store `config.json` in your persistent storage directory.
501
+ - Set `SEQMAT_CONFIG_DIR` to that directory so SeqMat finds the config even when the rest of the filesystem is ephemeral: `export SEQMAT_CONFIG_DIR=/storage/nicolaslynn/data/seqmat` (then keep `config.json` in that directory).
502
+
499
503
  **For development/testing:**
500
504
  - Use separate config files or directories
501
505
  - Set `default_organism` to your most-used organism
@@ -727,8 +731,8 @@ SeqMat is optimized for performance:
727
731
  ## Dependencies
728
732
 
729
733
  **Core (always required):**
730
- - numpy >= 1.20.0
731
- - pandas >= 1.3.0
734
+ - numpy >= 1.20.0, <3 (tested with NumPy 2.x)
735
+ - pandas >= 1.3.0 (use a build compatible with your NumPy version; for NumPy 2, prefer pandas ≥2.2 and pyarrow ≥14)
732
736
  - pysam >= 0.19.0
733
737
  - requests >= 2.26.0
734
738
  - tqdm >= 4.62.0
@@ -1,4 +1,4 @@
1
- numpy>=1.20.0
1
+ numpy<3,>=1.20.0
2
2
  pandas>=2.0.0
3
3
  pysam>=0.19.0
4
4
  requests>=2.26.0
@@ -8,7 +8,7 @@ long_description = (this_directory / "README.md").read_text()
8
8
 
9
9
  setup(
10
10
  name="seqmat",
11
- version="0.1.47",
11
+ version="0.1.49",
12
12
  author="Nicolas Lynn Vila",
13
13
  author_email="nicolasalynn@gmail.com",
14
14
  description="Lightning-fast gene manipulation and analysis library.",
@@ -28,7 +28,7 @@ setup(
28
28
  ],
29
29
  python_requires=">=3.10",
30
30
  install_requires=[
31
- "numpy>=1.20.0",
31
+ "numpy>=1.20.0,<3",
32
32
  "pandas>=2.0.0",
33
33
  "pysam>=0.19.0",
34
34
  "requests>=2.26.0",
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