Giter Site home page Giter Site logo

opensourcecannabis / chroma Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 65 KB

Chroma is a PDF and CSV parser for chromatography batch reports, with some input parameters that allows flexibility in the analysis of the input.

Home Page: https://cannabislims.com/

License: MIT License

Ruby 99.42% Shell 0.58%

chroma's Introduction

Chroma::Reader Gem

Chroma is a PDF and CSV parser for chromatography batch reports, with some input parameters that allows flexibility in the analysis of the input.

Header discovery, row discovery, column exclusion, column reordering.

>> REPORT START 2019-01-11 16:41
Sample_23 781.674 507.096 662.184 678.83 109.636 581.873 500.424 651.328 596.718 64.142 122.673
Sample_35 683.892 317.118 359.568 13.52 735.353 218.804 381.964 625.032 781.882 685.874 856.873
Sample_37 341.68 780.786 679.52 843.436 613.123 729.566 94.02 454.303 584.151 152.453 230.487
<< REPORT END 2019-01-11 16:43

Input options for the Chroma::Reader constructor

  • input: File or file_path of the report to read
PDF options
  • header_regex: RE to identify the header row
  • header_column_regex: RE to identify the header column separator (overwrites column_regex)
  • header_skip_column: array of indexes of columns to ignore (overwrites skip_column)
  • header_append: array of elements to append to the header
  • header_prepend: array of elements to prepend to the header
  • header_sort: array of strings to specify the order of columns
  • row_regex: RE to identify data rows
  • column_regex: RE to identify the column separator
  • skip_column: array of indexes of columns to ignore
  • should_scrub_re: RE to remove a anchor from data rows
  • reject_sample_regex: RE to reject sample-id
CSV options
  • header_replace: header for the mapping of the CSV file is given, existing is removed
  • header_provide: header for the mapping of the CSV file is given

chroma's People

Contributors

etozzato avatar

Watchers

James Cloos 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.