Skip to main content

Performing comprehensive overlap assessments

Project description

pylisto

pylisto is a tool for performing comprehensive overlap assessments on dictionaries comprising lists of strings, such as lists of gene sets. It can assess:

  • Overlaps of pairs of lists of strings selected from the same universe.
  • Overlaps of pairs of lists of strings selected from different universes.
  • Overlaps of triplets of lists of strings selected from the same universe.

While pylisto has been developed with scRNA-seq data analysis in mind, the methodology is fully applicable for the same problem arising in any other setting. Thus, the implementation of pylisto uses general Python objects (Pandas data frames, lists of strings), rather than scRNA-seq-specific objects.

Installation

Install with:

pip install pylisto

Description and usage

This section will elaborate on the functionality and usage of pylisto. It discusses first the overlaps of individual elements, then the details of how the dictionaries of elements must be provided as input.

Items

Each item taking part in an individual overlap assessed by pylisto is a list of strings. Each overlap assessment of lists of strings answers the question of whether the lists intersect each other to a statistically significant extent.

Lists

The run_listo function runs the entire pylisto pipeline. It requires two dictionaries as input. Each dictionary can store two types of elements:

  • Lists of strings.
  • Data frames with a numeric column specified by the num_col parameter.

A third dictionary, likewise containing one of the two aforementioned types of elements, can be optionally provided.

Extracting items from lists

Items to be used in the overlap assessments are extracted from the input dictionaries as follows:

  • Lists of strings: They are used as such.

  • Data frames: The rownames of the data frame are selected, and overlaps are calculated based on cutoffs determined by the distinct values in the column specified by num_col. The median of the resulting p-values is taken to be the p-value of the corresponding overlap.

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

pylisto-0.8.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

pylisto-0.8.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pylisto-0.8.2.tar.gz.

File metadata

  • Download URL: pylisto-0.8.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pylisto-0.8.2.tar.gz
Algorithm Hash digest
SHA256 0966084cf88b05d91e1f59a397e71c7900d15bae7b0bfaca26de63998baa2848
MD5 db0c8db55be93e566bb68f962c1b825e
BLAKE2b-256 cf6f333f30d146cca17bdd6c3e42045679e567985aa329aaa9c9cb4c2fed1172

See more details on using hashes here.

File details

Details for the file pylisto-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: pylisto-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for pylisto-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 23594877cc3ffff458de88b8802367ca7b1dfc115d921b2ffa71da143b4aeb87
MD5 d099ea5127812cc6adf21b198f9c1386
BLAKE2b-256 b23c3ef83ffafff84bc300775d3e2ee0ff0b0ddd50a2f59e3a1efdc50e833b99

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