comparison multi_obgrep.py @ 12:1c66bf08f687 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/chemicaltoolbox/openbabel commit 944ea4bb8a9cd4244152a4a4fecd0485fabc2ad0"
author bgruening
date Tue, 28 Jul 2020 08:41:13 -0400
parents edb576416262
children 1400d1977e7b
comparison
equal deleted inserted replaced
11:b59c91adeac1 12:1c66bf08f687
4 Output: Molecule file filtered with obgrep. 4 Output: Molecule file filtered with obgrep.
5 Copyright 2013, Bjoern Gruening and Xavier Lucas 5 Copyright 2013, Bjoern Gruening and Xavier Lucas
6 """ 6 """
7 import sys, os 7 import sys, os
8 import argparse 8 import argparse
9 import openbabel
10 openbabel.obErrorLog.StopLogging()
11 import pybel
12 import multiprocessing 9 import multiprocessing
13 import tempfile 10 import tempfile
14 import subprocess 11 import subprocess
15 import shutil 12 import shutil
16 import shlex 13 import shlex
17 14
15 from openbabel import openbabel, pybel
16 openbabel.obErrorLog.StopLogging()
18 def parse_command_line(): 17 def parse_command_line():
19 parser = argparse.ArgumentParser() 18 parser = argparse.ArgumentParser()
20 parser.add_argument('-i', '--infile', required=True, help='Molecule file.') 19 parser.add_argument('-i', '--infile', required=True, help='Molecule file.')
21 parser.add_argument('-q', '--query', required=True, help='Query file, containing different SMARTS in each line.') 20 parser.add_argument('-q', '--query', required=True, help='Query file, containing different SMARTS in each line.')
22 parser.add_argument('-o', '--outfile', required=True, help='Path to the output file.') 21 parser.add_argument('-o', '--outfile', required=True, help='Path to the output file.')