Skip to main content

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',
)

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)

Source distribution for proteomics-converter 1.0.1
File Size Uploaded
proteomics_converter-1.0.1.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proteomics-converter 1.0.1
File Interpreter ABI Platform
proteomics_converter-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page