Skip to main content

PyMINEr: automated biologic insights from large datasets.

Project description

README

Tutorials

I've made some videos that walk you through the outputs as well as how to install and use PyMINEr here: www.ScienceScott.com/pyminer

What is this repository for?

  • cell type identification using novel clustering algorithms that outperform some competitors when applied to both real-world and synthetic datasets

  • basic statistics & enrichment analyses

  • pathway analyses

  • Spearman correlation-based expression graphs that enable analyses by graph theory

  • creation of in silico predicted autocrine/paracrine signaling networks within and across cell types

  • creation of publication-ready visuals based on these analyses

  • generation of a web page explaining the results of the run

  • Future releases will contain updated clustering methods that work for reconstructing single cell lineages, among other cool functions

How do I get set up?

PyMINEr is now pip installable: python3 -m pip install bio-pyminer Note that there was another package called pyminer for mining bit-coin - this is definitely not that, so be sure to install bio-pyminer instead!

You can also install using the setup.py script in the distribution like so: python3 setup.py install

How do I run PyMINEr?

Video Tutorials

There are some video tutorials over here! But if you just want the cliff-est of cliff-notes, there's a brief description below, for using an AnnData object, like you would with Scanpy. Or using tab delimited files, or hdf5 files as input in the section below that.

Using Scanpy or AnnData as an interface?

After you've filtered out low quality cells, normalized, and log transformed your data, it's ready to be run with PyMINEr!

from pyminer.pyminer import pyminer_analysis
pm_analysis = pyminer_analysis(adata=adata,
				               analysis_dir = "pyminer_analysis/",
				               louvain_clust = True,
				               sc_clust=True)

This yields you a pyminer results object that should be very easy to navigate and explore because the help and descriptions are built into the print function!

>>> print(pm_analysis)
PyMINEr object:

Each of the elements contained within the PyMINEr object is it's own class
		You can print each of these objects to get the help section on it.
	<object>.gene_anno: an object that contains tables annotating the input genes
	<object>.clust: This object has lots of info on the clusters, differential 
		expression, pathway analysis, etc. just do print(<object>.clust) to get the details!
	<object>.goi: If you used genes of interest, the direcotry of the output 
		plots and the shortest-paths of all other genes to them are located here.
	<object>.network: The co-expression network and details on gene-module 
		usage, module pathway analysis, etc
	<object>.ap: Details of the autocrine/paracrine signaling between clusters 
		and pathway analysis of those signaling networks.

There is also the PyMINEr website file that provides a walk-through of the results:
/home/scott/Downloads/temp/pyminer_analysis/PyMINEr_summary.html

However, as noted in the last line above, we also have an easy to navigate web-browser that lets you explore the analysis, just look for the "PyMINEr_summary.html" file in the analysis_dir!

With a tab-delimited text file as input

PyMINEr takes as input a cleaned and normalized (typically log transformed) tab delimited 2D matrix text file. For example:

genes	cell_1	cell_2	...
ACTB   5.3012	 6.3102	...
...	...	...	...

You can feed this text file into PyMINEr in the command line:

pyminer.py -i expression.txt

If you have a really big file, you can convert it to hdf5 so that you can run the pipeline outside of memory:

tab_to_h5.py expression.txt

This will generate 3 files:

  • expression.hdf5
  • ID_list.txt the list of genes (no header line)
  • column_IDs.txt the sample names for the columns.

That's about it. There are some other interesting things you can do though, like if you are working with something that isn't human, you should be able to pass in the argument -species, followed by a species code that is taken by gProfiler. This will automate tons of pathway analyses, so long as the variables you're working with can be mapped over to Ensembl gene IDs by gProfiler. The default is homo sapiens (hsapiens).

A list of the gProfiler accepted species codes is listed here: https://biit.cs.ut.ee/gprofiler/page/organism-list

License

For non-commercial use, PyMINEr is available via the AGPLv3 license. Commercial entities should inquire with scottyler89@gmail.com

Who do I talk to?

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

bio_pyminer-0.11.0.tar.gz (94.2 MB view details)

Uploaded Source

Built Distribution

bio_pyminer-0.11.0-py3-none-any.whl (39.9 MB view details)

Uploaded Python 3

File details

Details for the file bio_pyminer-0.11.0.tar.gz.

File metadata

  • Download URL: bio_pyminer-0.11.0.tar.gz
  • Upload date:
  • Size: 94.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for bio_pyminer-0.11.0.tar.gz
Algorithm Hash digest
SHA256 4eed0e15dee31ae80dec872db30f0506e9be4a05cba6c4265b66016203b2f0e1
MD5 166b7320455725061311bd442ddf8b53
BLAKE2b-256 1988f1492e14f9595bc43e50381b3d4989663997bdfb0df5589768b927e8d2ba

See more details on using hashes here.

File details

Details for the file bio_pyminer-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bio_pyminer-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 952210b3bf61ee47dcdaabb851bdee263e5721364b97ce76d7bad99c9d9566d8
MD5 8e47aa52f88a368a446d666ea5da8d4e
BLAKE2b-256 98d2398b65a65905c365ac9218205563de55038543a5cc1f10f044b36b9d82e3

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