| 0 | 1 <html> | 
|  | 2 <head> | 
|  | 3 <title>MayaChemTools:Documentation:TextFilesToSDFiles.pl</title> | 
|  | 4 <meta http-equiv="content-type" content="text/html;charset=utf-8"> | 
|  | 5 <link rel="stylesheet" type="text/css" href="../../css/MayaChemTools.css"> | 
|  | 6 </head> | 
|  | 7 <body leftmargin="20" rightmargin="20" topmargin="10" bottommargin="10"> | 
|  | 8 <br/> | 
|  | 9 <center> | 
|  | 10 <a href="http://www.mayachemtools.org" title="MayaChemTools Home"><img src="../../images/MayaChemToolsLogo.gif" border="0" alt="MayaChemTools"></a> | 
|  | 11 </center> | 
|  | 12 <br/> | 
|  | 13 <div class="DocNav"> | 
|  | 14 <table width="100%" border=0 cellpadding=0 cellspacing=2> | 
|  | 15 <tr align="left" valign="top"><td width="33%" align="left"><a href="./TextFilesToHTML.html" title="TextFilesToHTML.html">Previous</a>  <a href="./index.html" title="Table of Contents">TOC</a>  <a href="./TopologicalAtomPairsFingerprints.html" title="TopologicalAtomPairsFingerprints.html">Next</a></td><td width="34%" align="middle"><strong>TextFilesToSDFiles.pl</strong></td><td width="33%" align="right"><a href="././code/TextFilesToSDFiles.html" title="View source code">Code</a> | <a href="./../pdf/TextFilesToSDFiles.pdf" title="PDF US Letter Size">PDF</a> | <a href="./../pdfgreen/TextFilesToSDFiles.pdf" title="PDF US Letter Size with narrow margins: www.changethemargins.com">PDFGreen</a> | <a href="./../pdfa4/TextFilesToSDFiles.pdf" title="PDF A4 Size">PDFA4</a> | <a href="./../pdfa4green/TextFilesToSDFiles.pdf" title="PDF A4 Size with narrow margins: www.changethemargins.com">PDFA4Green</a></td></tr> | 
|  | 16 </table> | 
|  | 17 </div> | 
|  | 18 <p> | 
|  | 19 </p> | 
|  | 20 <h2>NAME</h2> | 
|  | 21 <p>TextFilesToSDFiles.pl - Generate SD files from CSV or TSV TextFile(s)</p> | 
|  | 22 <p> | 
|  | 23 </p> | 
|  | 24 <h2>SYNOPSIS</h2> | 
|  | 25 <p>TextFilesToSDFiles.pl TextFile(s)...</p> | 
|  | 26 <p>TextFilesToSDFiles.pl [<strong>-h, --help</strong>] [<strong>--indelim</strong> comma | semicolon] [<strong>-l, --label</strong> yes | no] | 
|  | 27 [<strong>-o, --overwrite</strong>] [<strong>-r, --root</strong> rootname] [<strong>-w, --workingdir</strong> dirname] TextFile(s)...</p> | 
|  | 28 <p> | 
|  | 29 </p> | 
|  | 30 <h2>DESCRIPTION</h2> | 
|  | 31 <p>Generate SD files from CSV or TSV <em>TextFile(s)</em>. The new SD files contain no structure data | 
|  | 32 as indicated by empty structure data block; Data fields and values in SD files are generated | 
|  | 33 using <em>TextFile(s)</em> column labels and corresponding data values.</p> | 
|  | 34 <p>Multiple <em>TextFile(s)</em> names are separated by space. The valid file extensions are | 
|  | 35 <em>.csv</em> and <em>.tsv</em> for comma/semicolon and tab delimited text files respectively. | 
|  | 36 All other file names are ignored. All the text files in a current directory can be specified | 
|  | 37 by <em>*.csv</em>, <em>*.tsv</em>, or the current directory name. The <strong>--indelim</strong> option | 
|  | 38 determines the format of <em>TextFile(s)</em>. Any file which doesn't correspond to | 
|  | 39 the format indicated by <strong>--indelim</strong> option is ignored.</p> | 
|  | 40 <p> | 
|  | 41 </p> | 
|  | 42 <h2>OPTIONS</h2> | 
|  | 43 <dl> | 
|  | 44 <dt><strong><strong>-h, --help</strong></strong></dt> | 
|  | 45 <dd> | 
|  | 46 <p>Print this help message.</p> | 
|  | 47 </dd> | 
|  | 48 <dt><strong><strong>--indelim</strong> <em>comma | semicolon</em></strong></dt> | 
|  | 49 <dd> | 
|  | 50 <p>Input delimiter for CSV <em>TextFile(s)</em>. Possible values: <em>comma or semicolon</em>. | 
|  | 51 Default value: <em>comma</em>. For TSV files, this option is ignored and <em>tab</em> is used as a | 
|  | 52 delimiter.</p> | 
|  | 53 </dd> | 
|  | 54 <dt><strong><strong>-l, --label</strong> <em>yes | no</em></strong></dt> | 
|  | 55 <dd> | 
|  | 56 <p>First line contains column labels. Possible values: <em>yes or no</em>. Default value: <em>yes</em>. | 
|  | 57 Column labels are used to create SD data field labels; otherwise, data field labels look | 
|  | 58 like Column<colnumber>Data.</p> | 
|  | 59 </dd> | 
|  | 60 <dt><strong><strong>-o, --overwrite</strong></strong></dt> | 
|  | 61 <dd> | 
|  | 62 <p>Overwrite existing files.</p> | 
|  | 63 </dd> | 
|  | 64 <dt><strong><strong>-r, --root</strong> <em>rootname</em></strong></dt> | 
|  | 65 <dd> | 
|  | 66 <p>New SD file names are generated using the root: <Root>.sdf. Default new file names: | 
|  | 67 <TextFileName>WithNoStrData.sdf. This option is ignored for multiple input files.</p> | 
|  | 68 </dd> | 
|  | 69 <dt><strong><strong>-w, --workingdir</strong> <em>dirname</em></strong></dt> | 
|  | 70 <dd> | 
|  | 71 <p>Location of working directory. Default: current directory.</p> | 
|  | 72 </dd> | 
|  | 73 </dl> | 
|  | 74 <p> | 
|  | 75 </p> | 
|  | 76 <h2>EXAMPLES</h2> | 
|  | 77 <p>To generate NewSample1.sdf file from Sample1.csv file, type:</p> | 
|  | 78 <div class="ExampleBox"> | 
|  | 79     % TextFilesToSDFiles.pl -o -r NewSample1 Sample1.csv</div> | 
|  | 80 <p>To generate NewSample1.sdf file from Sample1.tsv file which doesn't | 
|  | 81 contain column labels line, type:</p> | 
|  | 82 <div class="ExampleBox"> | 
|  | 83     % TextFilesToSDFiles.pl --label no -o -r NewSample1 Sample1.tsv</div> | 
|  | 84 <p> | 
|  | 85 </p> | 
|  | 86 <h2>AUTHOR</h2> | 
|  | 87 <p><a href="mailto:msud@san.rr.com">Manish Sud</a></p> | 
|  | 88 <p> | 
|  | 89 </p> | 
|  | 90 <h2>SEE ALSO</h2> | 
|  | 91 <p><a href="./JoinTextFiles.html">JoinTextFiles.pl</a>, <a href="./MergeTextFiles.html">MergeTextFiles.pl</a>, <a href="./ModifySDFilesDataFields.html">ModifySDFilesDataFields.pl</a>, <a href="./ModifyTextFilesFormat.html">ModifyTextFilesFormat.pl</a> | 
|  | 92 </p> | 
|  | 93 <p> | 
|  | 94 </p> | 
|  | 95 <h2>COPYRIGHT</h2> | 
|  | 96 <p>Copyright (C) 2015 Manish Sud. All rights reserved.</p> | 
|  | 97 <p>This file is part of MayaChemTools.</p> | 
|  | 98 <p>MayaChemTools is free software; you can redistribute it and/or modify it under | 
|  | 99 the terms of the GNU Lesser General Public License as published by the Free | 
|  | 100 Software Foundation; either version 3 of the License, or (at your option) | 
|  | 101 any later version.</p> | 
|  | 102 <p> </p><p> </p><div class="DocNav"> | 
|  | 103 <table width="100%" border=0 cellpadding=0 cellspacing=2> | 
|  | 104 <tr align="left" valign="top"><td width="33%" align="left"><a href="./TextFilesToHTML.html" title="TextFilesToHTML.html">Previous</a>  <a href="./index.html" title="Table of Contents">TOC</a>  <a href="./TopologicalAtomPairsFingerprints.html" title="TopologicalAtomPairsFingerprints.html">Next</a></td><td width="34%" align="middle"><strong>March 29, 2015</strong></td><td width="33%" align="right"><strong>TextFilesToSDFiles.pl</strong></td></tr> | 
|  | 105 </table> | 
|  | 106 </div> | 
|  | 107 <br /> | 
|  | 108 <center> | 
|  | 109 <img src="../../images/h2o2.png"> | 
|  | 110 </center> | 
|  | 111 </body> | 
|  | 112 </html> |