how to generate CIGAR like string?
1
0
Entering edit mode
9.5 years ago
crivenster ▴ 50

Hi, I have two sequences and I would like to generate indels for them. As the alignment just gives the score, to represent the the alignment of the two sequence I would like to generate CIGAR .

next-gen Assembly alignment • 3.0k views
ADD COMMENT
1
Entering edit mode

Just open the sequences with a text editor and insert/delete some bases? Maybe I'm missing something in your question...

ADD REPLY
0
Entering edit mode
Yes. I got confused with indel and cigar string. Just updated the question.
ADD REPLY
2
Entering edit mode
9.5 years ago
  1. Use a random number generator to pick a position
  2. Use a random number generator to pick an InDel length
  3. Using the above, add (possibly random) sequence of the given length at the given position
  4. ?
  5. profit

Alternatively, just add some in manually if you just have two sequences and you don't need many indels. You can just randomly pick some positions.

ADD COMMENT
0
Entering edit mode
I just updated the question. I had confused with indel and cigar string.i want to generate cigar string so that it explains alignment information better.
ADD REPLY
0
Entering edit mode

So in other words, you want to align two sequences and get the resulting CIGAR string? Are you aligning them manually or with a program. In the latter case, just use a program that will generate CIGAR strings. In the former case, you can just generate one yourself (CIGAR strings aren't exactly complicated things).

ADD REPLY
0
Entering edit mode

I align them using local alignment programs. Is there any program that just generates CIGAR? Generating CIGAR for small sequences is simple,but larger ones takes time.

ADD REPLY
0
Entering edit mode

answer Devon's questions please.

ADD REPLY
0
Entering edit mode

Then use a local alignment program that will produce a CIGAR string (or at least something that you can then convert into one). Alternatively, if the programs output a formatted pairwise alignment, then just parse that (the only hard parts are the ends, which can be soft-clipped).

ADD REPLY

Login before adding your answer.

Traffic: 2145 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