File: nobrackets

package info (click to toggle)
smiles-scripts 0.3.0%2Bsvn878%2Bbranch%2Bsystem%2Bdeps-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,860 kB
  • sloc: perl: 1,889; java: 1,218; sh: 1,092; makefile: 246
file content (13 lines) | stat: -rwxr-xr-x 569 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /bin/bash
# This script reads all *.smi files in the current folder checking if
# the bracket character is present. If it is not, the compound contains only
# elements of the organic subset acting with their standard valence.
# Hence the compound is probably purely organic and the SMILES is very likely
# to be correct. These SMILES are moved to the ../working folder. 
# Usually these SMILES are considered as definitive after a very quick 
# check. 

[ -d ../working ] || mkdir ../working
for i in `ls *.smi` ; do
   cat $i | grep -v [[] && mv $i ../working
done