standardise_sumstats_column_headers_crossplatform {MungeSumstats} | R Documentation |
Use a reference data table of common column header names (stored in sumstatsColHeaders or user inputted mapping file) to convert them to a standard set, i.e. chromosome -> CHR. This function does not check that all the required column headers are present. The amended header is written directly back into the file
standardise_sumstats_column_headers_crossplatform( sumstats_dt, mapping_file = sumstatsColHeaders )
mapping_file |
MungeSumstats has a pre-defined column-name mapping file which should cover the most common column headers and their interpretations. However, if a column header that is in youf file is missing of the mapping we give is incorrect you can supply your own mapping file. Must be a 2 column dataframe with column names "Uncorrected" and "Corrected". See data(sumstatsColHeaders) for default mapping and necessary format. |
list containing sumstats_dt, the modified summary statistics data table object