Attempts splitting sequence cluster into two haplotypes.
Source:R/cluster.R
try_split_haplotypes.RdAttempts splitting sequence cluster into two haplotypes.
Usage
try_split_haplotypes(
reads,
d,
prefix,
min_identical = 4,
max_ratio = 3,
fast = FALSE,
cores = 1,
...,
samtools = "samtools",
minimap2 = "minimap2",
verbose = FALSE
)Arguments
- reads
XStringQuality object
- d
a data frame as returned by dada2_denoise and
ambig_consensuswith these columns:id
top_uniques
consensus_ambigs
- prefix
Path prefix where the .bam alignment and .fasta reference is found (may be overwritten!)
- min_identical
minimum number of identical sequences supporting both of the dominant unique sequences
- max_ratio
maximum abundance ratio (mapped read abundances) for splitting
- fast
use faster compression (larger BAM file)