Giter Site home page Giter Site logo

Comments (3)

jelber2 avatar jelber2 commented on May 31, 2024

You might have to simulate HiFi coverage. For example get a similar haploid genome assembly to what you have not yet assembled, then mutate it into diploid (or whatever your ploidy is) with mutate.sh from BBTools/BBMap (https://sourceforge.net/projects/bbmap/files/) with some predicted "heterozygosity rate". Then simulate random reads with randomreads.sh (also from BBTools/BBMap) using PacBio HiFi characteristics (12-15Kbp, error rate 1.0-1.5% or whatever you desire) such as the example commands below. Note that I put coverage=10 because there are actually two haplotypes produced by mutate.sh when ploidy=2, so that 10x diploid coverage equals 20x haploid coverage.

mutate.sh in=curated.fasta ploidy=2 maxindel=5 subrate=0.0002 hetrate=0.05 indelrate=0.00002 out=curated.fasta.diploid.mut.fasta vcf=curated.fasta.diploid.mut.vcf.gz 2>mutate.log &
randomreads.sh ref=curated.fasta illuminanames=t coverage=10 gaussianlength=t pacbio=t pbmin=0.01 pbmax=0.015 out=random_reads_ccs.fasta minlength=10000 midlength=12000 maxlength=15000 > random_reads_ccs.log 2>&1

Then use QUAST-LG (https://github.com/ablab/quast) to compare you hifiasm results on different values of k,r, and a with curated.fasta.diploid.mut.fasta if you use unitigs or curated.fasta if you use primary contigs (just a suggestion).

from hifiasm.

chhylp123 avatar chhylp123 commented on May 31, 2024

I agree with @jelber2. Thank you so much.

from hifiasm.

KaiqiangLiu avatar KaiqiangLiu commented on May 31, 2024

Thanks for your @jelber2 useful suggestion with all the details.
Thanks for your @chhylp123 reply.

from hifiasm.

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.