Apr-02-2018, 06:05 PM
Thanks!
I figured that I had to strip the return line character at the end;
THis is my new code:
I figured that I had to strip the return line character at the end;
THis is my new code:
for key in annotation: for line in file2: if line.startswith('>'): gene=line[1:] gene=gene.strip('\n') if gene == key: