INNER CODE UNIT · Python

curver

Gabaldonlab/redundans · redundans.py:1018

                    curver = out.split()[-1].rstrip()
            if not curver.isdigit():
                sys.stderr.write(
                    "[WARNING] Problem checking %s version: %s. Proceed with care.\n"
                    % (cmd, out)
                )
            elif int(curver) < version:
                info = "[WARNING] Old version of %s: %s. Update to version %s+!\n"
                sys.stderr.write(info % (cmd, curver, version))
        except subprocess.CalledProcessError:
            sys.stderr.write(
                "[ERROR] CalledProcessError while checking %s. Is it correctly installed?\nMake sure you have installed all necessary dependencies from https://github.com/Gabaldonlab/redundans#manual-installation !\n[INFO] R dependencies can be ignored by ignoring --runmerqury option\n"
                % cmd
            )
            sys.exit(-1)


def main():

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…