Description Usage Arguments Value Author(s) See Also Examples
Some additional details about this S4 generic and its methods. The extra blank line between this section and the title is critical for roxygen2 to differentiate the title from the description section.
1 2 3 | calculateLDSingle(x = "twk", interval = "ANY", window = "numeric",
minP = "numeric", minR2 = "numeric", threads = "numeric",
verbose = "logical", progress = "logical", ...)
|
x |
Integer representing the sorted state of the file. |
interval |
This parameter can be either a character string encoded as "CHR:POS" or a GenomicRanges object overlapping a single position. |
window |
Neighbourhood in base-pairs. |
minP |
Largest P-value to report. |
minR2 |
Smallest R-squared (R2) value to report. |
threads |
Number of Tomahawk threads used to unpack and compute the association data. |
verbose |
Flag triggering verbose output (written to std::cerr). This will usually, but not always, be appropriately handled by R. |
progress |
This flag will trigger a detached thread internal to Tomahawk that will tick progression every 30 seconds to the console. Note that R NEVER cleans up this thread and it will tick until the R instance is closed. |
Returns a twk
object with the loaded data.
Marcus D. R. Klarqvist <mk819@cam.ac.uk> | <https://mdrk.me>
twk_data
, twk_header
,
twk_filter
, and twk
1 2 3 4 5 6 7 8 9 | # This example assumes you have a Tomahawk file called "1kgp3_chr6.twk" in
# your current working directory.
twk2<-new("twk")
twk2@file.path <- "1kgp3_chr6.twk"
y<-calculateLDSingle(twk2, "6:20682622", threads = 4, window = 100000)
# Example using GenomicRanges class.
require(GenomicRanges)
g <- GRanges("6", IRanges(20682622, 20682622))
y<-calculateLDSingle(twk2, g, threads = 4, window = 100000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.