@@ -29,7 +29,7 @@ preparePromoterAnnotation <- function(txdb, file, species) {
2929 promoterAnnotation <- PromoterAnnotation()
3030
3131 # ## Reduce first exons to identify transcripts belonging to each promoter
32- print (' Extract exons by transcripts...' )
32+ message (' Extract exons by transcripts...' )
3333 transcriptRanges <- getTranscriptRanges(txdb , species )
3434 exonRangesByTx <- getExonRangesByTx(txdb , species = species )
3535 transcriptRanges $ TxWidth <- vapply(width(exonRangesByTx ),
@@ -43,12 +43,12 @@ preparePromoterAnnotation <- function(txdb, file, species) {
4343 transcriptRanges $ TXNAME )]
4444
4545 # # Identify overlapping first exons by gene and annotate with promoter ids
46- print (' Identify overlapping first exons for each gene...' )
46+ message (' Identify overlapping first exons for each gene...' )
4747 exonReducedRanges <- getReducedExonRanges(exonRanges.firstExon ,
4848 exonRanges.firstExon.geneId )
4949
5050 # ## Prepare the id mapping transcripts, TSSs, promoters and genes ###
51- print (' Prepare mapping between transcripts, tss, promoters and genes...' )
51+ message (' Prepare mapping between transcripts, tss, promoters and genes...' )
5252 tssCoordinates <- getTssRanges(transcriptRanges )
5353 revmapTMP <- as.vector(exonReducedRanges $ revmap )
5454 txName.all <- exonRanges.firstExon $ tx_name [unlist(revmapTMP )]
@@ -70,7 +70,7 @@ preparePromoterAnnotation <- function(txdb, file, species) {
7070 ' tssId' , ' promoterId' , ' geneId' )
7171
7272 # ## Prepare the annotated intron ranges to be used as input for junction read counting ###
73- print (' Prepare annotated intron ranges...' )
73+ message (' Prepare annotated intron ranges...' )
7474 intronRangesByTx <- getIntronRangesByTx(txdb , transcriptRanges , species )
7575 intronRangesByTx.unlist <- unlist(intronRangesByTx )
7676 intronRanges.unique <- getUniqueIntronRanges(intronRangesByTx.unlist )
@@ -94,7 +94,7 @@ preparePromoterAnnotation <- function(txdb, file, species) {
9494 intronRanges.annotated <- annotateIntronRanges(intronRanges.unique , intronTable )
9595
9696 # ## Annotate the reduced exons with promoter metadata
97- print (' Annotating reduced exon ranges...' )
97+ message (' Annotating reduced exon ranges...' )
9898 # # Identify first intron for each promoter for each transcript
9999 intronIdByPromoter.firstIntron <- getIntronIdPerPromoter(intronRangesByTx.unlist , promoterIdMapping )
100100
@@ -107,7 +107,7 @@ preparePromoterAnnotation <- function(txdb, file, species) {
107107 exonReducedRanges <- annotateReducedExonRanges(exonReducedRanges , promoterMetadata , intronIdByPromoter.firstIntron )
108108
109109 # ## Retrieve promoter coordinates
110- print (' Prepare promoter coordinates and first exon ranges...' )
110+ message (' Prepare promoter coordinates and first exon ranges...' )
111111 promoterCoordinates <- promoters(exonReducedRanges , downstream = 1 , upstream = 0 )
112112 exonEnd <- resize(exonReducedRanges , width = 1 , fix = ' end' )
113113 promoterCoordinates.metadata <- data.frame (promoterId = promoterCoordinates $ promoterId ,
0 commit comments