seqs2hap {geneHapR} | R Documentation |
Generate Hap Results from Seqs
Description
generate hapResults from aligned and trimed sequences
Usage
seqs2hap(
seqs,
Ref = names(seqs)[1],
hetero_remove = TRUE,
na_drop = TRUE,
maxGapsPerSeq = 0.25,
hapPrefix = "H",
pad = 3,
chrName = "Chr0",
...
)
trimSeqs(seqs,
minFlankFraction = 0.1)
Arguments
seqs |
object of DNAStringSet or DNAMultipleAlignment class |
Ref |
the name of reference sequences. Default as the name of the first sequence |
hetero_remove |
whether remove accessions contains hybrid site or not.
Default as |
na_drop |
whether drop sequeces contain "N"
Default as |
maxGapsPerSeq |
value in |
hapPrefix |
prefix of hap names. Default as "H" |
pad |
The number length in haplotype names should be extend to. |
chrName |
the Name should be used for haplotype |
... |
Parameters not used. |
minFlankFraction |
A value in |
Value
object of hapResult class
Examples
data("geneHapR_test")
seqs
seqs <- trimSeqs(seqs,
minFlankFraction = 0.1)
seqs
hapResult <- seqs2hap(seqs,
Ref = names(seqs)[1],
hetero_remove = TRUE, na_drop = TRUE,
maxGapsPerSeq = 0.25,
hapPrefix = "H")