JAL-1950 groovy script to test loading of JSON dump from Hmmer3 (v3.0b1 server)
authorJim Procter <jprocter@issues.jalview.org>
Fri, 15 Sep 2017 13:21:28 +0000 (14:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 15 Sep 2017 13:21:28 +0000 (14:21 +0100)
examples/groovy/hmmertestimport.groovy [new file with mode: 0644]

diff --git a/examples/groovy/hmmertestimport.groovy b/examples/groovy/hmmertestimport.groovy
new file mode 100644 (file)
index 0000000..88bd0e1
--- /dev/null
@@ -0,0 +1,6 @@
+// def alv = new jalview.io.FileLoader().LoadFileWaitTillLoaded("examples/testdata/hmmer3/alignment_res.fa.gz","File").getViewport();
+def alv = jalview.bin.Jalview.getCurrentAlignFrame().getViewport();
+def al = alv.getAlignment();
+def jproc = new jalview.ws.ebi.HmmerJSONProcessor(al)
+jproc.parseFrom(new jalview.io.FileParse("/Users/jprocter/git/jalview/examples/testdata/hmmer3/hmmeresult.json.gz",jalview.io.DataSourceType.FILE))
+jproc.updateView(alv)
\ No newline at end of file