Skip to content

cif-validate man page suggests multi-dictionary support but the implementation seems to only accepts a single dictionary #16

Description

@cabb99

The man page for cif-validate says:

“you can specify multiple dictionaries by concatenating their names separated by a semicolon”

\fB--dict\fR=<file>
The mmCIF dictionary file to use. The default is \fImmcif_pdbx.dic\fR.
.sp
Note that you can specify multiple dictionaries by concatenating their names
separated by a semicolon, like this: \fI--dict='mmcif_pdbx.dic;dssp-extension.dic'\fR

However, the current implementation of cif-validate seems to only accept a single dictionary string:

if (config.count("dict"))
db.set_validator(&cif::validator_factory::instance().get(config.get<std::string>("dict")));
else
db.load_dictionary();
if (db.get_validator() == nullptr)
db.set_validator(&cif::validator_factory::instance().get("mmcif_pdbx.dic"));

When I try this call:

cif-validate file.cif --dict='mmcif_pdbx.dic;dssp-extension.dic'

I get this error:

Dictionary not found or defined (mmcif_pdbx.dic;dssp-extension.dic)

Is multiple-dictionary support actually implemented and I am using it incorrectly, or is the man page documenting a feature that is not yet available?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions