View source: R/filter_coverage.R
filter_coverage | R Documentation |
This function is designed to remove/blacklist markers based on mean coverage information.
Filter targets: SNPs
Statistics: mean coverage ( The read depth of individual genotype is averaged across markers).
filter_coverage(
data,
interactive.filter = TRUE,
filter.coverage = NULL,
filename = NULL,
parallel.core = parallel::detectCores() - 1,
verbose = TRUE,
...
)
data |
(4 options) A file or object generated by radiator:
How to get GDS and tidy data ?
Look into |
interactive.filter |
(optional, logical) Do you want the filtering session to
be interactive. Figures of distribution are shown before asking for filtering
thresholds.
Default: |
filter.coverage |
(optional, string) 2 options:
Default: |
filename |
(optional, character)
Default: |
parallel.core |
(optional) The number of core used for parallel
execution during import.
Default: |
verbose |
(optional, logical) When |
... |
(optional) Advance mode that allows to pass further arguments for fine-tuning the function. Also used for legacy arguments (see details or special section) |
With interactive.filter = FALSE
, a list in the global environment,
with 7 objects:
$tidy.filtered.mac
$whitelist.markers
$blacklist.markers
$mac.data
$filters.parameters
With interactive.filter = TRUE
, a list with 4 additionnal objects are generated.
$distribution.mac.global
$distribution.mac.local
$mac.global.summary
$mac.helper.table
dots-dots-dots ... allows to pass several arguments for fine-tuning the function:
filter.common.markers
(optional, logical).
Default: filter.common.markers = FALSE
,
Documented in filter_common_markers
.
filter.monomorphic
(logical, optional) Should the monomorphic
markers present in the dataset be filtered out ?
Default: filter.monomorphic = TRUE
.
Documented in filter_monomorphic
.
path.folder
: to write ouput in a specific path
(used internally in radiator).
Default: path.folder = getwd()
.
If the supplied directory doesn't exist, it's created.
To help choose a threshold for the local and global MAF use the interactive version.
2 steps in the interactive version:
Step 1. Visualization and helper table.
Step 2. Filtering markers based on mean coverage
Thierry Gosselin thierrygosselin@icloud.com
## Not run:
# The minumum
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.