Code Monkey home page Code Monkey logo

cosmic's Introduction

CosmicRdf

COSMIC RDF Converter

Description

COSMIC http://cancer.sanger.ac.uk/cosmic よりダウンロード可能な ファイルからRDF形式に変換するスクリプトです。

  • 対象のファイルは以下の通りです。
    (ダウンロードにはCOSMICサイトへ登録が必要です)
    CosmicMutantExport.tsv.gz
    CosmicStructExport.tsv.gz
    CosmicBreakpointsExport.tsv.gz
    CosmicFusionExport.tsv.gz
    CosmicNCV.tsv.gz
    CosmicCompleteCNA.tsv.gz
    CosmicCompleteGeneExpression.tsv.gz
    CosmicCompleteDifferentialMethylation.tsv.gz
    CosmicSample.tsv.gz
    CosmicHGNC.tsv.gz
    CosmicResistanceMutations.tsv.gz

Usage

直接GitHubから取得した場合

実行環境に必要なgemをインストールします。

(Gemfile ファイルが在るディレクトリ) bundle install

ruby bin/file2rdf.rb -d [上記のファイルのあるディレクトリ]
-d 以下を省略すると[ /opt/ ]を参照し、ファイルが無ければエラーとなり対象のファイルはスキップされます。

Docker を利用する場合(暫定)

Dockerが利用できる環境で以下のコマンドにより自動的に変換スクリプトが実行され実行が終了するとイメージが削除されます。

docker run -v [上記のファイルのあるディレクトリ]:/opt/ --hostname cosmicrdf -it --rm genomedianak/cosmic_rdf ruby /root/cosmic_rdf/bin/file2rdf.rb

※現在はDockerで全てのファイルを対象に行うと、2日以上かかります。

cosmic's People

Contributors

spietgo avatar

Watchers

Toshiaki Katayama avatar James Cloos avatar kojima avatar Daisuke Satoh avatar

Forkers

skwsm ppvastar

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.