Giter Site home page Giter Site logo

gpdler's Introduction

gpdler: download and parse genome project info

gpdler is a maven based java module that makes it easy to parse and download all of NCBI's bioproject (genome project) related information and most importantly the links that are available in LinkOut. Its original goal is to have a quick and dirty way to get a copy of all links submitted to LinkOut as part of the Genomic Rosetta Stone.

To this end, it contains an XML parser for the NCBI BioProject XML format (for extra information), a nearly complete domain mapping of all entities described in that format, and various utility classes to download LinkOut entries using the eutils tools.

Usage

Once you've cloned the repository, you should be able to simply build and run the jar with:

mvn package
java [email protected] -jar target/gpdler*-executable.jar

This will run the code with defaults, downloading all files from FTP and mappings from LinkOut (which will take a long time, due to bandwidth restrictions and the size of stuff necessary). The result is stored in a H2 DB called "grsdb2.h2.db" in the current directory.

If you just want to use this download the data and do your own database loading you can either extend the existing functionality or use standard database tools to load the data from there into the database of your choice.

Known Issues

Sometimes a connection might take a while to time out (even though both connection and read timeouts have been set). The code can recover but you might see some slowdown as a result.

Not everything has been mapping in the XML, but most of what is missing would be easy to add.

Loading mappings is currently somewhat slow because it uses a transaction per mapping.

License

The code is licensed under the terms of the Apache License, Version 2.0. A copy should be in the LICENSE file of this repository.

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.