This function Check wether sample names are coherent between the measurment dataframe and the target dataframe. If they are coherent,
the target dataframe rows are reordered to match the column order of the measurment dataframe.
Usage
make_df_and_targets_great_again(df, targets)
Arguments
- df
the measurment n*m dataframe (n is number of omic features, m is number of samples) where columns are ordered by conditions.
- targets
A n*2 dataframe, where n is the number of samples. First column correspond to samples, second column correspond to conditions.
Value
A list, first element is the cleaned measurment dataframe and second element is the cleaned target dataframe.