Giter VIP home page Giter VIP logo

tmoss's People

Contributors

alexkassil avatar yanlisa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tmoss's Issues

README: bin/moss location is incorrect

The README states that the file structure to store the MOSS binary should be:

code/
    bin/
        moss

however pymoss looks within its own directory for the bin folder, so either the code needs to fixed to look for code/bin/moss or the directory structure in the README should be:

code/
    pymoss/
        bin/
            moss

The culprit for this is in code/pymoss/runner.py on line 12:

BINARY = os.path.realpath(os.path.join(os.path.dirname(__file__), "bin", "moss"))

which appends bin/moss to the directory /path/to/tmoss/code/pymoss/

MOSS flags incorrect

The way MOSS is run in pymoss is broken and there is no clear fix from the code as given. There are comments that reference the flags set for the perl script and none of them exist within the mossnet perl script. In tmoss/code/pymoss/runner.py, it sets the MOSS flags as follows:

        # These options were hard-coded in the Perl script (some were vars but not user-settable).
        MAGIC_ARGS = ["-p", "24", "-t", "26", "-g", "10", "-w", "5"]

        args = ["-n", str(threshold), "-a", manifest, "-o", results]

Of these flags, only -n and -p are valid MOSS flags (and setting the port to 24 seems incorrect). It is unclear through reading the code as to the intent of the flags in MAGIC_ARGS. I am assuming the -a and -o have something to do with how the files are input and results are output, but that is also unclear. I don't see any variables within the MOSS script that can be hard-coded to the MAGIC_ARGS values, either.

If one removes MAGIC_ARGS and the -a and -o flags, then MOSS is run without any files as input. The value on execution of manifest is the string "manifest" and results contains the string "results". It would be very beneficial to see a copy of the version of MOSS used when using this tool to determine how to proceed or update this to work with the current MOSS. The software, as is, is inoperable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.