Frank Delaglio, Ph.D.

19804 Maycrest Way
Germantown MD 20876 USA

301 806-0867
delaglio@nmrscience.com



Scripts of the NMRPipe System
getTabInfo.tcl: Extract Descriptive Data from an NMRPipe format table.

Flag Argument Default Description
 -in tabName test.tab Input Table.
 -parm pList * Parameters to Extract.
List Text (REMARK, #, and DATA) Lines (Sets -parm None):
 -text tList None Text Lines to Extract, First is 0.
List DATA Lines (Sets -parm None):
 -key keyName * Key Names for DATA to Extract.
 -data dList None DATA Lines to Extract, First is 0.
List Entry (Row) Numbers in Sorted Table (Sets -parm None):
 -sort sVar None Variable Name for Sort.
 -abs Sort by Absolute Value.
 -up Sort in Increasing Order (Default).
 -down Sort in Decreasing Order.
Notes:
1. Parameter Names, Output for "-parm *" in this order:
    varCount    Number of Variables.
    entryCount  Number of Entries.
    textCount   Number of Text Lines.
    keyCount    Number of Different DATA Keywords.
    varNames    List of All Variable Names.
    keyNames    List of All DATA Keywords (Keys).
    keyLengths  List of Number of DATA Lines for Each Key.
    keyLength   List of Number of DATA Lines For Specified Keys.  Not output for -parm *
Examples:
 Find number of Variables in Table:
    getTabInfo.tcl -in csObs.tab -parm varCount
 Find number of DATA SEQUENCE lines:
    getTabInfo.tcl -in csObs.tab -key SEQUENCE -parm keyLength
 Get Contents of First DATA SEQUENCE line:
    getTabInfo.tcl -in csObs.tab -key SEQUENCE -data 0
 Get Contents of All DATA SEQUENCE lines:
    getTabInfo.tcl -in csObs.tab -key SEQUENCE -data "*"