Mercurial > repos > perssond > quantification
comparison ParseInput.py @ 0:928db0f952e3 draft
"planemo upload for repository https://github.com/ohsu-comp-bio/quantification commit a4349062e9177b5e60fb7c49115c57299e0d648d-dirty"
| author | perssond |
|---|---|
| date | Fri, 12 Mar 2021 00:19:24 +0000 |
| parents | |
| children | aba3655fdef0 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:928db0f952e3 |
|---|---|
| 1 #Functions for parsing command line arguments for ome ilastik prep | |
| 2 import argparse | |
| 3 | |
| 4 | |
| 5 def ParseInputDataExtract(): | |
| 6 """Function for parsing command line arguments for input to single-cell | |
| 7 data extraction""" | |
| 8 | |
| 9 #if __name__ == '__main__': | |
| 10 parser = argparse.ArgumentParser() | |
| 11 parser.add_argument('--masks',nargs='*') | |
| 12 parser.add_argument('--image') | |
| 13 parser.add_argument('--channel_names') | |
| 14 parser.add_argument('--output') | |
| 15 #parser.add_argument('--suffix') | |
| 16 args = parser.parse_args() | |
| 17 #Create a dictionary object to pass to the next function | |
| 18 dict = {'masks': args.masks, 'image': args.image,\ | |
| 19 'channel_names': args.channel_names,'output':args.output} | |
| 20 #Print the dictionary object | |
| 21 print(dict) | |
| 22 #Return the dictionary | |
| 23 return dict |
