Proteomics Converter
A Python package to convert between somadata.Adat and input required by pandora.
Installation
Requires Python>=3.9.
Installation with pip:
pip install proteomics-converter --extra-index-url https://ussd.artifactory.illumina.com/api/pypi/pypi-bioinfo/simple
Installation with poetry:
# Add ilmn pypi as source
poetry source add --priority=supplemental ilmn https://ussd.artifactory.illumina.com/api/pypi/pypi-bioinfo/simple
# Install package from ilmn pypi
poetry add proteomics-converter --source ilmn
Usage
Converting an adat object to pandora inputs
adat_to_pandora_input converts an adat object to PandoraInput:
- counts dataframe in long format, with three columns
count_col,somamer_index_col,sample_index_col - sample metadata dataframe
- somamer metadata dataframe
- adat header as dictionary
from proteomics_converter.adat_func import adat_to_pandora_input
pandora_input = adat_to_pandora_input(
adat=adat,
count_col='Count_Raw',
somamer_index_col='SeqId',
sample_index_col='SampleID',
)
Converting pandora inputs to an adat object
pandora_input_to_adat is the reverse of adat_to_pandora_input that converts pandora input to an adat object.
from proteomics_converter.adat_func import pandora_input_to_adat, PandoraInput
adat = pandora_input_to_adat(
pandora_input=PandoraInput(counts=counts, sample_metadata=sample_metadata, somamer_metadata=somamer_metadata, header_metadata=header_metadata),
sample_index_col='SampleID',
somamer_index_col='SeqId',
count_col='Count',
)
Metadata
Release files for proteomics-converter 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proteomics_converter-1.0.1.tar.gz | 5.5 kB | Without provenance | Details for proteomics_converter-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proteomics_converter-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for proteomics_converter-1.0.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / proteomics_converter-1.0.1.tar.gz
| Download URL | proteomics_converter-1.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1427a87ec692ec9b1899a29f197fa81da8fba37f25f35e72da78026135b9d03c
|
|
BLAKE2b-256 checksum How to use checksums |
e035713438b353aee3754595afd6e0f276baee22a4ef36c48ad95794eec684e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.1 Darwin/24.2.0
|
Release files / proteomics_converter-1.0.1-py3-none-any.whl
| Download URL | proteomics_converter-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5970470f2d997b90fbba55006d9df2b0dff7aa8e7c66017137cbba8fe1e4f5f
|
|
BLAKE2b-256 checksum How to use checksums |
bbf7c55cc816d2a66b7252a0259087411da019c65c319d521b7907516bc13c38
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.1 Darwin/24.2.0
|
Security for proteomics-converter 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.