Hi All,
Since we've heard from a fair number of folks running AftrRAD on Linux systems (which is often quite a bit slower than on Macs), I took a stab at adding an option for parallel runs on multi-processor systems. I've attached a draft version of the updated script. Currently, the only two steps that run in parallel are the initial demultiplexing step and the ACANA alignment step, which is the one causing the biggest issue on Linux. So, we may be able to further optimize additional steps later, but as jt is, this should be a significant improvement in terms of speed on Linux systems (it should also speed up Mac runs if you have multiple processors available). If you want to give it a try, do the following…
1.) Add the attached script to your working AftrRAD directory.
2.) Install Parallel:ForkManager. I was able to do this on both my Mac and Linux system by simply typing "sudo cpan Parallel:ForkManager" at the command prompt, entering the sudo password, and typing 'yes' whenever prompted.
3.) There is a command line argument in the new script to specify the number of processors to use, so, where you would have originally run 'perl AftrRAD.pl', simply run...'perl AftrRAD_Parallel_Draft.pl maxProcesses-X', where of course X is number of processors you want to use.
4.) Note the output to the screen in the parallel version may look just slightly different than if running on a single processor, but the results should be the same.
If you give it a try, any feedback would be much appreciated - especially if you encounter problems. Eventually, we'll incorporate this into a new official version of the program, but want to test it out bit more first. Hope it's helpful!
Mike