Package: scConnect
scConnect: Like Tinder but for single cellsWhat can I do with scConnect?You can investigate expression of ligands and receptors among the cell types in your scRNA-seq dataset. You can detect putative interactions between cell types which can be good starting points for further investigationsin vivo. You can detect specific interaction between cell types, which can be good drug targets as the effect would be limited to those cell types.How does it work?scConnect estimate expression of ligands and receptors for cell types in scRNA-seq datasets. scConnect also estimate expression of molecular ligands that are synthezised by many enzymes, hence integrating gene expression related to synthesis, transport, reuptake etc. Using interaction information fromGuide to pharmacologyputative cell-cell interactions can be identified. Using random permutation of cell type lables, scConnect estimate the specificity of each ligand and receptor for each cell type, and use this information to estimate the specificity of each interaction. All interactions are stored in a multi-directional graph structure and scConnect provide multitude of tools to analyse this data, including an interactive web application and several plotting functions. scConnect integrate well with Scanpy and  can be appended to  any scanpy analysis pipeline.Usecases:Identify putative cell-cell communication in a tissueInfer neuronal networks based on ligand receptor compatabilityStudy connectivity changes following treatmentDocumentation and tutorialFor a short introduction to how scConnect can be used please check out thistutorialand for information about the API please consult thedocumentation.The quickest and easiest way to try out the tutorial is to run through this binder:InstallationTo install the latest stable version install using PYPIpipinstallscConnectThis will install all dependencies needed to run the tutorial, and utilize all features of scConnect.To install the master branch, please clone this repository and install usingcdscConnect/pipinstall.orpipinstallgit+https://github.com/JonETJakobsson/scConnectChange log:1.0.3Major changes:Added a method that calulates z-scores and p-values for each ligand and receptor score (connect.specificity()):Utilize permutation to assess the random distribution of ligand and receptor score for each cell type.Calculates a Z-score for each ligand and receptor score given this random distribution.Calculates emperical p-values from the permutated random distribution.Calculates multiple test corrected p-values using Benjamini/Hochberg (false discovery rate) correction.Estimate interaction specificity by wieghting both ligand and receptor p-values .Updates to the web app:Summmize and filter edges based on specificity in the network graph.Added possibility to download current network graph view as a svg file.Filter based on specificity in sankey graph.Added a scatter plot for interaction of selected edge, where x axis is log(interaction score), y axis is specificity and color is interaction importance.Selection of interactions in the graph also filters the interaction table.Added a scatter plot for ligands and receptors where the x axis is log(score) and y axis -log(p-value)Selected ligands or receptors filters the table under the graph.retrieving data from graph:Retrieve interaction data usinggraph.edge_list()and plot a dotplot usinggraph.dotplot()Retrieve information about ligands and receptors usinggraph.get_ligand_df()andgraph.get_receptor_df()Save progressSave calculated specificity usingconnect.save_specificity()andconnect.load_specificity().Minor Changes:Updated GTP database to 2020-5 from 2019-5.1.0.2Fixed documentation issues (added .readthedocs.yml)removed requirement.txt, build is constructed entirely from setup.py1.0.1Bugfixes:Fixed a bug in connect.py which cased a crash when connecting ligands and receptors.1.0.0Initial release.