I am analysing a series of multifasta files with ecc_finder, and one of them produces the following error at the Genrich step:
Error! seq_2125767: poorly formatted SAM/BAM record
(I can reproduce the error by running Genrich -t tmp.sam -o sample.Peak -v on the sorted SAM file)
I managed to trace down the error to two alignments within the SAM file, which come from the longest (94247 bp) and second longest (77851 bp) fasta read respectively. However, I can't see any obvious problem with these entries:
[...]GCAGAATTAGCAATATAC * NM:i:675 ms:i:19402 AS:i:19274 nn:i:0 tp:A:P cm:i:664 s1:i:4980 s2:i:1648 de:f:0.0467 SA:Z:chr3D,448389684,+,44476S11546M106D38225S,60,896;chr6D,20519259,-,12945S5315M2I75985S,47,158;chr2D,145708270,-,56695S7705M2947D29847S,1,5387;chr2A,570675159,-,75864S4446M8D13937S,28,86;chr3D,424338680,-,61759S4162M26D28326S,56,100;chr6D,20521380,+,72475S3521M17D18251S,17,66;chr4A,226979878,+,64537S2728M2D26982S,60,43;chr7D,360787811,-,7011S2278M33D84958S,60,82;chr2B,65706382,+,18519S2526M7I73195S,60,167;chr4A,429646387,+,57685S1873M129D34689S,60,192;chr7A,295502993,-,1707M18D92540S,52,58;chr4A,429646091,-,33105S1597M134D59545S,60,222;chr4D,427325202,+,88759S1615M27D3873S,60,130;chr3D,448399177,-,36876S1355M34D56016S,60,110;chr7A,295503463,+,91418S1126M4D1703S,51,20;chr1A,494282726,-,11484S1298M4I81461S,60,131;chrUn,354425073,+,654S1645M824D91948S,60,1003;chr7B,753764316,-,88326S900M1169D5021S,60,1198;chr4D,427325676,-,5484S939M3I87821S,60,71;chr1A,427830431,+,3388S1096M41D89763S,1,183;chr2B,397340602,+,90617S673M1D2957S,4,9;chr6A,399076249,+,5565S548M1D88134S,11,4;chrUn,354425073,+,2299S544M3D91404S,9,16;chr6A,95900292,+,63716S486M3D30045S,26,8;chr2A,195924772,+,67430S410M1I26406S,13,5;chr4B,24305486,+,87403S1018M198D5826S,1,406;chr5D,453720152,+,69841S298M3D24108S,31,7;chr5D,453720152,+,70733S297M4D23217S,7,11;chr5D,453720152,+,70139S298M3D23810S,1,13;chr5D,453720152,+,70437S296M5D23514S,12,12;chr1D,397361541,-,22917S299M1D71031S,4,14;chr5D,453720152,+,71330S297M5I22615S,59,18;chr2B,355970564,-,31726S202M62319S,60,0;chr2B,355970564,-,31523S202M62522S,60,0;chr2B,355970562,-,31316S204M2I62725S,60,2;chr2B,355970562,-,32131S203M1D61913S,6,1;chr2B,355970562,-,31928S203M1D62116S,60,1;chr2B,355970564,-,30709S202M1I63335S,60,1;chr2B,355970562,-,32334S202M2D61711S,60,2;chr2B,355970562,-,32536S203M1D61508S,60,2;chr6B,142231283,+,71967S194M1D22086S,29,2;chr2B,355970564,-,31114S202M62931S,27,7;chr7B,194962867,+,68209S176M25862S,60,0;chr2B,355970564,-,30913S200M2D63134S,60,12;chr6B,142231283,+,72161S187M1D21899S,36,6;chr2B,355970562,-,32739S171M1D61337S,58,3;chr7B,194962961,+,68127S82M26038S,42,0;chr4B,353242954,+,71903S65M22279S,1,2; rl:i:21781
Hello,
I am analysing a series of multifasta files with ecc_finder, and one of them produces the following error at the Genrich step:
Error! seq_2125767: poorly formatted SAM/BAM record(I can reproduce the error by running
Genrich -t tmp.sam -o sample.Peak -von the sorted SAM file)I managed to trace down the error to two alignments within the SAM file, which come from the longest (94247 bp) and second longest (77851 bp) fasta read respectively. However, I can't see any obvious problem with these entries:
SAM header:
Head of malformatted alignment:
Tail of malformatted alignment:
Do you have any idea what could have gone wrong here?
Thank you very much,
Roman