pmotools 1.2.0__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.
- {pmotools-1.2.0 → pmotools-1.2.2}/PKG-INFO +1 -2
- {pmotools-1.2.0 → pmotools-1.2.2}/pyproject.toml +2 -2
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/pmo_exporter.py +3 -5
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/pmo_reader.py +2 -1
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/extract_allele_table.py +2 -2
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_utils/validate_pmo.py +2 -2
- {pmotools-1.2.0 → pmotools-1.2.2}/LICENSE +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/README.md +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/cli.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/json_convert_utils.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/merge_to_pmo.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/metatable_to_pmo.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/mhap_table_to_pmo.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/panel_information_to_pmo.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/pmo_updater.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/read_count_by_stage_table_to_pmo.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/pmo_checker.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/pmo_processor.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_engine/pmo_writer.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/schemas/portable_microhaplotype_object_v1.0.0.schema.json +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/schemas/portable_microhaplotype_object_v1.1.0.schema.json +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/excel_meta_to_json_meta.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/microhaplotype_table_to_json_file.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/terra_amp_output_to_json.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/text_meta_to_json_meta.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/count_library_samples_per_target.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/count_specimen_meta.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/count_targets_per_library_sample.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/list_bioinformatics_run_names.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/list_library_sample_names_per_specimen_name.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/list_specimen_meta_fields.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/extract_pmo_with_read_filter.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/extract_pmo_with_select_library_sample_names.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/extract_pmo_with_select_specimen_names.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/extract_pmo_with_select_targets.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extractors_from_pmo/extract_pmo_with_selected_meta.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_bioinformatics_methods_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_bioinformatics_run_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_library_sample_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_panel_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_pmo_into_xlsx.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_project_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_sequencing_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_specimen_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_specimen_travel_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_target_info_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_targeted_genomes_meta_table.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/extract_insert_of_panels.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/extract_refseq_of_inserts_of_panels.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_utils/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_utils/combine_pmos.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/utils/__init__.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/utils/color_text.py +0 -0
- {pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/utils/small_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pmotools
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Tools for building and analyzing PMO files
|
|
5
5
|
Author: Nicholas Hathaway, Kathryn Murie
|
|
6
6
|
Author-email: Nicholas Hathaway <nickjhathaway@gmail.com>, Kathryn Murie <kathryn.murie@ucsf.edu>
|
|
@@ -681,7 +681,6 @@ License: GNU GENERAL PUBLIC LICENSE
|
|
|
681
681
|
Requires-Dist: pandas>=2.2.2
|
|
682
682
|
Requires-Dist: biopython>=1.83
|
|
683
683
|
Requires-Dist: jsonschema>=4.23.0
|
|
684
|
-
Requires-Dist: pre-commit
|
|
685
684
|
Requires-Dist: openpyxl>=3.1.5
|
|
686
685
|
Requires-Python: >=3.11
|
|
687
686
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pmotools"
|
|
3
|
-
version = "v1.2.
|
|
3
|
+
version = "v1.2.2"
|
|
4
4
|
description = "Tools for building and analyzing PMO files"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [
|
|
@@ -13,7 +13,6 @@ dependencies = [
|
|
|
13
13
|
"pandas>=2.2.2",
|
|
14
14
|
"biopython>=1.83",
|
|
15
15
|
"jsonschema>=4.23.0",
|
|
16
|
-
"pre-commit",
|
|
17
16
|
"openpyxl>=3.1.5",
|
|
18
17
|
]
|
|
19
18
|
|
|
@@ -26,6 +25,7 @@ build-backend = "uv_build"
|
|
|
26
25
|
|
|
27
26
|
[dependency-groups]
|
|
28
27
|
dev = [
|
|
28
|
+
"pre-commit",
|
|
29
29
|
"pytest>=8.4.1",
|
|
30
30
|
]
|
|
31
31
|
|
|
@@ -11,7 +11,7 @@ from dataclasses import dataclass
|
|
|
11
11
|
from pmotools.pmo_engine.pmo_checker import PMOChecker
|
|
12
12
|
from pmotools.pmo_engine.pmo_processor import PMOProcessor
|
|
13
13
|
|
|
14
|
-
from pmotools import
|
|
14
|
+
from pmotools import __schema_version__
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class BedLoc(NamedTuple):
|
|
@@ -627,11 +627,9 @@ class PMOExporter(object):
|
|
|
627
627
|
"seq",
|
|
628
628
|
],
|
|
629
629
|
jsonschema_fnp=os.path.join(
|
|
630
|
-
os.path.dirname(
|
|
631
|
-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
632
|
-
),
|
|
630
|
+
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
|
|
633
631
|
"schemas/",
|
|
634
|
-
f"portable_microhaplotype_object_v{
|
|
632
|
+
f"portable_microhaplotype_object_v{__schema_version__}.schema.json",
|
|
635
633
|
),
|
|
636
634
|
validate_pmo: bool = False,
|
|
637
635
|
) -> pd.DataFrame:
|
|
@@ -7,6 +7,7 @@ import os
|
|
|
7
7
|
import sys
|
|
8
8
|
from collections import defaultdict
|
|
9
9
|
from pmotools import __version__ as __pmotools_version__
|
|
10
|
+
from pmotools import __schema_version__
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class PMOReader:
|
|
@@ -66,7 +67,7 @@ class PMOReader:
|
|
|
66
67
|
# currently losing all info about previous header info,
|
|
67
68
|
# consider coming up with something in standard that might preserve this info if needed
|
|
68
69
|
pmo_out["pmo_header"] = {
|
|
69
|
-
"pmo_version":
|
|
70
|
+
"pmo_version": __schema_version__,
|
|
70
71
|
"creation_date": datetime.datetime.now().strftime("%Y-%m-%d"),
|
|
71
72
|
"generation_method": {
|
|
72
73
|
"program_name": "pmotools-python.PMOReader.combine_multiple_pmos",
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/extract_allele_table.py
RENAMED
|
@@ -11,7 +11,7 @@ from pmotools.pmo_engine.pmo_checker import PMOChecker
|
|
|
11
11
|
from pmotools.pmo_engine.pmo_processor import PMOProcessor
|
|
12
12
|
from pmotools.pmo_engine.pmo_exporter import PMOExporter
|
|
13
13
|
|
|
14
|
-
from pmotools import
|
|
14
|
+
from pmotools import __schema_version__
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
def get_parser() -> argparse.ArgumentParser:
|
|
@@ -36,7 +36,7 @@ def get_parser() -> argparse.ArgumentParser:
|
|
|
36
36
|
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
37
37
|
),
|
|
38
38
|
"schemas/",
|
|
39
|
-
f"portable_microhaplotype_object_v{
|
|
39
|
+
f"portable_microhaplotype_object_v{__schema_version__}.schema.json",
|
|
40
40
|
),
|
|
41
41
|
type=str,
|
|
42
42
|
required=False,
|
|
@@ -7,7 +7,7 @@ import json
|
|
|
7
7
|
from pmotools.pmo_engine.pmo_reader import PMOReader
|
|
8
8
|
from pmotools.pmo_engine.pmo_checker import PMOChecker
|
|
9
9
|
from pmotools.utils.small_utils import Utils
|
|
10
|
-
from pmotools import
|
|
10
|
+
from pmotools import __schema_version__
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def get_parser_validate_pmo() -> argparse.ArgumentParser:
|
|
@@ -18,7 +18,7 @@ def get_parser_validate_pmo() -> argparse.ArgumentParser:
|
|
|
18
18
|
parser.add_argument("--pmo", type=str, required=True, help="a pmo file to validate")
|
|
19
19
|
parser.add_argument(
|
|
20
20
|
"--jsonschema_version",
|
|
21
|
-
default=
|
|
21
|
+
default=__schema_version__,
|
|
22
22
|
type=str,
|
|
23
23
|
required=False,
|
|
24
24
|
help="version of the jsonschema to validate against (default: %(default)s)",
|
|
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
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/pmo_builder/read_count_by_stage_table_to_pmo.py
RENAMED
|
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
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/excel_meta_to_json_meta.py
RENAMED
|
File without changes
|
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/terra_amp_output_to_json.py
RENAMED
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/convertors_to_pmo/text_meta_to_json_meta.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/extract_info_from_pmo/count_specimen_meta.py
RENAMED
|
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
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_panel_info_meta_table.py
RENAMED
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_pmo_into_xlsx.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/export_specimen_meta_table.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pmotools-1.2.0 → pmotools-1.2.2}/src/pmotools/scripts/pmo_to_tables/extract_insert_of_panels.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|