jpayne@0: jpayne@0: one pair of reads from a collection of paired reads jpayne@0: jpayne@0: jpayne@0: $output_seed && jpayne@0: #import random jpayne@0: #set $_ = random.seed($seed) jpayne@0: #set $choice = random.choice(list($input)) jpayne@0: cp $choice.forward $selection.forward && cp $choice.reverse $selection.reverse jpayne@0: ]]> jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: jpayne@0: Choose one pair at random from a paired dataset. jpayne@0: If you re-use the seed, the choice should be the same jpayne@0: (this is for reproducability of analysis.) jpayne@0: Provide a blank seed value to use a seed created jpayne@0: as an MD5 sum of the dataset's name. jpayne@0: jpayne@0: jpayne@0: jpayne@0: