vendredi 20 novembre 2020

Need help for a loop with random permuted numbers and feed the permutated values to a perl code

I have a well-written perl code (not authored by me), I want to use it for some analysis and need it to iterate over 1000 times with different set of input parameters. I will explain:

perl cmh-test.pl --input C1_E1_C2_E2_C3_E3_C4_E4_java.sync --output C1_E1_C2_E2_C3_E3_C4_E4_java.latest.cmh --min-count 20 --min-coverage 30 --max-coverage 400 --population 1-2,3-4,5-6,7-8 --remove-temp

I now want to run the same code 1000 times, but change the --population parameter every time such as where the first time it was 1-2,3-4,5-6,7-8, next time it becomes a random permutation of 1 to 8, such as 1-3,2-4,5-7,6-8 and so on. How do I do this?

Any help will be greatly appreciated.




Aucun commentaire:

Enregistrer un commentaire