Skip to main content

Percentage Overlap Tool

Project description

License

POpCan

Several genes, including pseudogenes often exhibit spatiotemporal expression specificity making them potentially valuable biomarkers. The current tool explores and quantifies the absence (indirectly exploring the presence) of such spatiotemporal expression specificity across multiple categories (up to 3) of cancer, including cancer type (CT), stage (ST) and deregulation type (DT). The analysis based on all 3 categories can include the sub-categories within and between the cancer types or it can be restricted to the sub-categories between the cancer types using the conditions 'Within' and 'Between', respectively. The possible combinations for the conditions 'Within' and 'Between' can be represented using the combination formula C(n,k) as follows:

The possible combinations for 'Within' = C((CT * ST * DT),2)

The possible combinations for 'Between' = C((CT * ST * DT),2)-[CT * (C((ST * DT),2))]

Thus, for 4 cancer types, each having 4 stages with 2 deregulation types will have total possible combinations as 496 for 'Within' and 384 for 'Between'.

The current tool, can be extrapolated to other user-defined subcategories or disease conditions to effectively identify valuable biomarkers.

Input File Pre-requisites

  • The input file should be a .csv file with "specific" column headers as a combination of 3 words separated by the character "_".
  • 1 word for the main category and 2 words for subsequent sub-categories.
  • The absence of sub-categories is accounted for in the calculations. Hence, if there are no sub-categories that the user wishes to specify, this can be replaced with a space between the character "_"

Column Header Example

  • Main-category: A 4-letter acronym (such as 'STAD' for Stomach Adenocarcinoma). The length of the 4-letter acronym cannot be changed, but, it can be replaced with an equivalent 4-letter acronym as per user requirement for any other cancer type or disease type.
  • First subcategory: Can be stage or a different user-defined variable (Ex. STAD_StageI).
  • Second subcategory: Can be gene expression pattern or a different user-defined variable (Ex. STAD_StageI_Downregulated).
  • If sub-categories were to be absent in the above example; STAD_StageI_Downregulated would be replaced with STAD_[Empty space]_[Empty space]

Available Parameters

  • Input_Path : [string] path to the input file
  • Condition : [string] either 'Between' or 'Within'. Between will find overlap only between two or more cancer types / disease conditions including their sub-categories but not for sub-categories within the same cancer type / disease condition. Within will compare the overlap between the sub-categories of same cancer type / disease condition as well.
  • Output_Path : [string] path to the output file

Output Files

  • Reports the extent of overlap as a percentage, the number of entries that overlap and the entries that overlap.

Installation

pip install POpCan

Use Case

#=============================Example===========================#
from POpCan import load_example_data_path, get_output_path, Find_Overlap
example_data = load_example_data_path()         #Input Path to Example File
example_output = get_output_path()              #Output Path to Example Output, Saves the output into Downloads directory


#Find_Overlap(Path_to_InputFile, "Between", Path_to_OutputFile)
Find_Overlap(example_data, "Between", example_output)

COPYRIGHT

Copyright (c) 2024, Pravallika Govada All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

CONTACT INFORMATION

Please address any queries or bug reports to Pravallika Govada at pravallika.govada2018@vitstudent.ac.in or pravallika2606g@gmail.com

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

popcan-0.7.9.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

POpCan-0.7.9-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file popcan-0.7.9.tar.gz.

File metadata

  • Download URL: popcan-0.7.9.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for popcan-0.7.9.tar.gz
Algorithm Hash digest
SHA256 86ee87c077bddc243ca3270c243d23546e9be5cca261ccab6ab9544ab7d5ffe7
MD5 fcc32a863b4c6adb201edddcf5940294
BLAKE2b-256 c2aade596adc18bb30c4be365675286c20278f86b6452fb3f0aa68ac2e4e9bfe

See more details on using hashes here.

File details

Details for the file POpCan-0.7.9-py3-none-any.whl.

File metadata

  • Download URL: POpCan-0.7.9-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for POpCan-0.7.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9c945aedcae4ead5fa199496fefdaba8757f246c620cf19691abdd7c8a76bcb0
MD5 0d4e61376c10e6904d829c4d38702bec
BLAKE2b-256 beb103615e8c5c33f5d12cc5bd58f95b248b1e342cfc7d62841238d2df1a7b42

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