Skip to main content

A simple example package

Project description

Overview of the SPremiRNA workflow

(1) Perform basic analysis of the spatial transcriptome data from Visium, and in using the bulk sequenced data, pick out the common mRNA genes and miRNA genes between them.
(2) Build an xgboost model, train it using the bulk sequencing dataset, and then perform migration learning to predict miRNAs from the spatial transcriptome data.
(3) Use single-cell expression profiles of the same tissue to get the cell type in each spot in the spatial transcriptome data using cell2location.
(4) Correlation analysis of miRNA and mRNA expression for malignant cell types.

Installation

We suggest using a separate conda environment for installing SPremiRNA.

Create conda environment and install?SPremiRNA?package

conda create -y -n SPremiRNA_env python=3.9

conda activate SPremiRNA_env
pip install SPremiRNA

Finally, to use this environment in jupyter notebook, add jupyter kernel for this environment:

conda activate SPremiRNA_env
python -m ipykernel install --user --name=SPremiRNA_env --display-name='Environment (SPremiRNA)'

Before installing cell2location and it's dependencies, it could be necessary to make sure that you are creating a fully isolated conda environment by telling python to NOT use user site for installing packages by running this line before creating conda environment and every time before activatin conda environment in a new terminal session:

export PYTHONNOUSERSITE="literallyanyletters"

Usage and Tutorial

SPremiRNA Steps to run the package:

  • spatial_process
    Input:Visium_FFPE_Human_X_Cancer_filtered_feature_bc_matrix.h5
    Output:X_mrna.h5ad,X_ranked_tcga_ccle_mirna.csv,X_ranked_tcga_ccle_mrna.csv,X_st_mrna.csv

  • spatial_xgboost
    Input:X_ranked_tcga_ccle_mirna.csv,X_ranked_tcga_ccle_mrna.csv,X_st_mrna.csv
    Output:X_Prest_mirna.csv
    In the model parameters, the depth of the tree is set smaller to help improve the model prediction accuracy.

  • cell2loc
    Input:single cell expression profile X_expression.loom
    Output:X_analysis directory

  • malig_mirna
    Input:X_mrna.h5ad,PreXst_mirna.csv,sp.h5ad in X_analysis directory
    Output:X_mirna.h5ad

  • ccle_gct2csv.R(Process CCLE data)

  • tcga_xena2csv.R(Process TCGA data)

  • sc_process.R(Process single cell data)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SPremiRNA-0.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

SPremiRNA-0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file SPremiRNA-0.1.tar.gz.

File metadata

  • Download URL: SPremiRNA-0.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for SPremiRNA-0.1.tar.gz
Algorithm Hash digest
SHA256 7027e20404448aa5793c11cb85197fb1d90f7d9d762df65b210541b8a25bb2a5
MD5 6662d4f1df198b045a78f08fe56c1d5d
BLAKE2b-256 56a736d8e1fc20e2c3f9288b7920d06d19540e14fea34d3db370308cdbe35b0a

See more details on using hashes here.

File details

Details for the file SPremiRNA-0.1-py3-none-any.whl.

File metadata

  • Download URL: SPremiRNA-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for SPremiRNA-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6e26438ab46c8aeca01ddf6053431476e679e236d5d3cc56459e93e892dbc29
MD5 6e628d9824865389ee17eb0714e63310
BLAKE2b-256 01fc4c366baa3cffcc0a216dad94ee4d8231dc8a0e85ace959a8603d02d33b9e

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