MayaChemTools

Previous  TOC  NextSplitSDFiles.plCode | PDF | PDFGreen | PDFA4 | PDFA4Green

NAME

SplitSDFiles.pl - Split SDFile(s) into multiple SD files

SYNOPSIS

SplitSDFiles.pl SDFile(s)...

SplitSDFiles.pl [-h, --help] [-n, --numfiles number] [-o, --overwrite] [-r, --root rootname] [-w,--workingdir dirname] SDFile(s)...

DESCRIPTION

Split SDFile(s) into multiple SD files. Each new SDFile contains a compound subset of similar size from the initial file. Multiple SDFile(s) names are separated by space. The valid file extensions are .sdf and .sd. All other file names are ignored. All the SD files in a current directory can be specified either by *.sdf or the current directory name.

OPTIONS

-h, --help
Print this help message

-n, --numfiles number
Number of new files to generate for each SDFile(s). Default: 2

-o, --overwrite
Overwrite existing files

-r, --root rootname
New SD file names are generated using the root: <Root>Part<Count>.sdf. Default new file names: <InitialSDFileName> Part<Count>.sdf. This option is ignored for multiple input files.

-w,--workingdir dirname
Location of working directory. Default: current directory

EXAMPLES

To split each SD file into 5 new SD files, type:

% SplitSDFiles.pl -n 5 -o Sample1.sdf Sample2.sdf
% SplitSDFiles.pl -n 5 -o *.sdf

To split Sample1.sdf into 10 new NewSample*.sdf files, type:

% SplitSDFiles.pl -n 10 -r NewSample -o Sample1.sdf

AUTHOR

Manish Sud

SEE ALSO

InfoSDFiles.plJoinSDFiles.plMolFilesToSD.plSDToMolFiles.pl

COPYRIGHT

Copyright (C) 2004-2008 Manish Sud. All rights reserved.

This file is part of MayaChemTools.

MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

 

 

Previous  TOC  NextApril 29, 2008SplitSDFiles.pl