sort.bed | R Documentation |
Sorts .bed files by chromosome and position.
## S3 method for class 'bed'
sort(
bed,
bed.header = FALSE,
sep = "\t",
return.bed = TRUE,
export.file.name = NULL,
export.header = FALSE,
unique.regions = TRUE,
verbose = TRUE
)
bed |
Two options are possible: |
bed.header |
Logic value to define whether the .bed file contains an header or not. By default |
sep |
String containing the separator character for a .bed file. By default |
return.bed |
Logic value to define if to return the bed as a data.frame. By default |
export.file.name |
Optional: string to define the path to the file to be exported, if required. By default |
export.header |
Logic value to define whether the header should be exported in the sorted bed file. By default |
unique.regions |
Logic value to indicate whether the output bed must contain unique regions. By default |
verbose |
Logic value to indicate whether messages should be printed or not. By default |
The function keeps only unique rows.
To get more information about the bed file format see the following page:
https://genome.ucsc.edu/FAQ/FAQformat.html#format1.
If required, returns a data.frame corresponding to the sorted .bed file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.