TS file converter for IDS-JSON and ADF-compatible HDF5.
984
This docker repository contains the image for the TetraScience File Converter. It can be used to transform cell counter IDS-JSON files into ADF-compatible hdf5 files (with adf file extension) or to extract IDS-JSONs from a TS-produced ADF file. For more notes on the file converter, please see our docs
To use this converter, you will first need to download and install docker (available here). You will then need to sign in to your account so that you can access this private repo.
To pull this repo, you will need to log in to docker in the command line:
docker login
You will next need to pull this image:
docker pull tetrascience/ts-file-converter
This docker container runs main.py to do file conversion. In the sections below, you can find the commands to run the ids-to-hdf5 or hdf5-to-ids. Both of these converters use shared arguments:
Positional arguments:
converter Specify converter: 'ids-to-hdf5' or 'hdf5-to-ids'
Required arguments:
-i INPUT, --input INPUT
Input IDS-JSON filepath
-o OUTPUT, --output OUTPUT
Output directory
Optional arguments:
-h, --help show this help message and exit
-s SCHEMA, --schema SCHEMA
Schema type. Default: 'cell-counter'.
Only needed for ids-to-hdf5.
For each command, you will also have to mount a local directory. This is captured in the -v <insert /path/to/file>:/app/tmp argument, and will allow you to convert local files and save the output locally. For more information on mounting in docker, see docker's docs.
To convert from ids to ADF-compatible hdf5, use the following command:
docker run --rm -v <insert /path/to/file>:/app/tmp tetrascience/ts-file-converter ids-to-hdf5 -i /app/tmp/<input.json> -o /app/tmp/<insert local output-folder>
This command will convert the file at path/to/file/input.json to an ADF-compatible hdf5 at path/to/file/output. Additionally, flattened IDS-JSON and a triple store will be stored at this location.
Notes:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by de.osthus.ambeth.repackaged.com.esotericsoftware.reflectasm.AccessClassLoader (file:/app/src/adf_util/ts-lib-allotrope-1.0-SNAPSHOT-jar-with-dependencies.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of de.osthus.ambeth.repackaged.com.esotericsoftware.reflectasm.AccessClassLoader
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
To extract an ids from a TS-produced ADF-compatible hdf5, use the following command:
docker run --rm -v <insert /path/to/file>:/app/tmp tetrascience/ts-file-converter hdf5-to-ids -i /app/tmp/<input.adf> -o /app/tmp/<insert local output-folder>
This command will convert the file at path/to/file/input.adf to an IDS-JSON at path/to/file/output.
Content type
Image
Digest
sha256:489c7b4cd…
Size
760.8 MB
Last updated
about 4 years ago
docker pull tetrascience/ts-file-converter