View source: R/dataload_supp.R
Matching unq_ids and mblids for data. First it searches for missing mblids in the data set and capture their unq_ids. Then it subsets the reference according to the unq_ids found. Then it selects the time period based upon the timelabel. For every row of data we check if their unq_ids is in the subsetted reference's unq_id, then we grab the indices of those ones. If there are more than one unq_id, we select the one with the highest read count. If not, we grab the mblid and inputted it in.
1 | missing.imputation(reference, data, timelabel)
|
reference |
The data frame containing references |
data |
The data frame of the metabolomic data frame of interest |
timelabel |
The label of time point of interest |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.