You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

krishang-HDS

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krishang-HDS

Decline in transcriptional homeostasis defines aging

0.0.2
pipPyPI
Maintainers
1

HDS Package

Age-dependent dysregulation of transcription regulatory machinery triggers modulations in the gene expression levels leading to the decline in cellular fitness. Tracking of these transcripts along the temporal axis in multiple species revealed a spectrum of evolutionarily conserved pathways, such as electron transport chain, translation regulation, DNA repair, etc. Recent shreds of evidence suggest that aging deteriorates the transcription machinery itself, indicating the hidden complexity of the aging transcriptomes. This reinforces the need for devising novel computational methods to view aging through the lens of transcriptomics. Here, we present Homeostatic Divergence Score (HDS) to quantify the extent of messenger RNA (mRNA) homeostasis by assessing the balance between spliced and unspliced mRNA repertoire in single cells. By tracking HDS across single-cell expression profiles of human pancreas we identified a core set of 171 transcripts undergoing an age-dependent homeostatic breakdown. Notably, many of these transcripts are well-studied in the context of organismal aging. Our preliminary analyses in this direction suggest that mRNA processing level information offered by single-cell RNA sequencing (scRNA-seq) data is a superior determinant of chronological age as compared to transcriptional noise.

Instructions

How to install?

  • These are are required packages:

    scipy, numpy, pandas, velocyto, scanpy, anndata, matplotlib, seaborn, matplotlib_venn, leidenalg and scikit-learn

  • To install these packages use below command

    !pip install scipy numpy pandas velocyto scanpy anndata matplotlib seaborn matplotlib_venn leidenalg scikit-learn

  • Get latest version of HDS from the link given below:

    https://pypi.org/project/krishang-HDS

  • Install it using below command.

    pip install krishang_HDS

How to make loom files from fastq files?

How to use?

  • from krishang_HDS import HDS

    HDS("path of loom file")

    For example:

    HDS("/home/krishan/loom/abc.loom")

  • Use 'clusters' parameter to pass cluster identity of cells if you have. Otherwise, HDS by default uses 'leiden' method with resolution = 1, inbuilt in scanpy package. Note: clusters labels should be in the same order as barcode in the loom file.

    For example:

    HDS(path1="path of loom file", clusters=[1,2,1,2,3,4,5])

  • Use 'per' parameter to specify the X percentile genes with top HDS score. This could be important since HDS can return large negative valuesthereby distorting the overall distribution plots involving HDS scores.

  • Use 'genes' parameter to pass speific genes for which you want to generate the phase portraits.

    For example:

    HDS(path1="path of loom file", genes=['GENE1','GENE2'])

  • Notably default scanpy parameters are (you can change it):

    min_genes=200, min_cells=3, n_genes_by_counts=2500, pct_counts_mt=5

    To understand the relevance of these parameters check out:

  • We have created a Google colab notebook with the code and loom file. Link is given below:

    https://drive.google.com/drive/folders/1Pq9IsjnCYaJngU8WQ0E1RjIqA9f-j3lY?usp=sharing

Output?

HDS function will return a pandas data frame cantaining HDS scores of genes across all clusters.

Rsquared (pandas data frame)

HDS score distribution for each supplied cluster

Rsquared (violin plot)

Example phase portraits of genes under homeostasis breakdown

portrait of rhomeostatis genes

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts