GithubHelp home page GithubHelp logo

Running on multi-fasta about segalign HOT 2 CLOSED

niederhuth avatar niederhuth commented on June 11, 2024
Running on multi-fasta

from segalign.

Comments (2)

rsharris avatar rsharris commented on June 11, 2024

With the original lastz, you can input your target as a multi-fasta, however it strongly recommended that you do not provide a multi-fasta as a query.

I'm the guy who wrote lastz, and what I'm about to write only applies to lastz.

I think that (i.e. the notion that you should not provide a multi-fasta as a query) is a misconception resulting from what in retrospect was a poor human-interface design choice I made. Leaving the [multiple] designation off the query file is recommended, regardless of whether the query file has one or more sequences. So if target and query both have more than one sequence, this is the recommended command:
lastz target.fa[multiple] query.fa

The [multiple] designation tells lastz to collect all the sequences from that file into one long sequence in memory. It is necessary that lastz have all the target sequences in memory, but for the query it only needs them in memory one at a time.

It would have made more sense for lastz to figure out whether the file contained more than one sequence and do what it needed to do without the user having to tell it. Unfortunately I decided there was a cost in doing that. In retrospect that cost is extremely minimal โ€” it was a bad choice on my part, and it has led to confusion.

from segalign.

gsneha26 avatar gsneha26 commented on June 11, 2024

Thank you @niederhuth, we are glad that the tool is so helpful for your research.

I am slightly confused by what you mean by would you advice breaking the query fasta down by each sequence in the fasta file.

If I understand your question correctly, the following should help:
For SegAlign, we recommend that you do provide multiple chromosomes for both, the target and the query. There are internal optimizations that overlap the different alignment stages for different chromosome-pairs which helps in maximum resource utilization and provides higher speedup. ( If you are interested in knowing more about these optimizations, you can have a look at our paper - https://doi.ieeecomputersociety.org/10.1109/SC41405.2020.00043 ).

About the run_segalign.sh script -- it essentially handles the seed-filter and extend stages, where the seed-filter stages are run using the segalign executable (GPU accelerated), the output segment files are generated, and then, the extend stage is run using lastz. In order to get the alignments and not just the segment files, you always need to use run_segalign.sh and not just the segalign executable.

from segalign.

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.