It is often handy to be able to feed an argument from the UNIX command line to a Python script. This is very simple to do with the sys package installed. Below is an example of feeding three arguments (chr, start, end) from the command line into Python to be used as variables in a script.
In the script.py file:
At the command line:
No comments:
Post a Comment