ContentMine/pyCProject

Name: pyCProject

Owner: The ContentMine

Description: Provides basic function to read a ContentMine CProject and CTrees into python datastructures.

Created: 2015-11-11 09:26:27.0

Updated: 2018-03-21 11:11:27.0

Pushed: 2017-06-03 15:50:14.0

Homepage: null

Size: 44

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

pyCProject

Provides basic function to read a ContentMine CProject and CTrees into python datastructures.

Main use is to read in all results.xml created by ami, and to be relate them to papers/metadata.

DEPRECATION WARNING

Visualization / network analysis in factnet.py will is no longer supported or maintained in this package as it is not part of the core functionality, and will be removed.

Installation

install pycproject
ce activate YOURVIRTUALENV
install pycproject
on setup.py build
on setup.py install

converting to json-dumps

If your cproject is in PATH/TO/CPROJECT/CPROJECTNAME, call the script with

on3 pycproject/convert2elasticdump.py --raw PATH/TO/CPROJECT --name CPROJECTNAME --output PATH/TO/OUTPUTFOLDER

Usage

You can then read a generated ContentMine-project in with

 pycproject.readctree import CProject
OJECT = CProject("path_to_cproject", "cproject_name")

You can work with a pandas DataFrame after creating it with

 MYPROJECT.get_dataframe()

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.