From: Jim Procter Date: Fri, 15 Sep 2017 13:21:28 +0000 (+0100) Subject: JAL-1950 groovy script to test loading of JSON dump from Hmmer3 (v3.0b1 server) X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cfa2e8ce7f01a7cbbf15373d522667672b02c725;p=jalview.git JAL-1950 groovy script to test loading of JSON dump from Hmmer3 (v3.0b1 server) --- 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