From: Jim Procter Date: Thu, 22 Jul 2021 19:37:51 +0000 (+0100) Subject: JAL-1950 patch groovy bootstrap for importing hmmer3 json X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=327b70fcc535cee0098b53ebf928f453481be9d1;p=jalview.git JAL-1950 patch groovy bootstrap for importing hmmer3 json --- diff --git a/examples/groovy/hmmertestimport.groovy b/examples/groovy/hmmertestimport.groovy index 88bd0e1..9f0d34e 100644 --- a/examples/groovy/hmmertestimport.groovy +++ b/examples/groovy/hmmertestimport.groovy @@ -1,5 +1,5 @@ -// def alv = new jalview.io.FileLoader().LoadFileWaitTillLoaded("examples/testdata/hmmer3/alignment_res.fa.gz","File").getViewport(); -def alv = jalview.bin.Jalview.getCurrentAlignFrame().getViewport(); + def alv = new jalview.io.FileLoader().LoadFileWaitTillLoaded("examples/testdata/hmmer3/alignment_res.fa.gz",jalview.io.DataSourceType.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))