-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ author: | |
affiliation: | ||
- "Biostatistics Department, University of North Carolina-Chapel Hill, Chapel Hill, NC, USA" | ||
- "Genetics Department, University of North Carolina-Chapel Hill, Chapel Hill, NC, USA" | ||
email: [email protected] | ||
output: BiocStyle::html_document | ||
vignette: > | ||
%\VignetteIndexEntry{Perform Genomic Liftover} | ||
|
@@ -75,9 +74,11 @@ easylift(gr, to, chain) | |
|
||
## BiocFileCache | ||
|
||
To use `BiocFileCache` for the chain file, you can add it to the cache as follows: | ||
To use `BiocFileCache` for the chain file, you can add it to the cache | ||
as follows: | ||
|
||
```{r bioCache, eval=FALSE} | ||
chain_file <- "/path/to/your/chainfile.chain" | ||
chain_file <- "/path/to/your/hg19ToHg38.over.chain.gz" | ||
bfc <- BiocFileCache() | ||
bfcadd(bfc, chain_file) | ||
``` | ||
|
@@ -88,6 +89,10 @@ Then, you can use it in `easylift` like this: | |
gr |> easylift("hg38") | ||
``` | ||
|
||
`easylift` here will look for a chain file with the proper name | ||
(`genome(gr)` + "To" + Capitalized-`to`-argument + `.over.chain`) | ||
in the BiocFileCache default location. | ||
|
||
# Citation | ||
|
||
To cite package ‘easylift’ in publications use: | ||
|