| seqs2hap | R Documentation | 
generate hapResults from aligned and trimed sequences
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)
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   | 
object of hapResult class
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.