Git Product home page Git Product logo

Comments (2)

rkimoakbioinformatics avatar rkimoakbioinformatics commented on May 30, 2024 1

Hi again, currently, exporting to an excel file with filters applied is not possible on the result viewer GUI, but it is being considered for a future release. Meanwhile, there is a couple of workaround. First, make the filter criteria on the result viewer GUI and then save it with the file save icon at the bottom right corner of the Filter tab. Give a name to the filter. Then, on the command-line, run the command

sqlite3 xxxxx.sqlite 'select viewersetup from viewersetup where name="<filter name>"'

(xxxxx.sqlite as your result database file and as the filter save name)
The result will be a string such as

{"filterSet":{"sample":{"require":[],"reject":[]},"genes":[],"variant":{"operator":"and","rules":[{"column":"base__so","test":"select","value":["MIS"]},{"column":"base__coding","test":"hasData","negate":false}]},"smartfilter":{"base":{"so":["MIS"],"coding":false}}}}

Make a text file such as filter.json with its content being the output of the above sqlite3 command. Save the file, and run

oc report xxxxx.sqlite -t excel -f filter.json

(replace xxxxx.sqlite and filter.json with your paths. Use -t option of your choice)
to get a filtered excel output, for example.

In the next version of oc, oc report xxxxx.sqlite -F <filter name> -t excel will be supported.

Another option is to make the filter.json file yourself. It is a bit more complicated, but if you prefer this way, we can explain, let us know.

from open-cravat.

kmoad avatar kmoad commented on May 30, 2024 1

What you want in filter.json is actually the value of "filterSet". So delete {"filterSet": from the start, and the last } from the end.

from open-cravat.

Related Issues (20)

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.