I need to create extractGenes.py program
Command line parameters must accept 2 OR 3 parameters:
-sis an optional parameter or switch indicating that the user has a sequence of spliced genes (introns removed). The user does not have to provide this (which means that he wants the whole sequence of genes), but he provides it to him, then he should be the first parameter
input file (with genes)
output file (where the program will create a fasta p>
The file contains lines like this:
NM_001003443 chr11 + 5925152 592608098 2 5925152,5925652, 5925404,5926898,
However, I'm not sure how to include the parameter -sin the start function.
So, I started with:
getGenes(-s, input, output):
fp = open(input, 'r')
wp = open(output, "w")
but I'm not sure how to turn it on -s.