Git Product home page Git Product logo

ega_metadata's Introduction

NAME

ega_csv2json: A script that parses EGA metadata files and serializes it to json/hash data structures.

SYNOPSIS

ega_csv2json.pl -i <file.csv> [-options]

  Arguments:                       
    -i|input                       Metadata txt, csv or tsv file

  Options:
    -f|format                      Output format [>json|hash]
    -h|help                        Brief help message
    -man                           Full documentation
    -debug                         Print debugging (from 1 to 5, being 5 max)
    -verbose                       Verbosity on

CITATION

To be defined.

SUMMARY

ega_csv2json: A script that parses EGA metadata files and serializes it to json/hash data structures.

HOW TO RUN EGA_CSV2JSON

The script runs on Linux (tested on Debian-based distribution). Perl 5 is installed by default on Linux, but you might need to install a few CPAN modules.

First we install cpanminus (with sudo privileges):

$ sudo apt-get install cpanminus

Then the modules:

$ cpanm --sudo --installdeps .

If you prefer to install the CPAN modules in the directory of the application we recommend using the module Carton

$ cpanm --sudo Carton

And then execute this command:

$ carton install

For executing ega_csv2json you will need:

  • Input file

    Uncompressed CSV, TSV, or TXT file.

    Please note that this script is a proof-of-concept and we are aware that it does not parse well all files (e.g., multivalue cells).

Examples:

$ ./ega_csv2json.pl -i file.csv > file.json

$ $path/ega_csv2json.pl -i file.csv -format hash > file.txt

$ carton exec -- ./ega_csv2json.pl -i file.csv > file.json # If using Carton

AUTHOR

Written by Manuel Rueda, PhD. Info about EGA can be found at https://ega-archive.org/.

REPORTING BUGS

Report bugs or comments to [email protected].

COPYRIGHT

This PERL file is copyrighted. See the LICENSE file included in this distribution.

ega_metadata's People

Contributors

mrueda avatar

Watchers

 avatar  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.