Package for predicting 5EU in nanopore reads and predicting RNA halflives
Project description
RNAModif
RNAModif is a project dedicated to detecting 5eu-modified reads directly from the raw nanopore sequencing signal. Furthermore, it offers tools to calculate transcript decay rates.
Usage
Clone the repo
git clone https://github.com/maragkakislab/RNAModif.git -b release_v1
cd RNAModif
Install dependencies
conda env create -f deploy.yaml -n rnakinet_env
conda activate rnakinet_env
Predict 5EU in your fast5 files
python3 rnamodif/workflow/scripts/inference_complete.py --path <path_to_folder_containing_fast5s> --out-csv <predictions_name.csv>
This creates a csv file with columns read_id
- the read id, 5eu_mod_score
- the raw prediction score from 0 to 1, 5eu_modified_prediction
- Boolean column, True if the read is predicted to be modified by 5EU, False otherwise
Example
python3 rnamodif/workflow/scripts/inference_complete.py --path my_data/experiment/fast5 --out-csv preds.csv
Calculate transcript decay rates
python3 rnamodif/workflow/scripts/decay_rate_complete.py --transcriptome-bam <path_to_transcriptome_alignment.bam> --predictions <predictions_name.csv> --tl <your_tl> --output <halflives_name.csv>
The --tl
parameter is the duration for which the cells were exposed to 5EU in hours
The --predictions
parameter is the output file of the 5EU prediction step described above
This creates a csv file with columns transcript
- the transcript identifier from your BAM file, reads
- the amount of reads available for the given transcript, percentage_modified
- the percentage of reads of the given transcript that were predicted to contain 5EU, pred_t5
- the predicted halflife of the given transcript
Example
python3 rnamodif/workflow/scripts/decay_rate_complete.py --transcriptome-bam alignments/experiment/transcriptome_alignment.bam --predictions preds.csv --tl 2.0 --output halflives.csv
Note that the calculated decay rates pred_t5
are the most reliable for transcripts with at least 200 reads available
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rnakinet-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ed6f9ac1ccc5894a6d4ca841935f46991e4dff6d20ef034c3d28eff36e2707 |
|
MD5 | 2a1cf7bd16f68847482a6fb72b541219 |
|
BLAKE2b-256 | 37d3f05be3420112480e023de1ee004f73e4a62a21293e469bd2082237968897 |