Coder Social home page Coder Social logo

How to run MA on short reads faster? about ma HOT 5 CLOSED

itbe-lab avatar itbe-lab commented on September 27, 2024
How to run MA on short reads faster?

from ma.

Comments (5)

MarkusRainerSchmidt avatar MarkusRainerSchmidt commented on September 27, 2024 1

You can look at the different presetting by running e.g. maCMD –p Illumina_Paired -h. This will update the shown default parameters. Alternatively, line 922 and following in https://github.com/ITBE-Lab/MA/blob/release/libs/ma/inc/util/parameter.h sets up the presetting in the code.

The Minimal_Alignment_Score parameter is merely a cutoff for the output. MA will discard all alignments with a DP score lower than the given value.

from ma.

MarkusRainerSchmidt avatar MarkusRainerSchmidt commented on September 27, 2024

Hi,

So obviously any parameter setting that helps with the runtime will be detrimental to the aligner’s accuracy – so please make sure that the results are still good enough on your data after changing the parameters.
That being said, I would try (one or two of) the following things:

  • Lower the minimal number of SoCs that get fully analyzed: -M 3
  • Lower the maximal number of SoCs that get fully analyzed: -N 7
  • Use max. spanning seeds instead of SMEMs -s maxSpan
  • Increase the minimal length of seeds -l 18
    Make sure you set these parameters after the presetting so that they override the presetting instead of having the presetting override them. I.e. -p Illumina_Paired before -M 3 -N 7 -s maxSpan -l 18.

from ma.

MarkusRainerSchmidt avatar MarkusRainerSchmidt commented on September 27, 2024

If the limitation on your system is the hard drive (i.e. MA does not reach >=95% cpu usage), it might be worth to align g-zipped files.

Make sure that ./maCMD -h prints “Compiled with following switches: WITH_ZLIB ...” in the second to last line before using .gz files as input. If you don’t see the WITH_ZLIB, install the zlib (-dev) package, then reconfigure & recompile.

from ma.

dawnmy avatar dawnmy commented on September 27, 2024

Thank you so much for the detailed explanation. I was wondering how exactly the presettings like -p Illumina_Paired and Nanopore change the underlying parameters? I guess the presetting Nanopore should be more tolerant to mismatches and INDELs in homopolymeric regions during seed matching and alignment since the long reads data have high error rate. For the Illumina presetting, the alignment of 100bp PE reads looked better when I changed --Minimal_Alignment_Score to 50.

from ma.

dawnmy avatar dawnmy commented on September 27, 2024

Have tested the recommended parameter setting. It gets ~2x speedups.

from ma.

Related Issues (16)

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.