Skip to main content

Infer single-cell and spatial microRNA activity from transcriptomics data

Project description

Welcome to the miTEA-HiRes package!

miTEA-HiRes is an open-source package, designed to easily compute high resolution microRNA activity maps. This package is used in our paper "Inferring single-cell and spatial microRNA activity from transcriptomics data" by Herbst et al [1].

If you use miTEA-HiRes in your research, please cite [1]. *** add link and publication

Installation

You will need Python 3.8 or above.

pip install mitea-hires

Support and bug report:

This package is provided by Yakhini research group. If you encounter any issues, please contact efiherbst through gmail.

Example 1 - Single-cell data with 'Total' activity mode

In this case, miTEA-HiRes computes the activity for each cell and microRNA, and produces activity maps on a UMAP layout for the most active microRNAs.

Input format:

One or more raw counts matrices should be available in the data path, in the form of zipped or unzipped 'txt', 'tsv', 'mtx' or 'pkl' files.

YOUR_DATA_FOLDER
|   counts_1.txt
│   counts_2.txt
|   ...

If 10X files (i.e. 'mtx') are used for single-cell data, your data folder should look as follows:

YOUR_DATA_FOLDER
|   *_barcodes.tsv.gz   
│   *_genes.tsv.gz
│   *.mtx.gz

Usage:

You may use the package via command-line tool:

python3.8 mhr -data_path='PATH_TO_YOUR_DATA' -dataset_name='DATASET_NAME'

Or by importing the library into your code:

import mitea-hires as mhr

data_path = 'PATH_TO_YOUR_DATA'
dataset_name = 'NAME_OF_YOUR_DATASET' 

mhr.compute(data_path=data_path, dataset_name=dataset_name)

Example 2 - Single-cell data with 'Comaprative' activity mode

In this case, miTEA-HiRes computes microRNA differential activity for two populations of interest. microRNA activity for each population is presented on histogram and UMAP layouts for miroRNAs of potential interest.

Input format:

Same as in Example 1, with the following required preprocessing: A unique population string should be included withing each cell id string. Taking for example one cell from 'CONTROL' population and one from 'DISEASE':

  1. Cell string 'AACAATGTGCTCCGAG' should be transformed to 'AACAATGTGCTCCGAG_CONTROL'.
  2. Cell string 'AACAGCCTCCTGACTA' should be transformed to 'AACAGCCTCCTGACTA_DISEASE'.

Usage:

Example using command line:

python3.8 mhr -data_path='PATH_TO_YOUR_DATA' -dataset_name='DATASET_NAME' -populations='DISEASE','CONTROL'

Example 3 - Spatial trascriptomics data

In this case, miTEA-HiRes computes the activity for each spot and microRNA, and produces spatial activity maps for microRNAs which are most abundantly active throughout the spots.

Input format:

Make sure you have obtained the following files for your Visium data (these can be downloaded from Visium website):

filtered_feature_bc_matrix

spatial

Your data path should then look as follows:

YOUR_DATA_FOLDER
└───filtered_feature_bc_matrix
│   │   barcodes.tsv.gz
│   │   features.tsv.gz
│   │   matrix.mtx.gz
└───spatial
   │   tissue_positions_list.csv
   │   ...

Usage:

python3.8 mhr -data_path='PATH_TO_YOUR_DATA' -dataset_name='DATASET_NAME'

Outputs

'results' folder is generated under the provided data_path unless specified otherwise and contains:

  1. csv files with the activity p-values (and other related statistics) for every cell/spot and every microRNA.
  2. html file with sorted microRNAs according to their potential interest, including links to activity maps.
  3. folder with activity map plots.

Recommended setup

mitea-hires is desinged to utilize all CPUs available for parallel computing, hence in order to speed up the processing time, you may want to consider using resources with more CPUs. For example, an input of spatial trascriptomics data including 2,264 spots, ~6,000 genes per spot, computing activity for 706 microRNAs using a cloud instance with 16 cores takes 22 minutes.

Advanced usage

run mitea-hires --help in command line to see additional supported flags.

mitea-hires can also be imported within your python script and then, end-to-end compuation can be executed calling the 'compute' function. Alternatively, in order to use parts of the computation, other functions can be called.

Supported species

miTEA-HiRes currently supports mouse and human.

[1] Inferring single-cell and spatial microRNA activity from transcriptomics data. Herbst et al.

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

mitea_hires-0.0.9.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

mitea_hires-0.0.9-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mitea_hires-0.0.9.tar.gz.

File metadata

  • Download URL: mitea_hires-0.0.9.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.3

File hashes

Hashes for mitea_hires-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0dc34e3542bf2ad4804e7224677c8d0007d35bb048677049ea8886f0ad28b27e
MD5 b01406dab1f86345b7f68b41bc849b33
BLAKE2b-256 f6bd6739d6d23473a6e9a412bbf64e8b4f6463c80885cf90a6745684715a3e97

See more details on using hashes here.

Provenance

File details

Details for the file mitea_hires-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: mitea_hires-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.3

File hashes

Hashes for mitea_hires-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d26a0d92c40b9e1555ed68e6455b5ad669fe29ff2548b494cf2daf5124d83893
MD5 463f3b6de4067e4ca76f4f04b4f2e375
BLAKE2b-256 ccb5c09a83b343e7945f2060d3fb9e236566baf666b5a02e4f7b1a83999429fb

See more details on using hashes here.

Provenance

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