primirTSS is a first R package to predict pri-miRNA Transcription Start Site.
1 Introduction
Identifying human miRNA transcriptional start sites (TSSs) plays a significant role in understanding the transcriptional regulation of miRNA. However, due to the quick capping of pri-miRNA and many miRNA genes may lie in the introns or even exons of other genes, it is difficult to detect miRNA TSSs. miRNA TSSs are cell-specific. And miRNA TSSs are cell-specific, which implies the same miRNA in different cell-lines may start transcribing at different TSSs.
High throughput sequencing, like ChIP-seq, has gradually become an essential and versatile approach for us to identify and understand genomes and their transcriptional processes.
By integrating H3k4me4 and Pol II data, parting of false positive counts after scoring can be filter out. Besides, DNase I hypersensitive sites(DHS) also imply TSSs, where miRNAs will be accessible and functionally related to transcription activities. And additionally, the expression profile of miRNA and genes in certain cell-line will be considered as well for improve fidelity. By employing all these different kinds of data, here we have developed the primirTSS package to assist users to identify miRNA TSSs in human and to provide them with related information about where miRNA genes lie in the genome, with both command-line and graphical interfaces.
2 Find the best putative TSS
Installation
1 primirTSS
Install the latest release of R, then get primirTSS by starting R and entering the commands:
devtools::install_github("ipumin/primirTSS")
2 Install Java SE Development Kit(JDK)
As Java development environment is indispensable for the main function in our package, it is necessary for users to install Java SE Development Kit 10 before using primirTSS.
3 Getting Started
Step 1: Process of H3K4me3 and Pol II data
peak_merge(): Merge one kind of peaks (H3K4me3 or Pol II)
H3K4me3 and Pol II data are key points for accurate prediction our method.
If one of these to peak data is input, before execute the main function find_TSS, the function peak_merge should be used to merge adjacent peaks whose distance between each other is less than n base pairs and return the merged peaks as an output.
peak_join(): Join two kinds of peaks (H3K4me3 and Pol II)
If both of H3K4me3 and Pol II data, after separately merging these two kinds of data first, peak_join should be employed to integrate H3K4me3 and Pol II peaks and return the result as bed_merged parameter for the main function find_tss.
find_tss is the main function in the package. The program will first score the candidate TSSs of miRNA and pick up the best candidate in the first step of prediction, (where users can set flanking_num and threshold).
After the first step, H3K4me3 and Pol II data, miRNA expression profiles and DHS check, protein-coding genes expression profiles, if provided, will be integrated to decrease the rate of false positive.
There will be different circumstances where not all miRNA expression profiles, DHS data, protein-coding gene(‘gene’) expression profiles are available:
Circumstance 1: no miRNA expression data; then suggest DHS check and protein-coding gene check.
ignore_DHS_check: If users do not have their own miRNA expression profile, the function will employ all the miRNAs already annotated in human, but we suggest using DHS data of the cell line from ENCODE to check whether this miRNA is expressed in the cell line or not as well as and all human gene expression profiles from Ensemble to check the relative position of TSSs and protein-coding genes to improve the accuracy of prediction.
Circumstance 2: miRNA expression data provided; then no need for DHS check but protein-coding gene check.
expressed_mir: If users have their own miRNA expression profiles, we will use the expressed miRNAs and we suggest not using DHS data of the cell line or others to check the expression of miRNAs.But the protein-coding gene check to check the relative position of TSSs and protein-coding genes is necessary, which helps to verify the precision of prediction.
expressed_gene: Additionally, users can also specify certain genes expressed in the cell-line being analyzed:
Step 3: Searching for TFs
seek_tf = TRUE: If user want to predict transcriptional regulation relationship between TF and miRNA, like which TFs might regulate miRNA after get TSSs, they can change seek_tf = FALSE from seek_tf = TRUE directly in the comprehensive function find_TSS().
Step4: Analysis of results
Here is a demo of predicting TSS for hsa-mir-5697, ignore DHS check.
PART1, $tss_df:
ownmiRNA$tss_df
The first part of the result returns details of predicted TSSs, composed of seven columns: mir_name, chrom, stem_loop_p1, stem_loop_p2, strand mir_context, tss_type gene and predicted_tss:
Entry
Implication
mir_name
Name of miRNA.
chrom
Chromosome.
stem_loop_p1
The start site of a stem-loop.
stem_loop_p2
The end site of a stem-loop.
strand
Polynucleotide strands. (+/-)
mir_context
2 types of relative position relationship between stem-loop and protein-coding gene. (intra/inter)
tss_type
4 types of predicted TSSs. See the section below TSS types for details.(host_TSS/intra_TSS/overlap_inter_TSS/inter_TSS)
gene
Ensembl gene ID.
predicted_tss
Predicted transcription start sites(TSSs).
pri_tss_distance
The distance between a predicted TSS and the start site of the stem-loop.
TSSs are cataloged into 4 types as below:
host_TSS: The TSSs of miRNA that are close to the TSS of protein-coding gene
implying they may share the same TSS,
on the condition where mir_context = intra.
(See above: mir_context)
intra_TSS: The TSSs of miRNA that are NOT close to the TSS of protein-coding gene,
on the condition where mir_context = intra.
overlap_inter_TSS: The TSSs of miRNA are cataloged as overlap_inter_TSS when the pri-miRNA gene overlaps with Ensembl gene, on the condition where “mir_context = inter“.
inter_inter_TSS: The TSSs of miRNA are cataloged as inter_inter_TSS
when the miRNA gene does NOT overlap with Ensembl gene,
on the condition where “mir_context = inter“.
The second part of the result returns 4 logs created during the process of prediction:
find_nearest_peak_log:
If no peaks locate in the upstream of
a stem-loop to help determine putative TSSs of miRNA,
we will fail to find the nearest peak
and this miRNA will be logged in find_nearest_peak_log.
eponine_score_log:
For a certain miRNA, if none of the candidate TSSs scored with
Eponine method meet the threshold we set,
we will fail to get a eponine score
and this miRNA will be logged in eponine_score_log.
DHS_check_log:
For a certain miRNA, if no DHS signals locate
within 1 kb upstream of each putative TSSs,
these putative TSSs will be filtered out
and this miRNA will be logged in DHS_check_log.
gene_filter_log:
For a certain miRNA, when integrating expressed_gene data to improve prediction,
if no putative TSSs are confirmed after considering the relative
position relationship among TSSs, stem-loops and expressed genes,
this miRNA will be filtered out and logged in gene_filter_log.
4 Plot the prediction of TSS for miRNA
plot_primiRNA(): Apart from returning the putative TSS of each miRNA, the package primirTSS can also visualize the result and return an image composed of six tracks, (1)TSS, (2)genome, (3)pri-miRNA, (4)the closest gene, (5)eponine score and (6)conservation score.
And the parameters in this function is almost the same as those in find_tss() except expressed_mir only represents one certain miRNA in plot_primiRNA(). NOTICE that this function is used for visualizing the TSS prediction of only one specific miRNA every single time.
Figure S1. Visualized result for miRNA TSSs by Plot pri-miRNA TSS()
As Figure S1 shows, the picture contains information of the pri-miRNA’s coordinate, the closest gene to the miRNA, the eponine score of the miRNA’s candidate TSS and the conservation score of the miRNA’s candidate TSS.
There are six tracks plotted in return:
Entry
Implication
Chromosome
Position of miRNA on the chromosome.
hg19
Reference genome coordinate in hg19.
pri-miRNA:
Position of pri-miRNA.
Ensemble genes
Position of related proterin-coding gene.
Eponine score
Score of best putative TSS by Eponine method.
Conservation score
Conservation score of TSS.
5 Graphical web interface for prediction
run_primirTSSapp(): A graphical web interface is designed to achieve the functions of find_tss and plot_primiRNA to help users intuitively and conveniently predict putative TSSs of miRNA. Users can refer documents of the two functions, Find the best putative TSS and Plot the prediction of TSSs for miRNA, mentioned above for details.
TAG1: Find the best putative TSS
Figure S2. Graphical web interface of Find pri-miRNA TSS()
As Figure S2 shows, if we want to use the shiny app, we should select the appropriate options or upload the appropriate files. Histone peaks, Pol II peaks and DHS files are comma-separated values (CSV) files, whose first line is chrom,start,end. Every line of miRNA expression profiles has only one miRNA name which start with hsa-mir, such as hsa-mir-5697. Every line of gene expression profiles has only one gene name which derived from Ensembl, such as ENSG00000261657. All of miRNA expression profiles and gene expression profiles do not have column names. If we have prepared, we can push the Start the analysis button to start finding the TSSs. The process of analysis may need to take a few minutes, and a process bar will appear in right corner.
As a result, we will view first six rows of the result. The first five columns are about miRNA information, next five columns are about TSS information. The column of gene denotes the gene whose TSS is closest to the miRNA TSS. The column of pri_tss_distance denotes the distance between miRNA TSS and stem-loop. If users choose to get TFs simultaneously, they will have an additional column, tf, which stores related TFs.
TAG2: Plot pri-miRNA TSS
Figure S3. Graphical web interface of Plot pri-miRNA TSS()
As Figure S4 shows, if we select the appropriate options and upload the appropriate files, we can have a picture of miRNA TSSs.
Session info
Here is the output of sessionInfo() on the system on which this document was compiled:
primirTSS
primirTSS is a first R package to predict pri-miRNA Transcription Start Site.
1 Introduction
Identifying human miRNA transcriptional start sites (TSSs) plays a significant role in understanding the transcriptional regulation of miRNA. However, due to the quick capping of pri-miRNA and many miRNA genes may lie in the introns or even exons of other genes, it is difficult to detect miRNA TSSs. miRNA TSSs are cell-specific. And miRNA TSSs are cell-specific, which implies the same miRNA in different cell-lines may start transcribing at different TSSs.
High throughput sequencing, like ChIP-seq, has gradually become an essential and versatile approach for us to identify and understand genomes and their transcriptional processes. By integrating H3k4me4 and Pol II data, parting of false positive counts after scoring can be filter out. Besides, DNase I hypersensitive sites(DHS) also imply TSSs, where miRNAs will be accessible and functionally related to transcription activities. And additionally, the expression profile of miRNA and genes in certain cell-line will be considered as well for improve fidelity. By employing all these different kinds of data, here we have developed the primirTSS package to assist users to identify miRNA TSSs in human and to provide them with related information about where miRNA genes lie in the genome, with both command-line and graphical interfaces.
2 Find the best putative TSS
Installation
1 primirTSS
Install the latest release of R, then get
primirTSSby starting R and entering the commands:2 Install Java SE Development Kit(JDK)
As Java development environment is indispensable for the main function in our package, it is necessary for users to install Java SE Development Kit 10 before using
primirTSS.3 Getting Started
Step 1: Process of H3K4me3 and Pol II data
peak_merge(): Merge one kind of peaks (H3K4me3 or Pol II)H3K4me3 and Pol II data are key points for accurate prediction our method. If one of these to peak data is input, before execute the main function
find_TSS, the functionpeak_mergeshould be used to merge adjacent peaks whose distance between each other is less thannbase pairs and return the merged peaks as an output.peak_join(): Join two kinds of peaks (H3K4me3 and Pol II)If both of H3K4me3 and Pol II data, after separately merging these two kinds of data first,
peak_joinshould be employed to integrate H3K4me3 and Pol II peaks and return the result asbed_mergedparameter for the main functionfind_tss.Step 2: Predict most possible TSS for miRNA
find_tssis the main function in the package. The program will first score the candidate TSSs of miRNA and pick up the best candidate in the first step of prediction, (where users can setflanking_numandthreshold).There will be different circumstances where not all miRNA expression profiles, DHS data, protein-coding gene(‘gene’) expression profiles are available:
Circumstance 1: no miRNA expression data; then suggest DHS check and protein-coding gene check.
ignore_DHS_check: If users do not have their own miRNA expression profile, the function will employ all the miRNAs already annotated in human, but we suggest using DHS data of the cell line from ENCODE to check whether this miRNA is expressed in the cell line or not as well as and all human gene expression profiles from Ensemble to check the relative position of TSSs and protein-coding genes to improve the accuracy of prediction.Circumstance 2: miRNA expression data provided; then no need for DHS check but protein-coding gene check.
expressed_mir: If users have their own miRNA expression profiles, we will use the expressed miRNAs and we suggest not using DHS data of the cell line or others to check the expression of miRNAs.But the protein-coding gene check to check the relative position of TSSs and protein-coding genes is necessary, which helps to verify the precision of prediction.expressed_gene: Additionally, users can also specify certain genes expressed in the cell-line being analyzed:Step 3: Searching for TFs
seek_tf = TRUE: If user want to predict transcriptional regulation relationship between TF and miRNA, like which TFs might regulate miRNA after get TSSs, they can changeseek_tf = FALSEfromseek_tf = TRUEdirectly in the comprehensive functionfind_TSS().Step4: Analysis of results
Here is a demo of predicting TSS for hsa-mir-5697, ignore DHS check.
PART1,
$tss_df:The first part of the result returns details of predicted TSSs, composed of seven columns: mir_name, chrom, stem_loop_p1, stem_loop_p2, strand mir_context, tss_type gene and predicted_tss:
+/-)intra/inter)host_TSS/intra_TSS/overlap_inter_TSS/inter_TSS)host_TSS: The TSSs of miRNA that are close to the TSS of protein-coding gene implying they may share the same TSS, on the condition where
mir_context = intra. (See above:mir_context)intra_TSS: The TSSs of miRNA that are NOT close to the TSS of protein-coding gene, on the condition where
mir_context = intra.overlap_inter_TSS: The TSSs of miRNA are cataloged as
overlap_inter_TSSwhen the pri-miRNA gene overlaps with Ensembl gene, on the condition where “mir_context = inter“.inter_inter_TSS: The TSSs of miRNA are cataloged as
inter_inter_TSSwhen the miRNA gene does NOT overlap with Ensembl gene, on the condition where “mir_context = inter“.(See Xu HUA et al 2016 for more details)
PART2,
$log:The second part of the result returns 4 logs created during the process of prediction:
find_nearest_peak_log: If no peaks locate in the upstream of a stem-loop to help determine putative TSSs of miRNA, we will fail to find the nearest peak and this miRNA will be logged infind_nearest_peak_log.eponine_score_log: For a certain miRNA, if none of the candidate TSSs scored with Eponine method meet the threshold we set, we will fail to get a eponine score and this miRNA will be logged ineponine_score_log.DHS_check_log: For a certain miRNA, if no DHS signals locate within 1 kb upstream of each putative TSSs, these putative TSSs will be filtered out and this miRNA will be logged inDHS_check_log.gene_filter_log: For a certain miRNA, when integrating expressed_gene data to improve prediction, if no putative TSSs are confirmed after considering the relative position relationship among TSSs, stem-loops and expressed genes, this miRNA will be filtered out and logged ingene_filter_log.4 Plot the prediction of TSS for miRNA
plot_primiRNA(): Apart from returning the putative TSS of each miRNA, the packageprimirTSScan also visualize the result and return an image composed of six tracks, (1)TSS, (2)genome, (3)pri-miRNA, (4)the closest gene, (5)eponine score and (6)conservation score. And the parameters in this function is almost the same as those infind_tss()exceptexpressed_mironly represents one certain miRNA inplot_primiRNA(). NOTICE that this function is used for visualizing the TSS prediction of only one specific miRNA every single time.Plot pri-miRNA TSS()5 Graphical web interface for prediction
run_primirTSSapp(): A graphical web interface is designed to achieve the functions offind_tssandplot_primiRNAto help users intuitively and conveniently predict putative TSSs of miRNA. Users can refer documents of the two functions, Find the best putative TSS and Plot the prediction of TSSs for miRNA, mentioned above for details.TAG1: Find the best putative TSS
Find pri-miRNA TSS()TAG2: Plot pri-miRNA TSS
Plot pri-miRNA TSS()Session info
Here is the output of sessionInfo() on the system on which this document was compiled: