Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Assertion `c1.pos == c2.mpos' failed #51

Open
hzaumsq opened this issue Nov 4, 2018 · 4 comments
Open

error: Assertion `c1.pos == c2.mpos' failed #51

hzaumsq opened this issue Nov 4, 2018 · 4 comments

Comments

@hzaumsq
Copy link

hzaumsq commented Nov 4, 2018

Filling 21 clusters with Hi-C data from SAM file /public/msq/WHF4-1/script//Mi.REduced.paired_only.bam (dot = 1M alignments)
Lachesis: ChromLinkMatrix.cc:2186: void LoadDeNovoCLMsFromSAM(const string&, const string&, const ClusterVec&, std::vector<ChromLinkMatrix*>): Assertion `c1.pos == c2.mpos' failed.

@orange-phoebe
Copy link

Hello,
Have you solved this problem? I met the same issue with running LACHESIS. I haven't find out what's wrong with it. How to deal with the error? Could you please provide me any clue about it?
A thousand thanks !

@Lordhooze
Copy link

i meet the same problem? any solutions? thank you

@orange-phoebe
Copy link

I figured it out with the help of an expert. To solve this problem, you should filter the alignment result with flag >1024 in .SAM file. This Perl script will help:

my ($in, $out) = @argv;
open IN, "$in";
open OUT, ">$out";
while (my $line = ){
if ($line =~ /^@/){
print OUT "$line";
next;
}
my @Flag = split(/\s+/,$line);
next if $flag[1] >= 1024;
print OUT "$line";
}
close IN;

@GitHub-Lujianjun
Copy link

Hi,orange-phoebe
Thank you for your suggestions.I don't understand why it could figure out the error after filter flag >1024 in .SAM file.Ok, After filtered, I doubt that the filtered Sam file will affect results?

Looking forward to your kind reply

Lu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants