get_twisst_data
a single topology weighting data set
get_twisst_data(loc, w_in, d_in, smooth = FALSE, span = 0.01)
loc | sample location (bel [Belize]/ hon [Honduras]/ pan [Panama]) |
---|---|
w_in | weights file (topology weighting results) |
d_in | data file (window position) |
smooth | logical - apply smoothing? |
span | granularity of smoothing |
The topology weighting file containg the weights is read, normalized and filtered for missing data. Then the file containg the window positions is read, filtered according to the weights file and its columns are renamed.
Optionally, the data is smoothed, then the weights and the position information is merged, reformated and the genomic positions are added.
Other Figure 4:
match_twisst_files()