From cfa2e8ce7f01a7cbbf15373d522667672b02c725 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 15 Sep 2017 14:21:28 +0100 Subject: [PATCH] JAL-1950 groovy script to test loading of JSON dump from Hmmer3 (v3.0b1 server) --- examples/groovy/hmmertestimport.groovy | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 examples/groovy/hmmertestimport.groovy diff --git a/examples/groovy/hmmertestimport.groovy b/examples/groovy/hmmertestimport.groovy new file mode 100644 index 0000000..88bd0e1 --- /dev/null +++ b/examples/groovy/hmmertestimport.groovy @@ -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 -- 1.7.10.2