Skip to content

Conversation

@kzarns
Copy link

@kzarns kzarns commented Sep 14, 2013

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.

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.
@arq5x
Copy link
Owner

arq5x commented Sep 16, 2013

Well, version sort is not available for the default versions of many OS. I would rather assume -V is not present, but we could always make a note about the -V option in newer versions of coreutils.

@brentp
Copy link
Contributor

brentp commented Sep 16, 2013

Doesn't bedtools sort assume that it's NOT sorted in "natural" order and assumes that chr9 comes after chr10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants