Hi, I am running out of ideas to do this, and I will appreciate some help, please.I have 2 fasta files from two different bacterial strains with 1000 genes each. An example of files:
file A: fileB query seq.id query seq.id query seq query seq.id objA seq.id objB seq.id objA seq objB seq query_1 seq.id query_1 seq.id query_1 seq query_1 seq obj_1A seq.id obj_1B seq.id obj_1A seq obj_1B seq
What I would like to do is to get it this:
file_1 file_2 query seq.id query_1 seq.id query seq query_1 seq obj seq.id obj_1A seq. id obj seq obj_A seq objB seq.id obj_1B seq.id objB seq obj_1B seq
But I just dont know how to split the fasta files. I was trying to do this using biopython SeqIO but I am quite lost.