-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework createdb to correctly allow for only one directory or (new) ts…
…v input, in additonal to loose files
- Loading branch information
1 parent
0c3b7f2
commit e1394aa
Showing
2 changed files
with
50 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,19 @@ void (*validatorUpdate)(void) = updateValdiation; | |
|
||
std::vector<Command> foldseekCommands = { | ||
{"createdb", structcreatedb, &localPar.structurecreatedb, COMMAND_MAIN, | ||
"Convert PDB/mmCIF/tar[.gz]/DB files to a db", | ||
"Convert PDB/mmCIF/tar[.gz]/DB files to a db", | ||
"Convert PDB/mmCIF/tar[.gz]/DB files or directory/TSV to a structure DB", | ||
"# Process multiple files\n" | ||
"foldseek createdb examples/1tim.pdb.gz examples/8tim.pdb.gz DB\n" | ||
"# Process a directory containing PDB|mmCIF[.gz]|tar[.gz]|DB recursively, only one directory can be given\n" | ||
"foldseek createdb examples/ DB\n" | ||
"# Process a TSV file with a list of PDB|mmCIF[.gz]|tar[.gz]|DB, only one TSV can be given\n" | ||
"foldseek createdb examples.tsv DB\n" | ||
"# Process a directory or tar file and filter based on file name\n" | ||
"# Note: --file-include and --file-exclude only apply to directory or tar input\n" | ||
"foldseek createdb examples/ --file-include \"pdb.gz$\"\n", | ||
"Martin Steinegger <[email protected]>", | ||
"<i:PDB|mmCIF[.gz]|tar|DB> ... <i:PDB|mmCIF[.gz]|tar|DB> <o:sequenceDB>", | ||
CITATION_FOLDSEEK, {{"PDB|mmCIF[.gz]|stdin|tar|DB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA | DbType::VARIADIC, | ||
"<i:directory|.tsv>|<i:PDB|mmCIF[.gz]|tar[.gz]|DB> ... <i:PDB|mmCIF[.gz]|tar|DB> <o:sequenceDB>", | ||
CITATION_FOLDSEEK, {{"PDB|mmCIF[.gz]|stdin|tar[.gz]|DB", DbType::ACCESS_MODE_INPUT, DbType::NEED_DATA | DbType::VARIADIC, | ||
#ifdef HAVE_GCS | ||
&DbValidator::flatfileStdinGenericUri | ||
#else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters