I have to create two functions that should allow me to open .genbank
files and convert them into a .fasta
file and the other way around. What I have for the moment is this:
def Convert(file, file1)
handle_input=open('file', 'rU')
handle_output=open('file1', 'w')
while True:
s=handle_input.readline()
t=handle_output.write(s, '.genbank')
print(t)
Convert('file.fas', 'file.genbank')
It is also probably not correct, but I have no idea what to do.