sampleSwaps | R Documentation |
Given a list BAM files, the function genotypes known SNPs and identifies potentially related samples. For the source of SNPs, see reference
sampleSwaps(
bams = NULL,
build = "hg19",
prefix = NULL,
add = TRUE,
min_depth = 30,
ncores = 4,
...
)
bams |
Input bam files. Required. |
build |
reference genome build. Default "hg19". Can be hg19 or hg38 |
prefix |
Prefix to add or remove from contig names in SNP file. If BAM files are aligned GRCh37/38 genome, use prefix 'chr' to 'add' |
add |
If prefix is used, default is to add prefix to contig names in SNP file. If FALSE prefix will be removed from contig names. |
min_depth |
Minimum read depth for a SNP to be considered. Default 30. |
ncores |
Default 4. Each BAM file will be launched on a separate thread. Works only on Unix and macOS. |
... |
Additional arguments passed to |
a list with results summarized
Westphal, M., Frankhouser, D., Sonzone, C. et al. SMaSH: Sample matching using SNPs in humans. BMC Genomics 20, 1001 (2019). https://doi.org/10.1186/s12864-019-6332-7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.