Git Product home page Git Product logo

adam-plugins's Introduction

adam-plugins


NOTE: The ADAM plugin API was removed in bigdatagenomics/adam#1065.

This project will no longer be updated.


External plugins in Java and Scala for ADAM: Genomic Data System. Apache 2 licensed.

###Hacking adam-plugins

Install

To build

$ mvn install

Running adam-plugins using adam-submit

$ cp target/adam-plugins_2.10-0.19.1-SNAPSHOT.jar $ADAM_DIR
$ cd $ADAM_DIR

To run the plugins in this repository via the ADAM command line, add the jar to the classpath with the Spark --jars argument.

Note the -- argument separator between Spark arguments and ADAM arguments.

Run plugins

$ ./bin/adam-submit \
      --jars adam-plugins_2.10-0.19.1-SNAPSHOT.jar \
      -- \
      plugin com.github.heuermh.adam.plugins.CountAlignments \
      adam-core/src/test/resources/small.sam
 
(1,20)


$ ./bin/adam-submit \
      --jars adam-plugins_2.10-0.19.1-SNAPSHOT.jar \
      -- \
      plugin com.github.heuermh.adam.plugins.CountAlignmentsPerRead \
      adam-core/src/test/resources/small.sam
 
(simread:1:237728409:true,1)
(simread:1:195211965:false,1)
(simread:1:163841413:false,1)
(simread:1:231911906:false,1)
(simread:1:26472783:false,1)
(simread:1:165341382:true,1)
(simread:1:240344442:true,1)
(simread:1:50683371:false,1)
(simread:1:240997787:true,1)
(simread:1:14397233:false,1)
(simread:1:207027738:true,1)
(simread:1:20101800:true,1)
(simread:1:101556378:false,1)
(simread:1:37577445:false,1)
(simread:1:189606653:true,1)
(simread:1:5469106:true,1)
(simread:1:186794283:true,1)
(simread:1:89554252:false,1)
(simread:1:153978724:false,1)
(simread:1:169801933:true,1)

adam-plugins's People

Contributors

heuermh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adam-plugins's Issues

Running against adam built for scala version 2.11 does not work

As might be expected, running adam-plugins-0.16.1-SNAPSHOT.jar against adam built for scala version 2.11 does not work

$ ADDL_JARS=adam-plugins-0.16.1-SNAPSHOT.jar bin/adam-submit \
>         plugin com.github.heuermh.adam.plugins.CountAlignments \
>         adam-core/src/test/resources/small.sam
Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.$conforms()Lscala/Predef$$less$colon$less;
    at org.bdgenomics.adam.cli.ADAMMain$.main(ADAMMain.scala:104)
    at org.bdgenomics.adam.cli.ADAMMain.main(ADAMMain.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)
    at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)
    at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)

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.