We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45c931b commit cdac474Copy full SHA for cdac474
useful_scripts/large_csv_to_sqlite.py
@@ -21,7 +21,7 @@
21
columns = ['molecule_id','charge','db','drugsnow','hba','hbd','loc','nrb','smiles']
22
23
# Get number of lines in the CSV file
24
-nlines = subprocess.check_output('wc -l %s' % in_csv, shell=True)
+nlines = subprocess.check_output(['wc', '-l', in_csv])
25
nlines = int(nlines.split()[0])
26
27
# connect to database
0 commit comments