HI All,
I would be greatful if you could share me your knowledge in parsing the blastn file. I have a blastn output file, which is something like this
ALIGNMENTS
>lcl|14079 ref|NC_000009.11|:4900000-5300000 Homo sapiens chromosome 9
+,
GRCh37 primary reference assembly
Length=400001
Score = 270 bits (146), Expect = 2e-74
Identities = 148/149 (99%), Gaps = 0/149 (0%)
Strand=Plus/Minus
Query 1 TGGGCAAGGACTTCATGTCTAAAACACCAAAAGCAATGGCAACAAAAGCCAAAATT
+GACA 60
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+||||
Sbjct 48784 TGGGCAAGGACTTCATGTCTAAAACACCAAAAGCAATGGCAACAAAAGCCAAAATT
+GACA 48725
Query 61 AATGGGATCTAATTAAACTAAAGAGCTTCTGCACAGCAAAAGAAACTACCATCAGA
+GTGA 120
|||||||||||||| |||||||||||||||||||||||||||||||||||||||||
+||||
Sbjct 48724 AATGGGATCTAATTCAACTAAAGAGCTTCTGCACAGCAAAAGAAACTACCATCAGA
+GTGA 48665
Query 121 ACAGGCAACCTACAGAATGGGAGAACATT 149
|||||||||||||||||||||||||||||
Sbjct 48664 ACAGGCAACCTACAGAATGGGAGAACATT 48636
I would like to create a summary of the position of mismatch, and the type (insertion/deletion) from the blast output. In this case, the position 75, and the alleles A-C.
I tried with BioSearchIO, which parses the percentage, start and the end position of the alignment.Obviously, I dont want to have them in my summary rather the corodinates of mismatch, type of variation. Have any one know about any modules in perl/or a simpler(even harder) way of finding the position of mismatch and the type of variation?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.