Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Java validation library for ISA-TAB?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ramon  
View profile  
 More options Aug 14 2012, 7:57 pm
From: Ramon <felci...@gmail.com>
Date: Tue, 14 Aug 2012 16:57:10 -0700 (PDT)
Local: Tues, Aug 14 2012 7:57 pm
Subject: Java validation library for ISA-TAB?

Hi --

Is there a java library for providing basic ISA-TAB validation (i.e.
without requiring a custom configuration)? For example, something that
could be called from either the commandline or a Java method, pointing to a
set of ISA-TAB files and list out any validation errors / issues that it
finds?

Thanks,

Ramon


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Philippe  
View profile  
 More options Aug 15 2012, 5:03 pm
From: Philippe <proccase...@gmail.com>
Date: Wed, 15 Aug 2012 22:03:13 +0100
Local: Wed, Aug 15 2012 5:03 pm
Subject: Re: [ISAforum] Java validation library for ISA-TAB?
Hello Ramon,

ISA validator/converter can be run as a command line tool and fed a set
of ISA-TAB files

More information is available from github here:

https://github.com/ISA-tools/ISAvalidator-ISAconverter-BIImanager/blo...

the document details how to call the validator, but also other scripts
to convert to different format (calling ISAconverter), or managing
ownership and permission if you are using BII store.

One still has to specify a isa configuration but the default one can be
set once and for all.

Each folder containing an ISA archive and listed as a target for the
validator will, following validation, hold a log listing all warnings,
errors found.

Best wishes

Philippe

On 15/08/2012 00:57, Ramon wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ramon  
View profile  
 More options Aug 15 2012, 6:10 pm
From: Ramon <felci...@gmail.com>
Date: Wed, 15 Aug 2012 15:10:24 -0700 (PDT)
Local: Wed, Aug 15 2012 6:10 pm
Subject: Re: Java validation library for ISA-TAB?
Hi Philippe --

Thanks for the pointer. It doesn't look like the ISAvalidator-
ISAconverter-BIImanager project you pointed me to has any binaries or
pre-compiled JARs in it so I downloaded ISA-validator-1.5 from the
main site. The README suggests that on windows you can call "validate"
and it will run the Windows batch file equivalent of "validate.sh".
There is no such file in that release. There is a version on GitHub
but it looks a bit spare:

https://github.com/ISA-tools/ISAvalidator-ISAconverter-BIImanager/blo...

Where can I get a binary of the validator to work with?

Thanks!

Ramon

On Aug 15, 2:03 pm, Philippe <proccase...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eamonn Maguire  
View profile  
 More options Aug 16 2012, 2:55 am
From: Eamonn Maguire <eamonn...@gmail.com>
Date: Thu, 16 Aug 2012 08:55:05 +0200
Local: Thurs, Aug 16 2012 2:55 am
Subject: Re: [ISAforum] Re: Java validation library for ISA-TAB?
Hi Ramon,

Do you use maven at all for build management, If so I can give you the
pointer to the repository to pull in the validator dependencies.

If not then the jar you downloaded either as the converter, validator
or BII data manager (all jars are the same they just call different
components for the user interface) has all the API components you
need. However I believe the BII data manager download will have all
the scripts for validating and loading from the command line. There is
some documentation in the wiki for that project on GitHub for
programmatic validation conversion and loading when the downloaded jar
is included in your class path.

I'm currently on holidays so I don't have all the links at hand (sending from my
Phone) but Philippe will have the link to the wiki page and I can send
further examples should you require them when I get back on Sunday.

Many thanks,

Eamonn

--
Eamonn Maguire
Sent from my iPhone with tiny buttons

On 16 Aug 2012, at 00:10, Ramon <felci...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ramon  
View profile  
 More options Aug 17 2012, 6:32 pm
From: Ramon <felci...@gmail.com>
Date: Fri, 17 Aug 2012 15:32:00 -0700 (PDT)
Subject: Re: Java validation library for ISA-TAB?
Hi Eamonn --

I downloaded BII-data-manager 1.5 and don't see any obvious scripts
for validation so perhaps we can follow up when you return. Enjoy your
holiday!

Ramon

On Aug 15, 11:55 pm, Eamonn Maguire <eamonn...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eamonn Maguire  
View profile  
 More options Aug 20 2012, 4:12 am
From: Eamonn Maguire <eamonn...@gmail.com>
Date: Mon, 20 Aug 2012 09:12:12 +0100
Local: Mon, Aug 20 2012 4:12 am
Subject: Re: [ISAforum] Re: Java validation library for ISA-TAB?

Hi Ramon,

So, it seems that the scripts were separated up. In the validator download,
there is a validate.sh script in the archive. In the BII data manager
download there are several scripts, namely: load.sh; unload.sh and
reindex.sh.

So, if you just copy the script available here
https://github.com/ISA-tools/ISAvalidator-ISAconverter-BIImanager/blo...
the directory you now have for the BII data manager, you will be able
to do validation from the command line.

I hope this now answers your question. If you would like more information
about how to use everything programmatically, you can consult this wiki
page (which will be added to) that contains technical information on how to
use the program in your tools.

Many thanks,

Eamonn

On 18 August 2012 10:48, Philippe <proccase...@gmail.com> wrote:

--

-------------------------------------------------------------
Eamonn Maguire                          
Lead Software Engineer - ISA tools <http://www.isa-tools.org>                                                                                                

University of Oxford            Tel: +44(0)1865 610788
Oxford e-Research Center        
7 Keble Road, Oxford            skype: maguire1986
OX1 3QG, UK                    
-------------------------------------------------------------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marco Brandizi  
View profile  
 More options Aug 20 2012, 6:54 am
From: Marco Brandizi <brand...@ebi.ac.uk>
Date: Mon, 20 Aug 2012 11:54:35 +0100
Local: Mon, Aug 20 2012 6:54 am
Subject: Re: [ISAforum] Re: Java validation library for ISA-TAB?

Hi Ramon,

Although I don't work on this project any more, the situation about your
issues seems to be still the same as when I first arranged it via Maven.
This is what I remember about:

- there is a 'command line' package, which you can build from the
'import_layer' module, via 'package.sh'. The result will be a zip that,
when exploded, will create a directory with all the needed code
dependencies and .sh scripts necessary to run various commands available
from the ISA Tools.

- validation (as pretty much any other piece of end-user functionality)
can also be invoked programmatically. Have a look at
AbstractImportLayerShellCommand.loadIsaTab() to get an idea of how to do
that.

- the validator performs some common-requirements validation
independently on what one defines with the ISA-Configurator. You can
exclude the latter completely by going on the validator installation
directory and removing/renaming/moving from there the
'config/isa_configurator/' directory. This way, there will be no
information coming from the ISA-configurator and hence only basic
validation will be run. This trick should still work with the
command-lines or programmatically, I don't remember exactly how the GUIs
work with this.

- when I created the above-mentioned .sh scripts, the equivalent .bat
commands for Windows were not a priority (not for developers at least,
those who are more interested in command-lines) and hence I've left them
behind. However, there are a few of such .bat files which I completed
and should still be working (e.g., reindex.bat). It should not be
difficult to take one of them as model, copy/paste, look at the
equivalent .sh and write the .bat that are still missing. if you want to
go for this route, I guess your results can be integrated in the
existing code-base and be useful to other people. A quicker alternative
could be using .sh files under Windows, via a tool like win-bash
(http://win-bash.sourceforge.net/) or Cygwin (http://www.cygwin.com/),
but keep in mind I've never tried that (win-bash should work and it's
smaller and less complicated to install). Reporting back experience with
this other approach could be useful to ISA-Tools users too.

Hope it helps,
Marco.

On 20/08/2012 09:12, Eamonn Maguire wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »