Commit Graph
5 Commits
Author SHA1 Message Date
Nicola Soranzo f865e8359f Deprecate size attribute of <param/> and remove it from tools
Also:
- dos2unix test/functional/tools/for_workflows/head.xml
- Single-quote text and data params in `<command/>`
- Remove deprecated `interpreter` attribute of `<command />`
2018-09-10 11:34:37 +01:00
mvdbeek 3d9c0b154a Make random_lines1 consistent on py2 and py3 (again)
Turns out integers are used as is in `random.seed()`, but strings are
hashed (in the version 1 protocol), and the hashing isn't stable. So
instead we hack around this by using `ord()` on each character and
concatenating the digits.  Yucky, but probably better than using numpy
and putting this tool on the list of tools that inherit galaxy's
environment (or adding a requirement tag and resolving with conda ...).
2018-08-10 22:21:21 +02:00
Daniel Blankenberg 940bb8d738 Some random lines tool tweaks. 2011-09-25 13:27:14 -04:00
Daniel Blankenberg 09e8a94a5a Rewrite random lines tool. Does two passes through input file: first pass determines line offsets/count, offsets are randomly removed, second pass writes out lines by seeking to remaining offsets. The random seed can now be optionally specified. 2011-09-23 13:49:33 -04:00
Kanwei Li a41a6e5eb0 New tool to select N random lines from a file/dataset. Closes #238 2010-04-01 22:48:57 -04:00