I'm very new to python and I'm getting along nicely (I'd like to believe); however, I must be missing something here. I'm looking to read each and every file and compare each line against one another.
The aim of this is to see if any mutations are shared in any of the strains - to determine the genotype.
The inner-workings of the files are single spaced headers, as those you would find on GISAID.
with open('A D614G.txt', 'r') as file2: with open('A E780Q.txt', 'r') as file3: with open('A G476S.txt', 'r') as file4: with open('A L18F.txt', 'r') as file5: with open('A N439K.txt', 'r') as file6: with open('A S477N.txt', 'r') as file7: with open('A T478I.txt', 'r') as file8: with open('A V483A.txt', 'r') as file9: files = [file1, file2, file3,file4, file5, file6, file7, file8, file9] it = itertools.permutations((files), len(files)) for x in it: print(x) os.chdir("C:) with open('tester.txt', 'wt') as file_out: for x in it: file_out.write()``` 1 I recieve the following error on a very long repeated stretch of text ```<_io.TextIOWrapper name='A G476S.txt' mode='r' encoding='cp1252'>```