Skip to main content

Percentage Overlap Tool

Reason this release was yanked:

Considerable Changes in Code

Project description

License

POpCan

Tool for analysing the extent of overlap between various cancers including user-defined sub categories.

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.2.tar.gz (10.9 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.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: popcan-0.7.2.tar.gz
  • Upload date:
  • Size: 10.9 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.2.tar.gz
Algorithm Hash digest
SHA256 a2ad0031c008696836f3abcd2d817b5373f7997278495dbad4759bad1e118801
MD5 38b4d5426c1a10a43217acabfe02d71f
BLAKE2b-256 b618065e12f567c135423082446d6320eabdf88b09fbed245c720068387cbea1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: POpCan-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba336e6bdccce1c5cd532bac35b9515d8cc615d4384fc80337330c1e2062f974
MD5 64610fbf6d8e0bcfa295d273c5a15e49
BLAKE2b-256 1cc02a7aa175a453877135c07581ae1ca193b55bd8bbc4bb695195b14e559746

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