Description Usage Arguments Details Value Examples
Wavelet based technique to compute a quality LAS for regions
across the genome. The spector_qc()
is the recommended function to
access spector
since it includes several checks and allows for more
flexibility than some of the downstream functions.
1 2 3 4 5 |
f_bam |
a string with path to |
f_bed |
file path for bed file to override default giab. |
regions |
character. Indicates the type of region to be used to process
the bam file. The default value is |
region_size |
integer. Choose size of regions to calculate LAS value.
The default |
file_type |
type of file passed to f_bam (Optional). This is to ensure
the automated checks pick up the correct format. The possible options
are |
out_F |
(Optional) Folder path to save output. If omitted results will be returned, but not saved. |
save_out |
logical. Indicating if output from |
silent |
logical. Default |
smr_var |
deprecated. Variable to use to compute summary. |
file_cores |
integer. Optional number indicating if the QC should be computed in parallel across all input files. |
chr_cores |
integer. Optional number indicating if the QC should be
computed in parallel across chromosomes. Default value is |
bed_header |
logical. |
region_overlap |
numeric. This is a number used when computing full genome regions in the package. It indicated the fractional overlap between neighbouring regions. |
genome |
character. The genome version of the bam file. Unless a |
res_verbose |
logical. |
The spector_qc
function is the main function to use for QC in the
spector
package. It will compute a quality control LAS for specific
regions across the genome.
The default regions, supplied in the package, are based
on the genome in a bottle project
(giab) reliable regions, calculated
using ReliableGenome
(RG).
It is also possible to supply custom regions as a bed file or a
data.frame
object.
It is important to supply full paths to f_bam
, and f_bed
.
Though the path can be relative to the current working directory, which can
be set with base::setwd()
. This also applies to the first
column of a parameter file that can be supplied to f_bam
.
Output is a tbl_df
object with a LAS value for each
region. Optionally the output can also be saved to file, but only if
out_F
is provided.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# Compute QC on sampl1.bam with default options
spector_qc(f_bam = "sample1.bam")
## End(Not run)
s1_path <- spector_sample("sample1.bam")
basic_path <- spector_sample("basic.bed")
# Compute QC on sample1.bam with custom region size
spector_qc(f_bam = s1_path, region_size = 2^14)
# Compute QC on sample1.bam with custom bed file
spector_qc(f_bam = s1_path, f_bed = basic_path)
# Compute QC and save output results
spector_qc(f_bam = s1_path, f_bed = basic_path, out_F = "~/",
save_out = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.