View source: R/standardise.sumstats.column.headers.crossplatform.R
standardise.sumstats.column.headers.crossplatform | R Documentation |
Use a reference data table of common column header names (stored in sumstatsColHeaders.rda) convert them to a standard set, i.e. chromosome –> CHR
standardise.sumstats.column.headers.crossplatform(first_line)
first_line |
String containing the first line of the sumstats file |
This function does not check that all the required column headers are present
The amended header is written directly back into the file
The amended column headers (also the column headers will be written directly into the summary statistics file)
## Not run:
path <- MAGMA.Celltyping::get_example_gwas()
first_line <- readLines(path)[1]
col_headers <- MAGMA.Celltyping:::standardise.sumstats.column.headers.crossplatform(
first_line = first_line)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.