This is the repository for RNA-clique, a tool for computing pairwise genetic distances from RNA-seq data. The software accepts as input assembled transcriptomes from two or more samples and produces as its output a matrix containing pairwise distances ranging from 0 to 1.
Installation
This software is written in Python. The software additionally requires NCBI BLAST+ and several Python libraries. Guides are provided for installation on specific systems. Alternatively, for installing on other systems, you can see the requirements
Installation guides
Basic usage
To run RNA-clique on your assembled transcriptomes, first make sure that your data are in a format understood by RNA-clique.
Then, run rna-clique with the directories containing your transcriptomes, an
output directory, and a setting for the number of top genes to select.
rna-clique -O my_rna_clique_out -n 50000 \
path/to/transcriptome1_dir \
path/to/transcriptome2_dir \
path/to/transcriptome3_dir ...
RNA-clique produces an output matrix at my_rna_clique_out/matrix.h5. To see it
in a human-readable format, use export_matrix.
python -m rna_clique.export_matrix -m my_rna_clique_out/matrix.h5
More details about the usage of RNA-clique can be found in the Command-line usage guide
Downstream analyses
The export_matrix program prints the calculated matrix to the standard
output, so you can use redirection or pipes to save the results to a file. You
could then use the matrix in any downstream application capable of loading
arbitrary matrices from files.
For example, if you output the matrix to a file named distances, you could
load the matrix in R using the following code:
dis <- as.matrix(read.table("distances", sep=" "))
Using RNA-clique in Python code
You can use RNA-clique directly from your Python code. For example,
from rna_clique.rna_clique import rna_clique
from pathlib import Path
out_dir = Path("rna_clique_out")
out_dir.mkdir(exist_ok=True)
# Get the SampleSimilarity object and a dict mapping paths to their sample
# names.
sim, path_to_sample = rna_clique(
[
Path("path/to/transcriptome1_dir"),
Path("path/to/transcriptome2_dir"),
Path("path/to/transcriptome3_dir"),
],
out_dir_1=out_dir / "od1",
out_dir_2=out_dir / "od2",
cache_dir=out_dir / "db_cache",
output_graph=output_dir / "graph.pkl",
output_matrix=output_dir / "matrix.h5",
top_genes=50000
)
print(sim.get_dissimilarity_df())
For information on finer-grained control via RNA-clique's Python API, see the API guide.
License
All code is licensed under the MIT license, which may be found at LICENSE at the root of this repository.
A machine-readable copyright file in Debian format may also be found at copyright.
Citation
If you use RNA-clique for your work, please cite "RNA-clique: a method for computing genetic distances from RNA-seq data".
@article{tapia2024rna,
title={{RNA-clique: a method for computing genetic distances from RNA-seq data}},
author={Tapia, Andrew C and Jaromczyk, Jerzy W and Moore, Neil and Schardl, Christopher L},
journal={BMC Bioinformatics},
volume={25},
year={2024},
publisher={BioMed Central},
keywords={pub}
}
Additional documentation
Metadata
Release files for rna-clique 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rna_clique-0.3.0.tar.gz | 308.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rna_clique-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 436.3 kB
Release files / rna_clique-0.3.0.tar.gz
| Download URL | rna_clique-0.3.0.tar.gz |
|---|---|
| Size | 308.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1346f86473b4198653eff95f56e4f69aeeb9bb1bcc887d025c5e95516f8b1207
|
|
BLAKE2b-256 checksum How to use checksums |
429487c9106303defb07b47d8b23259f6d5a335261fe2cc0f37d6cef035c0861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency logRelease files / rna_clique-0.3.0-py3-none-any.whl
| Download URL | rna_clique-0.3.0-py3-none-any.whl |
|---|---|
| Size | 128.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbc75eddb0175854aa0dd75dc4c87ab0fff4dee254431aa4120a0b08b0109e01
|
|
BLAKE2b-256 checksum How to use checksums |
3d051f908f6362e42166c0f89316ea97d5fe78a26922516941fdfc7e32155206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.
Transparency log