View source: R/sort_coordinates.R
sort_coordinates | R Documentation |
Sort a table of summary statistics by their genomic coordinates without reading the file into R.
sort_coordinates(
target_path,
chrom_col,
start_col,
end_col = start_col,
comment_char = NULL,
save_path = NULL,
method = c("bash", "data.table"),
outputs = c("command", "path", "data"),
verbose = TRUE
)
target_path |
Path to full GWAS/QTL summary statistics file. |
chrom_col |
Name of the chromosome column
in the |
start_col |
Name of the genomic start position column
in the |
end_col |
Name of the genomic end position column
in the |
comment_char |
A single character which, when present as the first character in a line, indicates that the line is to be omitted from indexing. |
save_path |
File to save the results to. |
method |
Method to sort coordinates with. |
outputs |
|
verbose |
Print messages. |
StackExchange discussion of how sort
handles numbers
dat <- echodata::BST1
tmp <- tempfile()
data.table::fwrite(dat, tmp)
out <- echotabix::sort_coordinates(target_path=tmp,
chrom_col = "CHR",
start_col = "POS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.