Skip to main content

A Python package for calculating aliquot size based on sample intensity

Project description

Sample Pool Aliquot Size Calculator


This package can be used to quickly calculate the ratio of 1 unit volume one may need to use so that all aliquots contain the same amount of proteomics content

Dependencies

pandas = "^1.4.3"

Usage

import pandas as pd
from sample_pool.experiment import Experiment

# Read tabulated text file containing the data
path = r".\RN_220625_Hippo-TiO2_15TMT_Minipool_PSMs.txt"
df = pd.read_csv(path, sep="\t")

# Create a variable with list of columns containing sample data
samples = [
            "Abundance: 126",
            "Abundance: 127N",
            "Abundance: 127C",
            "Abundance: 128N",
            "Abundance: 128C",
            "Abundance: 129N",
            "Abundance: 129C",
            "Abundance: 130N",
            "Abundance: 130C",
            "Abundance: 131N",
            "Abundance: 131C",
            "Abundance: 132N",
            "Abundance: 132C",
            "Abundance: 133N",
            "Abundance: 133C"
        ]

# Create Experiment object with the dataframe and sample list as parameters
exp = Experiment(df, samples)

# Get aliquot size ratio as a dictionary with key being sample name and value being volume ratio
size = exp.get_aliquot_size(minimum_good_samples=10)

# By default get_aliquot_size would use the sample with the lowest normalized sum intensity as the base for ratio calculation. To specify the sample, you can use based_on_sample parameter.
size = exp.get_aliquot_size(based_on_sample="Abundance: 127C", minimum_good_samples=10)
print(size)

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

sample_pool-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

sample_pool-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file sample_pool-1.0.0.tar.gz.

File metadata

  • Download URL: sample_pool-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Windows/10

File hashes

Hashes for sample_pool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 31acaddc97dfd9e48f0a3631d87f05fc2d8d90c2af14fc667d577339116ca844
MD5 93801fa5d6111d666a8efeab1fa8d633
BLAKE2b-256 00b658c45e0782e82526118d12f1edcf7a602a85697622417e480b6db7f1e9c7

See more details on using hashes here.

File details

Details for the file sample_pool-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sample_pool-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Windows/10

File hashes

Hashes for sample_pool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e9a72465c4781d219597124279e8793882e670b8b1440c62bb733869f040955
MD5 adfbe05d0e916a6f798b03adf8f2be33
BLAKE2b-256 b671be852d5b2d90a0b5a8ddb43777d482d91b6f34677d0bd462aca204c30849

See more details on using hashes here.

Supported by

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