nfdi4plants / ARCCommander

Tool to manage your ARCs
MIT License
11 stars 9 forks source link

[Feature Request] Export to Json #63

Closed HLWeil closed 2 years ago

HLWeil commented 3 years ago

Is your feature request related to a problem? Please describe. For interoperation with the ISA-Tools, the ArcCommander should be able to export the ARC ISAXLSX Files to ISAJson.

Describe the solution you'd like arc export maybe? arc investigation export

Additional context

I think two major questions arise:

@omaus @Brilator What do you think?

HLWeil commented 3 years ago

As a standard output a process sequence can be exported by using the -ps (--processsequence) flag (ddbff92397e72eedf33b8d9f4b89493a7bb7a110)

This might be used as a toplevel output including all assay and run informations but also as a backtrace format for single final data files.

HLWeil commented 3 years ago

Alternatively to using the -p (--path) argument, an output file could be conveniently created by using the > operator. Problem with this is, that both the exported json and the general log info are written to stdout. Question is if this should be separated, so tools can access the json separately. A workaround at the moment is to use the -v (--verbosity) argument: e.g.

arc -v 0 export

@JonasLukasczyk

HLWeil commented 2 years ago

Close this for now as functionality was added in #66. Will reopen if improvements are required.