![]() |
SortSDFiles.pl - Sort SDFile(s) using values for a data field
SortSDFiles.pl SDFile(s)...
SortSDFiles.pl [-d, --detail infolevel] [-h, --help] [-k, --key SD data field name] [--keydata numeric | alphanumeric] [-o, --overwrite] [-r, --root rootname] [-s, --sort ascending | descending] [-w, --workingdir dirname] SDFile(s)...
Sort SDFile(s) using values for a specified data field name key. Only one SD data field name key can be specified for sorting. In an event of conflict during sorting process, two similar values for a SD data field name key are simply transferred to output files in order of their presence in input files. Additionally, compound records with no data field name, empty field values, or field values containing multiple lines are simply placed at the end. The file 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.
To perform numerical sort in ascending order using first data field values and generate a new SD file NewSample1.sdf, type:
To perform numerical sort in descending order using MolWeight data field and generate a new SD text file NewSample1.sdf, type:
JoinSDFiles.pl, MergeTextFilesWithSD.pl, SplitSDFiles.pl, SDFilesToHTML.pl
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.