readProcessIsoloci {polyRAD} | R Documentation |
Import Read Depth from Output of process_isoloci.py
Description
After process_isoloci.py is used to assign RAD tags to alignment locations
within a highly duplicated genome, readProcessIsoloci
imports the
resulting CSV to a "RADdata"
object.
Usage
readProcessIsoloci(sortedfile, min.ind.with.reads = 200,
min.ind.with.minor.allele = 10,
min.median.read.depth = 10,
possiblePloidies = list(2), taxaPloidy = 2L,
contamRate = 0.001,
nameFromTagStart = TRUE, mergeRareHap = TRUE)
Arguments
sortedfile |
File path to a CSV output by process_isoloci.py. |
min.ind.with.reads |
Minimum number of individuals with reads needed to retain a locus. |
min.ind.with.minor.allele |
Minimum number of individuals with reads in a minor allele needed to retain a locus. |
min.median.read.depth |
Minimum median read depth across individuals (including individuals with depth 0) needed to retain a locus. |
possiblePloidies |
A list indicating possible inheritance modes of loci. See |
taxaPloidy |
A single integer, or an integer vector with one value per taxon, indicating
ploidy. See |
contamRate |
Approximate rate of cross-contamination among samples. |
nameFromTagStart |
If |
mergeRareHap |
Boolean indicating whether to run |
Details
MergeIdenticalHaplotypes
is used internally by this function to
merge alleles with identical sequence for the region shared by all tags, in
cases where tags vary in length within a locus.
Value
A "RADdata"
object containing read depth and alignment positions
from sortedfile
.
Author(s)
Lindsay V. Clark