Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Random shuffling

by u65 (Chaplain)
on Jun 20, 2015 at 10:33 UTC ( #1131251=note: print w/replies, xml ) Need Help??

in reply to Random shuffling

Can you provide some sample data and expected results?

Update: First pass through the code looks okay to me (without looking at the shuffle module) and I think I know what the input looks like: an Id line followed by a variable length string of space-separated tokens of DNA groups with possibly very long lines. So are your differing results a format difference (I suspect not) or sequence difference? For random shuffling you can't expect the same results unless you use the same random number sequence as in the comparative study.

Update: I've tried the code and, assuming data like this,

>ID1 A/B/C/D E/F/G/Z

there are format errors in the output. We really need more information about the problem, especially the exact input format. (See toolic's comments below.)

Replies are listed 'Best First'.
Re^2: Random shuffling
by onlyIDleft (Scribe) on Jun 20, 2015 at 18:18 UTC

    Thanks for your reply. Just to clarify, there are no separators. The sequences are strings of As Ts Gs and Cs. For example (just cooking up something):








Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1131251]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2020-10-23 09:42 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (236 votes). Check out past polls.