jolobito / SPdel

Comparing species delimitation methods and statistics for DNA Barcoding data sets
5 stars 3 forks source link

check and update bins #50

Closed Ulises-Rosas closed 6 months ago

Ulises-Rosas commented 6 months ago

Bins and their corresponding permissions are updated. It is necessary to verify whether they are correctly integrated into the main script.

For example, consider the case with ASAP, which varies depending on the operating system:

# this can go at the beginning of the SPdel.py script
import sys

# this can go between line 845 and 846.
myos = sys.platform
if myos == 'darwin':
    asap = 'asap_darwin'
elif myos in ['linux', 'linux2']:
    asap = 'asap_linux'
elif myos == 'win32':
    asap = 'asap.exe'

# and this at line 855 in SPdel.py
subprocess.call([asap, '-d', d, '-o', os.path.join(basepath, 'ASAP'), file])   

This approach can be similarly applied to ABGD and MPTP if they have not been previously verified.