Code Monkey home page Code Monkey logo

biopy-isatab's Introduction

Python Parser for ISA-Tab

This is a python parser for extracting information from ISA-Tab formatted metadata. Usage is:

      from bcbio import isatab
      rec = isatab.parse(isatab_metadata_directory)

The returned record matches the general Investigation/Study/Assay structure of ISATab. The top level ISATabRecord object contains information about the investigation, along with study information as ISATabStudyRecord objects. Each record has assay information in ISATabAssayRecord sub-objects.

The output is described in more detail in the parser module:

https://github.com/ISA-tools/biopy-isatab/blob/master/bcbio/isatab/parser.py

and the test directory contains example of use and information extraction:

https://github.com/ISA-tools/biopy-isatab/blob/master/test/test_isatab.py

You can also display the structure of an object by printing it:

>>> print isatab_rec

* ISATab Record
 metadata: {}
 studies:
  * Study
   metadata: {'Study Description': 'C2C12 mouse skeletal muscle cells',
      'Study Identifier': 'SB-S-1',
      'Study Submission Date': '2010-10-04'}
   nodes:
       * Node C2C12 sample3 rep3 Sample Name
         metadata: {'Sample Name': ['C2C12 sample3 rep3'],
          'organism': [Attrs(organism='Mus musculus (Mouse)',
                       Term_Source_REF='NEWT',
                       Term_Accession_Number='10090')]}

More information about ISATab:

License

The code is freely available under the MIT license_.

.. _MIT license: http://www.opensource.org/licenses/mit-license.html

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.