quiltdata / nf-quilt

GNU General Public License v3.0
7 stars 1 forks source link

Use `quilt_rs` #203

Closed fiskus closed 2 months ago

fiskus commented 3 months ago

On top of https://github.com/quiltdata/nf-quilt/pull/202

You need fresh version of https://github.com/quiltdata/quilt-rs/pull/187: there are slightly different methods names, because Quilt now is Java_nextflow_quilt_jep_Quilt

  1. Go to quilt_rs repo, git pull latest change of the jni branch. Then cargo build. It will build libquilt_rs.so in target/debug
  2. Back to this repo
  3. cd plugins/nf-quilt/src/main/nextflow/quilt/jep
  4. Change path in System.load in Quilt.java to the correct location of the libquilt_rs.so
  5. javac Quilt.java. It will compile Quilt.class
  6. Then you can run tests: cd - && make check

Tests are failing because they rely on one directories' structure, but quilt_rs uses different directories. I couldn't manage to fix them.