RNA-RNA interactome data analysis
Author(s) | Pavankumar Videm |
Reviewers |
OverviewQuestions:Objectives:
What are the difficulties in mapping chimeric reads from RNA interactome data?
How multi mapping is a big problem in these datasets?
How to filter for meaningful results from large analysis output files?
Requirements:
Quality control and data preparation
Mapping chimeric reads
Quantification of the mapped loci
Visualization and filtering of results
- Introduction to Galaxy Analyses
- slides Slides: Quality Control
- tutorial Hands-on: Quality Control
- slides Slides: Mapping
- tutorial Hands-on: Mapping
Time estimation: 2 hoursSupporting Materials:Published: Mar 23, 2020Last modification: Nov 9, 2023License: Tutorial Content is licensed under Creative Commons Attribution 4.0 International License. The GTN Framework is licensed under MITpurl PURL: https://gxy.io/GTN:T00296rating Rating: 5.0 (0 recent ratings, 1 all time)version Revision: 12
With the advances in the next-generation sequencing technologies, genome-wide RNA-RNA interaction predictions are now possible. The most recent line of development has been to ligate the microRNA to the site-specific interaction region of the target, selecting these interactions via cross-linking to one of the Argonaute proteins required for microRNA-based regulation, and to sequence the resulting chimeric RNA molecule, for example, the CLASH and CLEAR-CLIP protocols. Going beyond microRNAs, these protocols can be applied to RNA interactions that involve a regulatory protein other than Argonaute. To generalize even further, researchers have applied the same idea to the detection of all transcriptome-wide RNA-RNA interactions, which include both inter- and intramolecular base pairing without the necessity of choosing a specific regulatory protein for cross-linking. These protocols include LIGR-Seq that maps the human RNA-RNA interactome and PARIS that focused on long-range structures in human and mouse.
The reads from these experiments are chimeric with each arm generated from one of the interaction
partners. Due to short lengths, often these sequenced arms ambiguously map to multiple locations and inferring the
origin of these can be quite complicated. Theoretically, alignment tools like HISAT2
and STAR
can be used to align
chimeric reads, but they are not efficient at this task. The other alignment tools like BWA-MEM
or Bowtie2
can be
used in local alignment settings to map these chimeric reads. In this case user needs to adjust the alignment parameters
to match the read lengths and there needs to be a lot of post-processing to be done to choose the best hits. Recently,
there is also an alignment tool called CLAN
published to specifically map the chimeric reads from CLASH experiments.
In this tutorial, we will learn the analysis of a CLEAR-CLIP data set using a tool suite called ChiRA
. The data used
is from mouse cortex sample
(GSM1881541) prepared using CLEAR-CLIP protocol. It is
a complete analysis framework that can be used starting from raw sequencing reads to analysis and visualization of
results. ChiRA
uses BWA-MEM
or CLAN
to map the reads. Subsequently, it also merges the overlappig alignments and
chooses the best alignments per read by quantifying the all the loci that reads map to. In the end, it scores each
alignment and outputs only the best alignments per read. The final part of this tutorial gives an insight into how to
filter, export and visualize your results using the visualization framework ChiRAViz
.
AgendaIn this tutorial, we will cover:
Get data
Hands-on: Data upload
- Create a new history for this tutorial
Import the files from Zenodo or from the shared data library
https://zenodo.org/record/3709188/files/miRNA_mature.fa.gz https://zenodo.org/record/3709188/files/Mus_musculus.GRCm38.dna.fa.gz https://zenodo.org/record/3709188/files/SRR2413302.fastq.gz https://zenodo.org/record/3709188/files/transcriptome.fa.gz https://zenodo.org/record/3709188/files/whole_transcriptome.gff.gz
- Copy the link location
Click galaxy-upload Upload Data at the top of the tool panel
- Select galaxy-wf-edit Paste/Fetch Data
Paste the link(s) into the text field
Press Start
- Close the window
As an alternative to uploading the data from a URL or your computer, the files may also have been made available from a shared data library:
- Go into Data (top panel) then Data libraries
- Navigate to the correct folder as indicated by your instructor.
- On most Galaxies tutorial data will be provided in a folder named GTN - Material –> Topic Name -> Tutorial Name.
- Select the desired files
- Click on Add to History galaxy-dropdown near the top and select as Datasets from the dropdown menu
In the pop-up window, choose
- “Select history”: the history you want to import the data to (or create a new one)
- Click on Import
- Rename the datasets
Check that the datatype
- Click on the galaxy-pencil pencil icon for the dataset to edit its attributes
- In the central panel, click galaxy-chart-select-data Datatypes tab on the top
- In the galaxy-chart-select-data Assign Datatype, select
datatypes
from “New type” dropdown
- Tip: you can start typing the datatype into the field to filter the dropdown menu
- Click the Save button
Add to each database a tag corresponding to …
Datasets can be tagged. This simplifies the tracking of datasets across the Galaxy interface. Tags can contain any combination of letters or numbers but cannot contain spaces.
To tag a dataset:
- Click on the dataset to expand it
- Click on Add Tags galaxy-tags
- Add tag text. Tags starting with
#
will be automatically propagated to the outputs of tools using this dataset (see below).- Press Enter
- Check that the tag appears below the dataset name
Tags beginning with
#
are special!They are called Name tags. The unique feature of these tags is that they propagate: if a dataset is labelled with a name tag, all derivatives (children) of this dataset will automatically inherit this tag (see below). The figure below explains why this is so useful. Consider the following analysis (numbers in parenthesis correspond to dataset numbers in the figure below):
- a set of forward and reverse reads (datasets 1 and 2) is mapped against a reference using Bowtie2 generating dataset 3;
- dataset 3 is used to calculate read coverage using BedTools Genome Coverage separately for
+
and-
strands. This generates two datasets (4 and 5 for plus and minus, respectively);- datasets 4 and 5 are used as inputs to Macs2 broadCall datasets generating datasets 6 and 8;
- datasets 6 and 8 are intersected with coordinates of genes (dataset 9) using BedTools Intersect generating datasets 10 and 11.
Now consider that this analysis is done without name tags. This is shown on the left side of the figure. It is hard to trace which datasets contain “plus” data versus “minus” data. For example, does dataset 10 contain “plus” data or “minus” data? Probably “minus” but are you sure? In the case of a small history like the one shown here, it is possible to trace this manually but as the size of a history grows it will become very challenging.
The right side of the figure shows exactly the same analysis, but using name tags. When the analysis was conducted datasets 4 and 5 were tagged with
#plus
and#minus
, respectively. When they were used as inputs to Macs2 resulting datasets 6 and 8 automatically inherited them and so on… As a result it is straightforward to trace both branches (plus and minus) of this analysis.More information is in a dedicated #nametag tutorial.
Preprocessing
Before starting with the analysis of data it is always good to check the sequenced reads for low quality bases and adapters.
Quality control
Hands-on: Quality checkFirst use
FastQC
to assess the read quality
- FastQC tool with the following parameters:
- param-file “Short read data from your current history”:
SRR2413302.fastq.gz
(Input dataset)
Question
- Why do you think
FastQC
failed to find any adapters?
- Because
FastQC
it uses a set of standard adapters to screen for adapters. The “special” adapters used in this library preparation are not present in theFastQC
standard adapters list.
Adapter trimming
Due to the inefficiency of the current RNA interactome protocols, not all reads are not made up of RNA hybrids. In some
cases, reads contain single RNA fragments with adapters or nothing but only adapters. Hence adapter removal is a very important step
in this analysis. In this step, we use cutadapt
to trim the adapters. As the adapters used in this library are not
standard Illumina adapters, we need to provide them manually.
Hands-on: Adapter trimmingWe use
cutadapt
to trim the adapter content
- cutadapt tool with the following parameters:
- param-file “FASTQ/A file”:
SRR2413302.fastq.gz
(Input dataset)- In “Read 1 Options”
- “3’ (End) Adapters” -> “Insert 3’ (End) Adapters”
- “Source”:
Enter Custom sequence
- “Enter custom 3’ adapter sequence”:
GTGTCAGTCACTTCCAGCGG
- “5’ (Front) Adapters” -> “Insert 5’ (Front) Adapters”
- “Source”:
Enter Custom sequence
- “Enter custom 5’ adapter sequence”:
GCATAGGGAGGACGATGCGG
- In “Filter Options”
- “Minimum length”:
16
Hands-on: Post adapter trimming quality checkIt is interesting to see whether our manually entered adapters were trimmed
QuestionWould you be concerned about the abnormal “Per base sequence content towards the end”?
Normally yes, but in this case not. Always look at this plot in combination with “Sequence Length Distribution” plot. It looks like there is huge difference in base composition after 55th base. But the number of sequences that constitute this is very important. From the sequence length distribution, most of the sequences are between 53 and 57 bases long. We see the abnormality in the per base sequence content because it is from very few sequences.
Analysis of interactome data using ChiRA
tool suite
The analysis includes several steps that deal with deduplication mapping, quantification and extraction of interacting partners.
Remove duplicate sequences
First, we eliminate the duplicate sequences from the library to reduce the computational effort. This will also have an impact on the quantification of the loci because often these identical sequences might be PCR duplicates. There is also a 5’ degenerate linker of length 5 nucleotides present in the reads. Hence we have to strip that too.
Hands-on
- ChiRA collapse tool with the following parameters:
- param-file “Input FASTQ file”:
Read 1 Output
(output of cutadapt tool)- “Length of the UMI if present at the 5’ end of your reads”:
5
- If you have UMIs (at the 5’ end) in the sequenced reads, please set “Length of the UMI if present at the 5’ end of your reads”.
- The UMI will be trimmed and put in the unique sequence id.
Map reads to the reference transcriptome
Hands-on: Map chimeric reads from fasta fileHere we use
BWA-MEM
aligner in local alignment mode to locate the chimeric arms on the transcriptome. Your reference can be single or split in two. Two references are ideal for example if you have CLASH experimental data where you have separate miRNA and target references.
- ChiRA map tool with the following parameters:
- param-file “Input FASTA file”:
fasta file
(output of ChiRA collapse tool)- “Single or split reference?”:
Split reference
- param-file “Reference FASTA file”:
miRNA_mature.fa.gz
(Input dataset)- param-file “Second reference FASTA file”:
transcriptome.fa.gz
(Input dataset)- “aligner”:
BWA-MEM
Merge overlapping alignment information
In this step, we merge the overlapping aligned positions to define the read concentrated loci. If an annotation GTF file produced, the transcriptomic alignment positions are first converted to their corresponding genomic positions. The merging is also done on reads defining which parts of the reads are mapping that indicates potential interacting segments of read.
Hands-on
- ChiRA merge tool with the following parameters:
- param-file “Input BED file of alignments”:
ChiRA aligned BED
(output of ChiRA map tool)- “Do you have an annotation in GTF format?”:
Yes
- param-file “Annotations in GTF format”:
whole_transcriptome.gff.gz
(Input dataset)- “Did you use single or split reference for alignment?”:
Split reference
- param-file “Reference FASTA file”:
miRNA_mature.fa.gz
(Input dataset)- param-file “Second reference FASTA file”:
transcriptome.fa.gz
(Input dataset)
- In samples with a very high coverage, the likelihood of having overlapping alignments increases. Hence the default
Overlap based
merging may results in very long loci merged by some random alignments.- Therefore, use the
blockbuster
merging mode and adjust the paramertes accordingly.
- From “Select the mode of merging”:
Gaussian based (blockbuster)
- Working with only the chimeric reads further reduces the computation time fr subsequent steps.
- “chimeric_only”:
Yes
Quantify aligned loci to score the alignments
Now we have the loci where the potential interacting read segments are mapped to. Due to the small length of these arms, there is a
very high chance of multi mapping. Another reason for this is the lenient mapping parameters that are used to increase
the mapping sensitivity. Quantification needs 2 files containing read segements and loci where they are mapping to. From
this information, ChiRA quanitify
tries to infer the correct origin of reads and calculates the expression of the loci
using a simple expectation-maximization algorithm.
Hands-on: Task description
- ChiRA qauntify tool with the following parameters:
- param-file “BED file of aligned segments”:
ChiRA aligned read segments
(output of ChiRA merge tool)- param-file “Tabular file of merged alignments”:
ChiRA merged alignments
(output of ChiRA merge tool)
Extract the best scoring chimeras
After having the information about the loci expression, the final step extracts only the best scoring interacting
partners for each read. All the combinations of the transcripts that are overlapping with the interacting loci are
reported. If there is more than one locus with the equal best score then all the best hits are reported. If you have the
genomic fasta file the tool can hybridize the interacting loci sequences using IntaRNA
.
Hands-on: Task description
- ChiRA extract tool with the following parameters:
- param-file “File containing CRLs information”:
ChiRA quantified loci
(output of ChiRA qauntify tool)- “Have genomic information?”:
Yes
- param-file “Annotations in GTF format”:
whole_transcriptome.gff.gz
(Input dataset)- “Choose the source for the FASTA file”:
History
- param-file “FASTA file”:
Mus_musculus.GRCm38.dna.fa.gz
(Input dataset)- “Did you use single or split reference for alignment?”:
Split reference
- param-file “Reference FASTA file”:
miRNA_mature.fa.gz
(Input dataset)- param-file “Second reference FASTA file”:
transcriptome.fa.gz
(Input dataset)- “Hybridize chimeric loci?”:
Yes
- “Summarize interactions at loci level?”:
Yes
Visualization
The output tabular file generated in the above step can be huge with up to some millions of rows depending on the
library size and more than 30 columns. Extracting useful data from this can be very tedious. For example, extracting and
visualizing the distribution of target biotypes of your favorite miRNA can be very tricky and might need more than a
hand full of galaxy tools to achieve. For this reason, there exists a visualization and filtering tool for this data along
with ChiRA
known as ChiRAViz
. It is a galaxy visualization framework to work with the output of ChiRA
. But it does
not directly work with the tabular output we have. Rather it needs a “sqlite” database. For this reason, we first build a
sqlite database from the ChiRA
output.
Hands-on: Data preperation
- Query Tabular tool with the following parameters:
- In “Database Table”:
- param-repeat “Insert Database Table”
- param-file “Tabular Dataset for Table”:
ChiRA chimeric reads
(output of ChiRA extract tool)- In “Table Options”
- “Use first line as column names”:
Yes
- “Save the sqlite database in your history”:
Yes
Change the datatype to
chira.sqlite
- Click on the galaxy-pencil pencil icon for the dataset to edit its attributes
- In the central panel, click galaxy-chart-select-data Datatypes tab on the top
- In the galaxy-chart-select-data Assign Datatype, select
chira.sqlite
from “New type” dropdown
- Tip: you can start typing the datatype into the field to filter the dropdown menu
- Click the Save button
Hands-on: Visualize interactions
- Please click on galaxy-barchart “Visualize this data”. Then click on the
ChiRAViz
visualization. This loads the data into the visualization framework and shows some basic plots from the data.Now choose the bio types of interactions that you want to work with. Here we first get all available interactions, and then filter the interactions we are interested in next page. To get all interactions, choose
all
in both dropdowns on the top and then click on “Get interactions”.
Hands-on: Filter and summarize interactions and export the results
ChiRAViz
provides filters to search for keywords like gene symbols, sort interactions by score, filter by score or hybridization energy. Then the filtered interactions can be summarized or exported to a file. In this step, we filter the interactions thatmmu-miR-190a
involved in and consider those which have anIntaRNA
predicted hybrid.
- To search, type
mir-190a
in the search field and click on search icon or hit enter. Search is case insensitive and can search for sub-phrases too. This results in 27 records.- We now further filter the records that contain
IntaRNA
hybrid. If there is no hybrid predicted byIntaRNA
, then the hybrid filed contains anNA
value.
- From ”–filter–“ dropdown choose
Hybrid
- From ”–operator–“ choose
<>
- Enter
NA
in the value field and hit the enter key. This filters out 10 more records and results in 17 records.- At this point, you can select individual interactions by clicking the individual checkboxes or by clicking “Check all”. Both the possibilities are highlighted in red color in the following figure.
- Click on Summary to view the summary plots for the selected interactions.
- Clicking on Export to export the selected interactions to a file.
Question
- Which strand of
mmu-miR-190a
is the most expressed?Both strands of
mmu-miR-190a
participated in the interactions, butmmu-miR-190a-5p
is the most abundant strand between the two.
Hands-on: Viewing individual interaction information
- From the list of interactions in the left panel expand the interaction
mmu-miR-190a-5p:Myo5a
by clicking on “+” (highlighted in red). There are 4 sub-records corresponds to 4 different transcripts of the target geneMyo5a
.- Click on one of the records to view following information.
- “Chimera” panel in the middle depicts the mapping positions on the read with read length.
- “Interacting partners” panel shows the information on which transcripts the left and right arm are mapping to with their alignment positions on the transcripts.
- “Alignment Information” panel shows the alignment if present with a possibility to download the alignment.
Conclusion
Though chimeric reads look normal when inspected in a FASTQ file, the origin of each read is from two different RNA fragments. Limitations of the current sequencing protocols limit the length of each sequenced interacting RNA fragment. These smaller RNA fragments are often harder to map considering that the boundaries of each RNA fragment in the read are unknown. In this tutorial, we have seen how to map these reads and infer the true origins of them by quantifying the mapped loci. The visualization framework gives flexibility in filtering and searching output files, visualize the summaries of filtered data as well as exporting them.