protdata 0.1.0__tar.gz → 0.1.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.
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: protdata
3
+ Version: 0.1.2
4
+ Summary: Proteomics data loaders for AnnData format.
5
+ Author: Max Frank
6
+ License-Expression: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: anndata
16
+ Requires-Dist: pandas
17
+ Requires-Dist: numpy
18
+ Requires-Dist: pyteomics
19
+ Provides-Extra: dev
20
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ # protdata
24
+
25
+ [![Test](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml/badge.svg)](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml)
26
+
27
+ Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
28
+
29
+ This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
30
+
31
+ ## Features
32
+ - Load MaxQuant output into AnnData
33
+ - Designed for extensibility (other loaders coming soon)
34
+
35
+ ## Installation
36
+ ```bash
37
+ pip install protdata
38
+ ```
39
+
40
+ ## Usage Example
41
+
42
+ ### MaxQuant Import
43
+
44
+ You can download an example proteinGroups [file here](https://zenodo.org/records/3774452/files/MaxQuant_Protein_Groups.tabular?download=1)
45
+ ```python
46
+ import protdata
47
+
48
+ adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
49
+ print(adata)
50
+ ```
51
+
52
+ ### DIA-NN Import
53
+
54
+ You can download an example DIA-NN report [file here](https://github.com/vdemichev/DiaNN/raw/master/diann-output-examples/report.pg_matrix.tsv)
55
+
56
+ ```python
57
+ from protdata.io import read_diann
58
+
59
+ adata = read_diann("/path/to/report.pg_matrix.tsv")
60
+ print(adata)
61
+ ```
62
+
63
+ ### FragPipe Import
64
+
65
+ You can download an example FragPipe output [file here](https://github.com/Nesvilab/philosopher/blob/master/testdata/combined_protein.tsv?raw=true)
66
+
67
+ ```python
68
+ from protdata.io import read_fragpipe
69
+
70
+ adata = read_fragpipe("/path/to/combined_protein.tsv")
71
+ print(adata)
72
+ ```
73
+
74
+ ### mzTab Import
75
+
76
+ You can download an example mzTab [file here](https://raw.githubusercontent.com/HUPO-PSI/mzTab/refs/heads/master/examples/1_0-Proteomics-Release/SILAC_SQ.mzTab)
77
+
78
+ ```python
79
+ from protdata.io import read_mztab
80
+
81
+ adata = read_mztab("/path/to/SILAC_SQ.mzTab")
82
+ print(adata)
83
+ ```
84
+
85
+
86
+
@@ -0,0 +1,64 @@
1
+ # protdata
2
+
3
+ [![Test](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml/badge.svg)](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml)
4
+
5
+ Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
6
+
7
+ This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
8
+
9
+ ## Features
10
+ - Load MaxQuant output into AnnData
11
+ - Designed for extensibility (other loaders coming soon)
12
+
13
+ ## Installation
14
+ ```bash
15
+ pip install protdata
16
+ ```
17
+
18
+ ## Usage Example
19
+
20
+ ### MaxQuant Import
21
+
22
+ You can download an example proteinGroups [file here](https://zenodo.org/records/3774452/files/MaxQuant_Protein_Groups.tabular?download=1)
23
+ ```python
24
+ import protdata
25
+
26
+ adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
27
+ print(adata)
28
+ ```
29
+
30
+ ### DIA-NN Import
31
+
32
+ You can download an example DIA-NN report [file here](https://github.com/vdemichev/DiaNN/raw/master/diann-output-examples/report.pg_matrix.tsv)
33
+
34
+ ```python
35
+ from protdata.io import read_diann
36
+
37
+ adata = read_diann("/path/to/report.pg_matrix.tsv")
38
+ print(adata)
39
+ ```
40
+
41
+ ### FragPipe Import
42
+
43
+ You can download an example FragPipe output [file here](https://github.com/Nesvilab/philosopher/blob/master/testdata/combined_protein.tsv?raw=true)
44
+
45
+ ```python
46
+ from protdata.io import read_fragpipe
47
+
48
+ adata = read_fragpipe("/path/to/combined_protein.tsv")
49
+ print(adata)
50
+ ```
51
+
52
+ ### mzTab Import
53
+
54
+ You can download an example mzTab [file here](https://raw.githubusercontent.com/HUPO-PSI/mzTab/refs/heads/master/examples/1_0-Proteomics-Release/SILAC_SQ.mzTab)
55
+
56
+ ```python
57
+ from protdata.io import read_mztab
58
+
59
+ adata = read_mztab("/path/to/SILAC_SQ.mzTab")
60
+ print(adata)
61
+ ```
62
+
63
+
64
+
@@ -0,0 +1 @@
1
+ from . import io
@@ -86,6 +86,5 @@ def read_maxquant(
86
86
  uns = {"Search_Engine": "MaxQuant"}
87
87
 
88
88
  # Create AnnData
89
- print(layers)
90
89
  adata = ad.AnnData(X=X, obs=obs, var=var, layers=layers, uns=uns)
91
90
  return adata
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: protdata
3
+ Version: 0.1.2
4
+ Summary: Proteomics data loaders for AnnData format.
5
+ Author: Max Frank
6
+ License-Expression: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
12
+ Requires-Python: >=3.10
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: anndata
16
+ Requires-Dist: pandas
17
+ Requires-Dist: numpy
18
+ Requires-Dist: pyteomics
19
+ Provides-Extra: dev
20
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ # protdata
24
+
25
+ [![Test](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml/badge.svg)](https://github.com/czbiohub-sf/protdata/actions/workflows/test.yml)
26
+
27
+ Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
28
+
29
+ This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
30
+
31
+ ## Features
32
+ - Load MaxQuant output into AnnData
33
+ - Designed for extensibility (other loaders coming soon)
34
+
35
+ ## Installation
36
+ ```bash
37
+ pip install protdata
38
+ ```
39
+
40
+ ## Usage Example
41
+
42
+ ### MaxQuant Import
43
+
44
+ You can download an example proteinGroups [file here](https://zenodo.org/records/3774452/files/MaxQuant_Protein_Groups.tabular?download=1)
45
+ ```python
46
+ import protdata
47
+
48
+ adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
49
+ print(adata)
50
+ ```
51
+
52
+ ### DIA-NN Import
53
+
54
+ You can download an example DIA-NN report [file here](https://github.com/vdemichev/DiaNN/raw/master/diann-output-examples/report.pg_matrix.tsv)
55
+
56
+ ```python
57
+ from protdata.io import read_diann
58
+
59
+ adata = read_diann("/path/to/report.pg_matrix.tsv")
60
+ print(adata)
61
+ ```
62
+
63
+ ### FragPipe Import
64
+
65
+ You can download an example FragPipe output [file here](https://github.com/Nesvilab/philosopher/blob/master/testdata/combined_protein.tsv?raw=true)
66
+
67
+ ```python
68
+ from protdata.io import read_fragpipe
69
+
70
+ adata = read_fragpipe("/path/to/combined_protein.tsv")
71
+ print(adata)
72
+ ```
73
+
74
+ ### mzTab Import
75
+
76
+ You can download an example mzTab [file here](https://raw.githubusercontent.com/HUPO-PSI/mzTab/refs/heads/master/examples/1_0-Proteomics-Release/SILAC_SQ.mzTab)
77
+
78
+ ```python
79
+ from protdata.io import read_mztab
80
+
81
+ adata = read_mztab("/path/to/SILAC_SQ.mzTab")
82
+ print(adata)
83
+ ```
84
+
85
+
86
+
@@ -0,0 +1,16 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ protdata/__init__.py
5
+ protdata.egg-info/PKG-INFO
6
+ protdata.egg-info/SOURCES.txt
7
+ protdata.egg-info/dependency_links.txt
8
+ protdata.egg-info/requires.txt
9
+ protdata.egg-info/top_level.txt
10
+ protdata/io/__init__.py
11
+ protdata/io/diann_loader.py
12
+ protdata/io/fragpipe_loader.py
13
+ protdata/io/maxquant_loader.py
14
+ protdata/io/mztab_loader.py
15
+ tests/test_loaders.py
16
+ tests/test_maxquant_loader.py
@@ -0,0 +1,4 @@
1
+ data
2
+ dist
3
+ protdata
4
+ tests
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "protdata"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "Proteomics data loaders for AnnData format."
5
5
  authors = [
6
6
  { name = "Max Frank" }
@@ -33,4 +33,4 @@ requires = ["setuptools>=61.0"]
33
33
  build-backend = "setuptools.build_meta"
34
34
 
35
35
  [tool.setuptools.packages.find]
36
- where = ["protdata"]
36
+ where = ["."]
protdata-0.1.0/PKG-INFO DELETED
@@ -1,43 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: protdata
3
- Version: 0.1.0
4
- Summary: Proteomics data loaders for AnnData format.
5
- Author: Max Frank
6
- License-Expression: MIT
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Operating System :: OS Independent
9
- Classifier: Development Status :: 3 - Alpha
10
- Classifier: Intended Audience :: Science/Research
11
- Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: anndata
16
- Requires-Dist: pandas
17
- Requires-Dist: numpy
18
- Requires-Dist: pyteomics
19
- Provides-Extra: dev
20
- Requires-Dist: pytest>=7.0.0; extra == "dev"
21
- Dynamic: license-file
22
-
23
- # protdata
24
-
25
- Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
26
-
27
- This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
28
-
29
- ## Features
30
- - Load MaxQuant output into AnnData
31
- - Designed for extensibility (other loaders coming soon)
32
-
33
- ## Installation
34
- ```bash
35
- pip install .
36
- ```
37
-
38
- ## Usage Example
39
- ```python
40
- from protdata.io.maxquant_loader import load_maxquant_to_anndata
41
- adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
42
- print(adata)
43
- ```
protdata-0.1.0/README.md DELETED
@@ -1,21 +0,0 @@
1
- # protdata
2
-
3
- Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
4
-
5
- This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
6
-
7
- ## Features
8
- - Load MaxQuant output into AnnData
9
- - Designed for extensibility (other loaders coming soon)
10
-
11
- ## Installation
12
- ```bash
13
- pip install .
14
- ```
15
-
16
- ## Usage Example
17
- ```python
18
- from protdata.io.maxquant_loader import load_maxquant_to_anndata
19
- adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
20
- print(adata)
21
- ```
@@ -1,25 +0,0 @@
1
- import os
2
- import pytest
3
- import anndata as ad
4
- from .maxquant_loader import read_maxquant
5
- from .fragpipe_loader import read_fragpipe
6
- from .mztab_loader import read_mztab
7
-
8
- data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../data"))
9
-
10
-
11
- @pytest.mark.parametrize(
12
- "filename,loader",
13
- [
14
- ("proteinGroups.txt", read_maxquant),
15
- ("combined_protein.tsv", read_fragpipe),
16
- ("SILAC_SQ.mzTab", read_mztab),
17
- ],
18
- )
19
- def test_loader(filename, loader):
20
- path = os.path.join(data_dir, filename)
21
- if not os.path.isfile(path):
22
- pytest.skip(f"Test data file {filename} not found.")
23
- adata = loader(path)
24
- assert isinstance(adata, ad.AnnData)
25
- assert adata.shape[0] > 0 and adata.shape[1] > 0
@@ -1,43 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: protdata
3
- Version: 0.1.0
4
- Summary: Proteomics data loaders for AnnData format.
5
- Author: Max Frank
6
- License-Expression: MIT
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Operating System :: OS Independent
9
- Classifier: Development Status :: 3 - Alpha
10
- Classifier: Intended Audience :: Science/Research
11
- Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
12
- Requires-Python: >=3.10
13
- Description-Content-Type: text/markdown
14
- License-File: LICENSE
15
- Requires-Dist: anndata
16
- Requires-Dist: pandas
17
- Requires-Dist: numpy
18
- Requires-Dist: pyteomics
19
- Provides-Extra: dev
20
- Requires-Dist: pytest>=7.0.0; extra == "dev"
21
- Dynamic: license-file
22
-
23
- # protdata
24
-
25
- Proteomics data loaders for the [AnnData](https://anndata.readthedocs.io/) format.
26
-
27
- This package provides loader functions to import proteomics data (e.g., MaxQuant) into the AnnData structure for downstream analysis and integration with single-cell and multi-omics workflows.
28
-
29
- ## Features
30
- - Load MaxQuant output into AnnData
31
- - Designed for extensibility (other loaders coming soon)
32
-
33
- ## Installation
34
- ```bash
35
- pip install .
36
- ```
37
-
38
- ## Usage Example
39
- ```python
40
- from protdata.io.maxquant_loader import load_maxquant_to_anndata
41
- adata = load_maxquant_to_anndata("/path/to/proteinGroups.txt")
42
- print(adata)
43
- ```
@@ -1,16 +0,0 @@
1
- LICENSE
2
- README.md
3
- pyproject.toml
4
- protdata/io/__init__.py
5
- protdata/io/diann_loader.py
6
- protdata/io/fragpipe_loader.py
7
- protdata/io/maxquant_loader.py
8
- protdata/io/mztab_loader.py
9
- protdata/io/test_loaders.py
10
- protdata/protdata.egg-info/PKG-INFO
11
- protdata/protdata.egg-info/SOURCES.txt
12
- protdata/protdata.egg-info/dependency_links.txt
13
- protdata/protdata.egg-info/requires.txt
14
- protdata/protdata.egg-info/top_level.txt
15
- tests/test_loaders.py
16
- tests/test_maxquant_loader.py
File without changes
File without changes
File without changes