Entering edit mode
7.3 years ago
csjlee08
▴
10
I've been using a perl module called RestrictionDigest to do in silico whole genome digestion. It works on my Mac but when I move to Ubuntu (Linux) the script has an error message: Illegal division by zero at RestrictionDigest.pm line 1502 error code. Because it works on my Mac, I think it is a syntax error. If anyone is familiar with Linux command line, help is appreciated. https://github.com/JINPENG-WANG/RestrictionDigest/find/master --> link to program
The code to the perl module can be found here.
For such a large chunk of code a github gist is probably more convenient for sharing. Just make the gist and paste the link here, it will render automatically.
I replaced the copied / pasted code by a link to the line throwing the error message.
The same genome which works on a mac does not work on linux? Or different genomes? What are the perl versions on mac and linux? What are the command lines you issued at both mac and linux?
So, for some reason the variable
overall_length_of_scfd
is 0, it seems... (That's as helpful I can be when it's perl...)