EBIvariation / vcf-validator

Validation suite for Variant Call Format (VCF) files, implemented using C++11
Apache License 2.0
130 stars 39 forks source link

Add stdout in report options #132

Closed srbcheema1 closed 6 years ago

srbcheema1 commented 6 years ago

Currently vcf-validator provides 3 options for the report i.e. summary, text and database We can provide an option for stdout also. As it will be convenient for the user to see the output without opening a file. It will be same as vcf-debugulator provides an option for giving output on stdout. We can provide same facility in vcf-validator also.

Allowed options:
  -r [ --report ] arg (=summary) Comma separated values for types of reports 
                                 (summary, text, database, stdout)
srbcheema1 commented 6 years ago

I would like to work on it if it is good.

jmmut commented 6 years ago

ah, shame we didn't see this sooner, we had a 4-days weekend. Actually this is how the validator worked in the first versions. It's more comfortable for toy testing, but in real environments you always want to write to files, and want to keep the general logging clean of reports.

Having it as an extra report type might be useful sometimes but doesn't feel right, it's mixing report algorithms with output places. we also have the option -o, but that's only for the directory, and it would be used for all the reports except -r stdout, and stdout is not valid in -o. At the end it's just too confusing and no one will use it properly.

if @cyenyxe agrees, we have to reject this issue and PR, sorry.

jmmut commented 6 years ago

We actually did a survey, and the results supported the idea of moving away from this functionality

cyenyxe commented 6 years ago

Agree with comments by @jmmut, sorry we didn't notice this earlier.