View source: R/truncate_sequences.probability.R
| truncate_sequences.probability | R Documentation | 
Calculates the cumulative probability that all bases were called correctly along each DNA sequence and truncates the DNA sequence immediately prior to the first occurrence of a probability being equal to or less than a specified value.
truncate_sequences.probability(sequences, quality_scores, threshold = 0.5)
| sequences | A character vector of DNA sequences to truncate. | 
| quality_scores | A character vector of DNA sequence quality scores encoded in Sanger format. | 
| threshold | Numeric. The probability threshold used for truncation. The default is  | 
A list containing two elements. The first element is a character vector of truncated DNA sequences, and the second element is a character vector of quality scores which have been truncated to their corresponding truncated DNA sequences.
truncate_sequences.length for truncating DNA sequences to a specified length. 
truncate_sequences.quality_score for truncating DNA sequences by Phred quality score.
truncate_sequences.probability(sequences=c("ATATAGCGCG","TGCCGATATA","ATCTATCACCGC"),
                               quality_scores=c("989!.C;F@\"","A((#-#;,2F","HD8I/+67=1>?"),
                               threshold=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.