Coder Social home page Coder Social logo

regtm / lexmapr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taisti/lexmapr

0.0 0.0 0.0 29.89 MB

LexMapr: A Lexicon and Rule-Based Tool for Translating Short Biomedical Specimen Descriptions into Semantic Web Ontology Terms

License: GNU General Public License v3.0

Python 100.00%

lexmapr's Introduction

LexMapr

A Lexicon and Rule-Based Tool for Translating Short Biomedical Specimen Descriptions into Semantic Web Ontology Terms

Build Status Coverage Status bioconda-badge

alt text

Installation

With Bioconda

Set up Bioconda, if you haven't already!

Then:

$ conda create -n LexMapr lexmapr
$ conda activate LexMapr
$ python -m nltk.downloader all

Without Bioconda

Install Conda.

Create a LexMapr environment:

$ conda create --name LexMapr

Install LexMapr into your conda environment:

$ conda activate LexMapr
$ git clone https://github.com/Public-Health-Bioinformatics/LexMapr.git
$ cd LexMapr
$ pip install .
$ python -m nltk.downloader all

Usage

Files

small_simple.csv

SampleId,Sample
small_simple1,Chicken Breast
small_simple2,Baked Potato
small_simple3,Canned Corn
small_simple4,Frozen Yogurt
small_simple5,Apple Pie

small_simple_config.json

[
  {"http://purl.obolibrary.org/obo/foodon.owl": "http://www.w3.org/2002/07/owl#Thing"}
] 

Command line

(LexMapr) foo@bar:~$ lexmapr small_simple.csv -c small_simple_config.json
Sample_Id       Sample_Desc     Cleaned_Sample  Matched_Components
small_simple1   Chicken Breast  chicken breast  ['chicken breast:foodon_00002703']
small_simple2   Baked Potato    baked potato    ['potato (whole, baked):foodon_03302196']
small_simple3   Canned Corn     canned corn     ['corn (canned):foodon_03302665']
small_simple4   Frozen Yogurt   frozen yogurt   ['frozen yogurt:foodon_03307445']
small_simple5   Apple Pie       apple pie       ['apple pie:foodon_00002475']

More Documentation

Formal documentation

Tutorial slides for users with little or no experience with command line

Tutorial slides for IFSAC users with little or no experience with command line

lexmapr's People

Contributors

dependabot[bot] avatar dfornika avatar ivansg44 avatar jpotoniec avatar lexmapr avatar regtm 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.