I would like to run the python script where the input is taken from unix cat function but I also want to give it few additional arguments in sys.argv, it should run in the following way:
cat my_fasta_sequence.txt | get_region.py 193 445
get_region function will take an input from fasta sequence slice from 193 445 and save it as a new file.
I use sys.stdin to take the input from cat function, however I am not sure how to make python to take the numbers (193,445) as an input at the same time.