predictTxFeaturesPerSample, mergeTxFeatures
and filterTerminalExons.
predictTxFeatures(sample_info, which = NULL, alpha = 2, psi = 0, beta = 0.2, gamma = 0.2, min_junction_count = NULL, min_n_sample = 1, min_overhang = NA, cores_per_sample = 1, BPPARAM = MulticoreParam(1))data.frame with sample information.
Required columns are sample_name, file_bam,
paired_end, read_length, frag_length
and lib_size. Alignment information can be obtained with
function getBamInfo.GRanges of genomic regions to be considered for
feature prediction, passed to ScanBamParamread_length, frag_length and lib_size.
alpha is ignored if argument min_junction_count
is specified.alpha is ignored.min_overhang specifies the minimum overhang required for a
terminal exon to be included. Use NA to remove all terminal
exons sharing a splice site with an internal exon. Use NULL
to disable filtering (not usually recommended, as this will result
in terminal exon predictions for each splice site; disabling filtering
is useful if results are subsequently merged with other predictions
and filtering is postponed until after the merging step).BiocParallelParam for processing samples in parallel,
defaults to MulticoreParam(1)TxFeatures object
dir <- system.file("extdata", package = "SGSeq")
si$file_bam <- file.path(dir, "bams", si$file_bam)
txf <- predictTxFeatures(si, gr)
Run the code above in your browser using DataLab