View source: R/sequence_length_summary_element.R
sequence_length_summary_element | R Documentation |
This function calculates summary statistics for the lengths of sequences containing specific distinct elements. It performs the summary for each distinct element found across the sequences.
sequence_length_summary_element(sequences)
sequences |
A character vector where each element is a sequence of elements separated by spaces. |
A data frame with the following columns:
element |
The distinct element. |
mean_seq_elements |
The mean length of sequences containing the element. |
sd_seq_elements |
The standard deviation of the lengths of sequences containing the element. |
median_seq_elements |
The median length of sequences containing the element. |
min_seq_elements |
The minimum length of sequences containing the element. |
max_seq_elements |
The maximum length of sequences containing the element. |
distinct_elements |
The number of distinct elements in sequences containing the element. |
pvalue_distinct_elements |
The p-value comparing the true number of distinct elements to shuffled sequences. |
sequences <- c('hello world', 'hello world hello', 'hello world hello world')
sequence_length_summary_element(sequences)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.