This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Aligning BAC to an assembled sequence

Hello,

I have several BAC sequences each of which contains 2-7 contigs. I need to align these BACs to a pseudomolecule and scaffolds. Basically, I need to identify a region were BAC maps on the pseudomolecule. At the end I need to get statistics such as alignment identity, aln lenth, coverage, start end. I can get all of these information from BLAST megablast. However, since megablast is local, it results in many HSP's obviously. Do you guys have an idea how can I calculate this and find the region on a pseudomolecule where each of my BAC aligns? if yes, then how? I can use bwa as an alternative, however, I dont know how to extract information from .bam file..

alignment blast

I don't know if it solves my problem..the output is more or less similar to what I get with megablast...Do you think taking the best hit solves the problem?

in the ucsc, the BAC end sequences are "placed on the assembled sequence using BLAT".

Yes but they use only the ends not the full sequence and they have a scoring system to filter hits.

1 answer

You may try to use LAST: http://last.cbrc.jp/

First create database from your assembly, then query it with your BAC fasta. You will get MAF output you can parse.

Caveat: repetitive contigs may be dropped from the output. But then it may be the correct behavior: Imagine that your BAC insert in reality is 100kb long and maps to scaffold/chromosome from assembly starting from position 1, with the last 10k (90-100kb BC & genomic) is full of repeats. On the top of it the next 50k of your assembly scaffold is also repetitive and full of stretches of Ns denoting gaps. You do not want to come to conclusion that your BAC is 150kb because something from BAC maps to these parts of scaffold.

thank you very much. I have tried it, it gives me a lot of hits as well as BLAT, how can I decide which region to choose? the best hit?

There are two LAST utilities: maf-swap and maf-cull. What you can do is to swap top (scaffolds from db) sequence with a contigs seq from your BAC(s). Then cull all the hits except the top one. If you are into assembly checking/scaffold building, look also in LAST as a short read mapper (map reads to assembly). And in converting MAF output to SAM/BAM viewable in ie IGV. I will provide the link for this a bit later.

Log in to answer this question.