Giter Site home page Giter Site logo

blastn2snp problem about jvarkit HOT 6 CLOSED

lindenb avatar lindenb commented on August 15, 2024
blastn2snp problem

from jvarkit.

Comments (6)

lindenb avatar lindenb commented on August 15, 2024

I'm away from my code: try to change '3' to '2' (or "1" ?) in https://github.com/lindenb/jvarkit/blob/master/src/main/java/com/github/lindenb/jvarkit/tools/blast/BlastNToSnp.java#L175 and recompile

from jvarkit.

mrb20045 avatar mrb20045 commented on August 15, 2024

Thanks. I modified the BlastNToSnp.java based on your suggestion and recompiled. But the problem is not fixed. there is another way ?

Best

from jvarkit.

lindenb avatar lindenb commented on August 15, 2024

I've added a new option -n (int) try to run this tool with -n 0 1907242

from jvarkit.

mrb20045 avatar mrb20045 commented on August 15, 2024

Dear Pierre
Thanks for your great support. the problem is not fixed yet with your improvement. I recompiled and ran the software with -n 0. but in some cases mismatches are reported as two or three like:

1:213087129-213087330(+) gi|229627866 298 1 101 298 + T A 97 T A .
1:213087129-213087330(+) gi|229628918 115 1 101 113 + C A 159 C A .
1:213087129-213087330(+) gi|229630731 7 1 101 262 - TG CT 192 CA AG ..
1:213087129-213087330(+) gi|229631360 26 1 101 200 - TGG CCT 201 CCA AGG ...

Can you fixed the problem please ?
Thanks again for your help.

Best

from jvarkit.

lindenb avatar lindenb commented on August 15, 2024

No, sorry I won't fix this; this is clearly not a SNV but a di/tri nucleotide change.
You can always try to remove the lines 204-209

for(;;)
{
int k=hspMid.indexOf(' ', j);
if(k==-1 || k-j> minGapSize) break;
j=k+1;
}

from jvarkit.

mrb20045 avatar mrb20045 commented on August 15, 2024

Thanks for your help. I removed the mentioned lines but the problem was not fixed. however i fixed it by my script. Thanks again for your support.

Best

from jvarkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.