Change Scaffold Orientation
2
1
Entering edit mode
9.3 years ago
bioLife ▴ 50

There is a genome in unoriented and unorder scaffolds. I am interested in a specific area of the genome. Therefore I managed to align the scaffolds to a closely related species and I got an idea about the orientation of the scaffolds.

Do you know any way to change the orientation inside the genbank file of those scaffolds? In order to upload it later to a genome viewer such as Artemis?

Any help please. Thanks a lot.

eg. is there any way to merge the scaffolds and add one CDS next to the other, in the correct way? In biopython?

genbank scaffolding • 3.4k views
0
Entering edit mode

You can try Mauve contig mover option http://gel.ahabs.wisc.edu/mauve/

0
Entering edit mode

yes i tried mauve, this is the one which I used to align the scaffolds. But then I need the .gbk file to upload it the genome browser. The mauve does not seem to output a gbk file or simiar. Any idea for that?

0
Entering edit mode

1
Entering edit mode
9.3 years ago
Peter 6.0k

In Biopython, something like this should work

from Bio import SeqIO
reversed_record = my_record.reverse_complement(id="new_id", ...)
SeqIO.write(reversed_record, "output.gbk", "genbank")


The tricky part is deciding which of the annotations like name etc should be kept or replaced.

0
Entering edit mode

this works fine, thanks a lot.

0
Entering edit mode
9.3 years ago
cts ★ 1.7k

You could try Pagit from the Sanger institute. It contains a program called abacas that does contig ordering using mummer and gives you a fasta file of the ordered scaffolds and a genbank like feature table of how the contigs were ordered.

0
Entering edit mode

Thank you for the answer. I will try it out. Do you know if there is any tool that reverses the order of the feature coordinates in a gbk file? Is that doable in biopython?

0
Entering edit mode

My guess is it is doable in biopython, how easy it will be to do is another matter. I've never delved into the features/annotations API that much, so I really don't know