|
62 | 62 | #' \item{prefix}{specifying prefix for new gene Ids (genePrefix.number), |
63 | 63 | #' defaults to "Bambu"} |
64 | 64 | #' } |
| 65 | +#' @param opt.rcAssignment A list of controlling parameters for the read class |
| 66 | +#' to transcript assignment process: |
| 67 | +#' \describe{ |
| 68 | +#' \item{min.exonDistance}{specifying minimum distance to known transcript |
| 69 | +#' to be considered a valid match, defaults to 35bp} |
| 70 | +#' \item{min.primarySecondaryDist}{specifying the minimum distance |
| 71 | +#' threshold between primary and secondary assignments, defaults to 5bp} |
| 72 | +#' \item{min.primarySecondaryDistStartEnd2}{specifying the minimum |
| 73 | +#' distance threshold for start/end positions used for read assignment, |
| 74 | +#' defaults to 5bp} |
| 75 | +#' } |
65 | 76 | #' @param opt.em A list of controlling parameters for quantification |
66 | 77 | #' algorithm estimation process: |
67 | 78 | #' \describe{ |
|
141 | 152 | #' genome = fa.file, discovery = TRUE, quant = TRUE) |
142 | 153 | #' @export |
143 | 154 | bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL, |
144 | | - mode = NULL, opt.discovery = NULL, opt.em = NULL, rcOutDir = NULL, discovery = TRUE, |
145 | | - assignDist = TRUE, quant = TRUE, stranded = FALSE, ncore = 1, yieldSize = NULL, |
| 155 | + mode = NULL, opt.discovery = NULL, opt.rcAssignment = NULL, opt.em = NULL, rcOutDir = NULL, discovery = TRUE, |
| 156 | + assignDist = TRUE, quant = TRUE, stranded = FALSE, ncore = 1, yieldSize = NULL, |
146 | 157 | trackReads = FALSE, returnDistTable = FALSE, lowMemory = FALSE, sampleData = NULL, |
147 | 158 | fusionMode = FALSE, verbose = FALSE, demultiplexed = FALSE, quantData = NULL, |
148 | 159 | sampleNames = NULL, cleanReads = FALSE, dedupUMI = FALSE, barcodesToFilter = NULL, clusters = NULL, |
@@ -183,7 +194,7 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL, |
183 | 194 | isoreParameters <- setIsoreParameters(isoreParameters = opt.discovery) |
184 | 195 | #below line is to be compatible with earlier version of running bambu |
185 | 196 | if(!is.null(isoreParameters$max.txNDR)) NDR = isoreParameters$max.txNDR |
186 | | - |
| 197 | + rcAssignmentParameters <- setRcAssignmentParameters(rcAssignmentParameters = opt.rcAssignment) |
187 | 198 | emParameters <- setEmParameters(emParameters = opt.em) |
188 | 199 | bpParameters <- setBiocParallelParameters(reads, ncore, verbose, demultiplexed) |
189 | 200 | xgb.set.config(nthread = 1) |
@@ -242,9 +253,9 @@ bambu <- function(reads, annotations = NULL, genome = NULL, NDR = NULL, |
242 | 253 | quantData <- bplapply(seq_along(readClassList), function(i){ |
243 | 254 | assignReadClasstoTranscripts( |
244 | 255 | readClassList = readClassList[[i]], |
245 | | - annotations = annotations, |
246 | | - isoreParameters = isoreParameters, |
247 | | - verbose = verbose, |
| 256 | + annotations = annotations, |
| 257 | + rcAssignmentParameters = rcAssignmentParameters, |
| 258 | + verbose = verbose, |
248 | 259 | # for bulk data, there is one sampleData (keep sampleData[1]), for single-cell, there is one per sample |
249 | 260 | sampleMetadata = if(length(sampleData) == 1) sampleData[1] else sampleData[i], |
250 | 261 | demultiplexed = demultiplexed, |
|
0 commit comments