I am working with a document listing genome location numbers and want to select only those listings that have adjacent (greater or smaller) numerical values.
The dataset is formatted like this:
2L_33 2L_34 3L_45 3L_87 X_202 X_203 X_204
And I want this as an output (omits values with no numerically adjacent listings):
2L_33 2L_34 X_202 X_203 X_204
How can I write a script to accomplish this?
In reply to Adjacent numbers by melissa_randel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |