Description Usage Arguments Value Examples
View source: R/feature_engineering.r
Calculate the length of the longest consecutive mono nucleotide
1 | add_mono_nucleotide_length(df_sequence, name_seq_col)
|
df_sequence |
Dataframe |
name_seq_col |
Name of the sequence column |
A new dataframe with existing columns and four added columns named - long_mono_A, long_mono_C, long_mono_G,long_mono_T
1 2 | df <- data.frame("id" = c('id1','id2') , "Sequnce_DNA" = c('AAAGGGCTTCCC','AGGGGGTTTCCC'))
df_new <- add_gc_content(df, 'Sequnce_DNA')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.