View source: R/WholeGenomeAlignment.R
chainMergeSort | R Documentation |
Wrapper function of chainMergeSort
:
Combines sorted files into a larger sorted file.
This function doesn't work on Windows platform since Kent utilities only
support Linux and Unix platforms.
chainMergeSort(chains, assemblyTarget, assemblyQuery, allChain=paste0(sub("\\.2bit$", "", basename(assemblyTarget), ignore.case=TRUE), ".", sub("\\.2bit$", "", basename(assemblyQuery), ignore.case=TRUE), ".all.chain"), removeChains=TRUE, binary="chainMergeSort")
chains |
|
assemblyTarget |
|
assemblyQuery |
|
allChain |
|
removeChains |
|
binary |
|
This allChain file is what we get from UCSC download, e.g., hg19.danRer7.all.chain.gz.
character
(1): the file names of merged allChain file.
Ge Tan
http://hgdownload.cse.ucsc.edu/admin/exe/
axtChain
## Not run: ## This example doesn't run because it requires two bit files and external ## Kent utilities. chains <- tools::list_files_with_exts( dir="/Users/gtan/OneDrive/Project/CSC/CNEr/axt", exts="chain") assemblyTarget <- "/Users/gtan/OneDrive/Project/CSC/CNEr/2bit/danRer10.2bit" assemblyQuery <- "/Users/gtan/OneDrive/Project/CSC/CNEr/2bit/hg38.2bit" chainMergeSort(chains, assemblyTarget, assemblyQuery, allChain=file.path("/Users/gtan/OneDrive/Project/CSC/CNEr/axt", paste0(sub("\\.2bit$", "", basename(assemblyTarget), ignore.case=TRUE), ".", sub("\\.2bit$", "", basename(assemblyQuery), ignore.case=TRUE), ".all.chain")), removeChains=FALSE, binary="chainMergeSort") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.