Change Scaffold Orientation
2
1
Entering edit mode
8.0 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 • 2.9k views
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
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?

ADD REPLY
0
Entering edit mode

There is a very similar thread on SEQanswers http://seqanswers.com/forums/showthread.php?t=32828

ADD REPLY
1
Entering edit mode
8.0 years ago
Peter 5.9k

In Biopython, something like this should work

from Bio import SeqIO
my_record = SeqIO.read("input.gbk", "genbank")
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.

ADD COMMENT
0
Entering edit mode

this works fine, thanks a lot.

ADD REPLY
0
Entering edit mode
8.0 years ago
cts ★ 1.6k

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.

ADD COMMENT
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?

ADD REPLY
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

ADD REPLY

Login before adding your answer.

Traffic: 2192 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6