View source: R/assemble_reads.R
assemble_reads | R Documentation |
Perform Overlap-Layout-Consensus (OLC) to combine reads into a contig.
assemble_reads(vec, n_reads = NULL, msa_result = FALSE, add_id = TRUE, min_len = 8L, min_pid = 85, consensus_min_len = 100)
vec |
A vector containing the sequences to be assembled. |
n_reads |
A integer vector to record the number of reads that are used to construct the sequences in |
msa_result |
A logical scalar specifying whether the multiple sequence alignment result is returned. |
add_id |
A logical scalar specifying whether Universally unique identifiers (UUID) are used to name the returned contigs. If it is |
min_len |
An integer specifying the minimum overlapping length in the step of overlapping reads. |
min_pid |
A numeric object specifying the minimum percentage of identity (PID) between the overlapping region. |
consensus_min_len |
An integer specifying the minimum length of the returned contigs. |
By default, the function does not return the reads that have no overlapping with others.
A list that contains
consensus |
A string vector containing assembled contigs |
n_reads |
An integer vector indicating the number of reads used to construct the contigs |
If msa_result
is TRUE,
the list will have an extra slot.
msa |
A character vector containing a view of MSA. |
Cheuk-Ting Law
construct_contigs
seq <- c("ACTACGATCGTAGCTGCTGTGTATGCAT", "GCTGCTGTGTATGCATGCTGACGTCGT") # ACTACGATCGTAGCTGCTGTGTATGCAT----------- # ------------GCTGCTGTGTATGCATGCTGACGTCGT assemble_reads(seq, consensus_min_len = 10, add_id = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.