Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proteomics_converter-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proteomics_converter-1.0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file proteomics_converter-1.0.1.tar.gz.

File metadata

  • Download URL: proteomics_converter-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Darwin/24.2.0

File hashes

Hashes for proteomics_converter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1427a87ec692ec9b1899a29f197fa81da8fba37f25f35e72da78026135b9d03c
MD5 899033730b3c65b7f6fce04d094151aa
BLAKE2b-256 e035713438b353aee3754595afd6e0f276baee22a4ef36c48ad95794eec684e7

See more details on using hashes here.

File details

Details for the file proteomics_converter-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for proteomics_converter-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d5970470f2d997b90fbba55006d9df2b0dff7aa8e7c66017137cbba8fe1e4f5f
MD5 57027e34604a0b653aeaf2a5df2e2b0e
BLAKE2b-256 bbf7c55cc816d2a66b7252a0259087411da019c65c319d521b7907516bc13c38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page