Description Usage Arguments Value Author(s) See Also Examples
A back-end function used by the front-end function ripSeek
to train HMM paramters on all of the chromosomes indepdently. This function in turn calls another function mainSeekSingleChrom
to compute HMM paramters on each chromosome separately or in parallel (if multicore is TRUE).
1 2 3 4 5 6 |
bamFiles |
A list of paths to individual BAM files. BED and SAM files are also accepted. |
reverseComplement |
Whether the reads came from the original or the opposite strand of the RNA being sequenced. If former, then |
genomeBuild |
When the input alignment format is BED, genomeBuild is only required in |
uniqueHit |
Binary indicator. If uniqueHit=TRUE, only reads mapped to single unique loci are used to train the HMM. Otherwise, all of the reads including multihits will be used for the HMM. A multihit is a read mapped to more than one loci. The flags for uniqueHits and multihits are the metadata values of GAlignments object constructed in |
assignMultihits |
Binary indicator used by ripSeek to tell the function whether disambiguate multihits by assigning them to unique loci with the maximum posterior probability obtained from running HMM (See |
strandType |
A character variable indicate which strand the RIPSeeker needs to operate on. The options are NULL, '+', '-', '*'. If NULL or '*', then all of the reads will be used (preferable for non-strand specific sequencing). If '+' or '-', only reads from '+' or '-' strand will be used, respectively. Note that the sign is assumed to be THE SAME AS the strand sign of the processed alignment object and will be the opposite sign if reverseComplement is TRUE (See |
paired |
Binary to indicate whether the library is paired-end (TRUE) or single-end (FALSE by default) (see |
rerunWithDisambiguatedMultihits |
After multihits have been asigned to unique loci, |
silentMain |
Binary indicator to indicate whether to disable the verbose from the |
multicore |
Binary indicator to indicate whether to use |
returnAllResults |
Binary indicator to indicate whether to return all (HMM trained parameters, original, and disambiguated GAlignments) or just the HMM results. |
... |
Arguments passed to |
A list containing:
nbhGRList |
GRangesList each item containig the HMM training results on a single chromosome. |
alignGal |
Original alignment data in GAlignments object |
alignGalFiltered |
Disambiguated alignmnet data with multihits assigned to unique loci. |
Yue Li
ripSeek, mainSeekSingleChrom, mclapply
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Retrieve system files
extdata.dir <- system.file("extdata", package="RIPSeeker")
bamFiles <- list.files(extdata.dir, ".bam$", recursive=TRUE, full.names=TRUE)
bamFiles <- grep("PRC2", bamFiles, value=TRUE)
# Parameters setting
binSize <- 1e5 # use a large fixed bin size for demo only
minBinSize <- NULL # min bin size in automatic bin size selection
maxBinSize <- NULL # max bin size in automatic bin size selection
multicore <- FALSE # use multicore
strandType <- "-" # set strand type to minus strand
################ run mainSeekSingleChrom function for HMM inference on all chromosomes ################
mainSeekOut <- mainSeek(bamFiles=grep(pattern="SRR039214",
bamFiles, value=TRUE, invert=TRUE),
binSize=binSize, minBinSize = minBinSize,
maxBinSize = maxBinSize, strandType=strandType,
reverseComplement=TRUE, genomeBuild="mm9",
uniqueHit = TRUE, assignMultihits = TRUE,
rerunWithDisambiguatedMultihits = FALSE,
multicore=multicore, silentMain=FALSE, verbose=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.