GithubHelp home page GithubHelp logo

Comments (8)

lpryszcz avatar lpryszcz commented on August 29, 2024

Hi Thomas, Honestly, I've never tried it on such big dataset, so I'm super glad for the info!
You can try sorting in memory ie. sort -S 80% or sort -S 200G depending on amount of memory you have. For that change fasta2homozygous.py:

  • line 28:
    cmd += "awk '$10!=$14 && $11>=$15' | sort -k11nr,11 -k12n,12 -k13nr,13 | gzip > %s.psl.gz"%fasta

to

    cmd += "awk '$10!=$14 && $11>=$15' | sort -S %s -k11nr,11 -k12n,12 -k13nr,13 | gzip > %s.psl.gz"%("80%", fasta)
  • and line 62:
    cmd2 = "awk '$10!=$14 && $11>=$15' %s*.psl | sort -k11nr,11 -k12n,12 -k13nr,13 | gzip > %s.psl.gz"%(fasta, fasta)

to

    cmd2 = "awk '$10!=$14 && $11>=$15' %s*.psl | sort -S %s -k11nr,11 -k12n,12 -k13nr,13 | gzip > %s.psl.gz"%(fasta, "80%", fasta)

For more details have a look here: http://stackoverflow.com/a/16927657/632242
I'll think how to improve it in the production.

from redundans.

lpryszcz avatar lpryszcz commented on August 29, 2024

btw: I've pushed these changes, so you can also try updating your code git pull origin master

from redundans.

thackl avatar thackl commented on August 29, 2024

Jep, I was thinking along those lines as well. I will try to sort the psl files manually first and try to find some optimized settings. I'll let you know, how it goes.

And one more thing - are the psl files the result of the blat or last alignments. Once I get things sorted, I'd like to try to use the sorted psl file directly and skip the actual alignment step - it took quite some time to get them

from redundans.

thackl avatar thackl commented on August 29, 2024

I've already changed those lines anyway - needed to include -T because my /tmp drive was to small...

from redundans.

lpryszcz avatar lpryszcz commented on August 29, 2024

It depends on your settings:

  • BLAT for --identity >=0.85
  • LAST --identity <0.85

Default --identity is 0.51, thus LAST is used. Last is multi-threaded, BLAT is not. In my tests LAST was much more sensitive, but also ~4x slower. Providing multi-threaded BLAT function is on my list, but didn't have time to do it yet...

https://github.com/lpryszcz/redundans#why-does-redundans-use-two-similarity-search-algorithms-blat--last

from redundans.

thackl avatar thackl commented on August 29, 2024

Ah, makes sense. identity=0.51, so last.. Might make sense to try higher idy and blat first, especially on this large data set

from redundans.

thackl avatar thackl commented on August 29, 2024

So, yes, sorting in memory definitely solves the problem, now awk and later gzip runs at 100%. Would it be possible to setup a pass-through option for the sort parameters so one could run something like redundans.py --sortopt "-T /some/where -S 30%"?

from redundans.

lpryszcz avatar lpryszcz commented on August 29, 2024

it is solved in the newest version (-S / --sortopt added)

from redundans.

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.