View source: R/make_window_df.R
make_window_df | R Documentation |
Casts epitope or protein data into a dataframe where rows correspond to a fixed-length window centred on consecutive positions of each sequence.
make_window_df(df, save_folder = NULL, window_size = NULL, ncpus = 1)
df |
data frame of epitope data (returned by |
save_folder |
path to folder for saving the results. |
window_size |
positive integer, size of window to use. If df is a
data.table of class joined_epitope_dt (returned from
|
ncpus |
positive integer, number of cores to use |
The sliding window runs from the first to the last positions of each sequence
in the df input (which in turn comes from running prepare_join_df()
).
If a window extends beyond the limits of the protein it is padded with the
first (or last) letter of the sequence.
A data.table object containing the sliding window representation of the input data.
Felipe Campelo (f.campelo@aston.ac.uk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.