GithubHelp home page GithubHelp logo

bio2upset_plots's Introduction

Creating upset plots from BIO (CONLL) files

Upset plots are a clever way to present intersection and differences between sets. It is pretty useful for comparing different systems that produce results in BIO format (NER for instance). Contrary to Venn Diagrams, upset plots allows to represent clearly more than three sets intersections and differences.

The upset plots themselves are produced using the upsetplot python Library

Acknowledgements

Special thanks to Jean-Baptiste Tanguy (Sorbonne Université) for bringing this visualization to my attention. Thanks also to Steve Mutuvi (Multimedia University of Kenya, La Rochelle University), Caroline Koudoro-Parfait and Richy Nutt (Sorbonne Université) for testing the different versions and bringing useful ideas and comments.

Usage

For a command line usage : python bio_to_upset_plots.py DIR

  • where DIR is the directory where the aligned result files (BIO format) are stored

For an external usage

  • call the files_2_cat function with a path containg BIO files
  • by default the names displayed on the graphs are derived from the filenames
  • Options:
  • img_format : specifying another image format (defaul : png)
  • dic_names : alternate names to display for the graph
  • Works IF
    • dic_names associates a name to each path
    • OR dic_names associates a name to each filename
  • else:
    • use default names (e.g. filenames)

TODO:

  • better handling of BIO format
  • offer the possibility to select the appropriate columns
  • display messages regarding the quality of the data

bio2upset_plots's People

Contributors

rundimeco avatar

Watchers

James Cloos avatar  avatar

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.