View source: R/mergeExternalData.R
mergeExternalData | R Documentation |
To boost its own sequencing data, one can download existing and precounted
data. This function merges the existing FraserDataSet
with
external count data.
mergeExternalData(fds, countFiles, sampleIDs, annotation = NULL)
fds |
A |
countFiles |
A character vector of file names pointing to the external
count data. The vector has to be names or the files have to start
with |
sampleIDs |
The samples to be merged from the external data. |
annotation |
A sample annotation of the external data (optional). |
For more details on existing datasets have a look at: <https://github.com/gagneurlab/drop#datasets>
Since FRASER can not hand NA values, the merge will return only the intersecting regions and will drop any non overlapping features. This has to be kept in mind when analysing rare disease samples.
Merged FraserDataSet
object.
anno <- fread(system.file("extdata", "externalCounts",
"annotation.tsv.gz", package="FRASER"))
ctsFiles <- list.files(full.names = TRUE, pattern="counts",
system.file("extdata", "externalCounts", package="FRASER"))
fds <- createTestFraserDataSet()
fds_merged <- mergeExternalData(fds, ctsFiles, anno[,sampleID], anno)
K(fds, "psi5")
K(fds_merged, "psi5")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.