@@ -19,10 +19,6 @@ isore.combineTranscriptCandidates <- function(readClassList,
1919 min.readCount , min.readFractionByGene ,
2020 min.txScore.multiExon , min.txScore.singleExon , verbose )
2121 combinedSplicedTranscripts [,confidenceType : = " highConfidenceJunctionReads" ]
22- # when single exon min score is greater than 1, skip unspliced transcripts combination
23- # this is a very customized config, useful when data is very big
24- if (min.txScore.singleExon > 1 )
25- return (combinedSplicedTranscripts )
2622 combinedUnsplicedTranscripts <-
2723 combineUnsplicedTranscriptModels(readClassList , bpParameters ,
2824 stranded , min.readCount , min.readFractionByGene ,
@@ -39,11 +35,11 @@ isore.combineTranscriptCandidates <- function(readClassList,
3935combineSplicedTranscriptModels <- function (readClassList , bpParameters ,
4036 min.readCount , min.readFractionByGene , min.txScore.multiExon ,
4137 min.txScore.singleExon , verbose ){
42- bpParameters $ progressbar <- FALSE
38+ bpParameters $ progressbar = FALSE
4339 options(scipen = 999 ) # maintain numeric basepair locations not sci.notfi.
4440 start.ptm <- proc.time()
4541 n_sample <- length(readClassList )
46- nGroups <- max(ceiling(n_sample / 10 ),min(bpworkers(bpParameters ),
42+ nGroups = max(ceiling(n_sample / 10 ),min(bpworkers(bpParameters ),
4743 round(n_sample / 2 )))
4844 indexList <- sample(rep(seq_len(nGroups ), length.out = n_sample ))
4945 indexList <- splitAsList(seq_len(n_sample ), indexList )
@@ -132,7 +128,7 @@ combineFeatureTibble <- function(combinedFeatureTibble,
132128 maxTxScore.noFit , NSampleReadCount , NSampleReadProp ,NSampleTxScore ,
133129 starts_with(' start' ), starts_with(' end' ), starts_with(' readCount' ))
134130 } else {
135- combinedTable <- full_join(combinedFeatureTibble ,
131+ combinedTable = full_join(combinedFeatureTibble ,
136132 featureTibbleSummarised , by = c(' intronStarts' , ' intronEnds' , ' chr' ,
137133 ' strand' ), suffix = c(' .combined' ,' .new' )) %> %
138134 mutate(NSampleReadCount = pmax0NA(NSampleReadCount.combined ) +
@@ -212,7 +208,7 @@ combineUnsplicedTranscriptModels <-
212208 min.readFractionByGene , min.txScore.multiExon ,
213209 min.txScore.singleExon , verbose ){
214210 start.ptm <- proc.time()
215- bpParameters $ progressbar <- FALSE
211+ bpParameters $ progressbar = FALSE
216212 newUnsplicedSeList <-
217213 bplapply(seq_along(readClassList ), function (sample_id )
218214 extractNewUnsplicedRanges(readClassSe =
@@ -289,7 +285,7 @@ reduceUnsplicedRanges <- function(rangesList, stranded){
289285makeUnsplicedTibble <- function (combinedNewUnsplicedSe ,newUnsplicedSeList ,
290286 colDataNames ,min.readCount , min.readFractionByGene ,
291287 min.txScore.multiExon , min.txScore.singleExon , bpParameters ){
292- bpParameters $ progressbar <- FALSE
288+ bpParameters $ progressbar = FALSE
293289 newUnsplicedTibble <- as_tibble(combinedNewUnsplicedSe ) %> %
294290 rename(chr = seqnames ) %> % select(chr , start , end , strand , row_id ) %> %
295291 separate_rows(row_id , sep = " \\ +" )
0 commit comments