From 3a240ab0d44e1f135fee0cb5e78885ed56fbef03 Mon Sep 17 00:00:00 2001 From: kzarns Date: Sat, 14 Sep 2013 16:39:04 -0500 Subject: [PATCH] Update merge.rst For sort, should chr9 be before chr10? I Added a V to the end of the first sort criteria. V is for version. In this case V will sort the numeric section of the first field as a number so that chr9 comes before chr10. If the first field is just for grouping and the order of chr9 vs chr10 does not matter, then this can be left out. --- docs/content/tools/merge.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/tools/merge.rst b/docs/content/tools/merge.rst index eca5c522..5db878fe 100755 --- a/docs/content/tools/merge.rst +++ b/docs/content/tools/merge.rst @@ -15,7 +15,7 @@ file into a single feature which spans all of the combined features. .. note:: ``bedtools merge`` requires that you presort your data by chromosome and - then by start position (e.g., ``sort -k1,1 -k2,2n in.bed > in.sorted.bed`` + then by start position (e.g., ``sort -k1,1V -k2,2n in.bed > in.sorted.bed`` for BED files). .. seealso::