mirror of
https://github.com/chhylp123/hifiasm.git
synced 2026-09-15 12:47:57 +08:00
update for r350
This commit is contained in:
@@ -38,7 +38,7 @@ copyright = u'2021, Haoyu Cheng, Heng Li'
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.15.5-r348'
|
||||
version = '0.15.5-r350'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.15.5'
|
||||
|
||||
|
||||
@@ -34,19 +34,19 @@ Are diploid genomes supported?
|
||||
Are polyploid genomes supported?
|
||||
-------------------------------------
|
||||
|
||||
The ``*r_utg.gfa`` and ``*p_utg.gfa`` are lossless so that they also work for polyploid genomes. However, currently the contig-generation modules of hifiasm are designed for diploid samples, which means both the partially phased assembly and the fully-phased assembly does not directly support polyploid genomes. Please use primary assembly for polyploid samples and run multiple rounds of purging steps using third-party tools such as purge_dups.
|
||||
The ``*r_utg.gfa`` and ``*p_utg.gfa`` are lossless so that they also work for polyploid genomes. However, currently the contig-generation modules of hifiasm are designed for diploid samples, which means both the partially phased assembly and the fully-phased assembly does not directly support polyploid genomes. If it is set to >2, the quality of primary assembly for polyploid genomes might be improved. Please use primary assembly for polyploid samples and run multiple rounds of purging steps using third-party tools such as purge_dups.
|
||||
|
||||
Why one Hi-C integrated assembly is larger than another one?
|
||||
------------------------------------------------------------
|
||||
|
||||
For some samples like human male, the paternal haplotype should be larger than the maternal haplotype. However, if one assembly is much larger than another one, it should be the issues of hifiasm. To fix it, please set smaller value for ``-s`` (default: 0.55).
|
||||
|
||||
Another possibility is that hifiasm misidentifies coverage threshold for homozygous reads. For instance, hifiasm prints the following information during assembly without setting the option ``--purge-cov``:
|
||||
Another possibility is that hifiasm misidentifies coverage threshold for homozygous reads. For instance, hifiasm prints the following information during assembly:
|
||||
::
|
||||
|
||||
[M::purge_dups] purge duplication coverage threshold: 46
|
||||
[M::purge_dups] purge duplication coverage threshold: 36
|
||||
|
||||
In this example, hifiasm identifies the coverage threshold for homozygous reads as ``46/1.25 = 36``. If it is significantly smaller than the homozygous coverage peak, hifiasm will generate two unbalanced assemblies. In this case, please set ``--purge-cov`` to homozygous coverage peak. Please note that tuning ``--purge-cov`` may affect ``*p_utg*gfa`` so that ``*hic*.bin`` should be deleted. Since v0.15.5, hifiasm can detect such changes and renew Hi-C bin files automatically.
|
||||
In this example, hifiasm identifies the coverage threshold for homozygous reads as ``36``. If it is significantly smaller than the homozygous coverage peak, hifiasm will generate two unbalanced assemblies. In this case, please set ``--hom-cov`` to homozygous coverage peak. Please note that tuning ``--hom-cov`` may affect ``*p_utg*gfa`` so that ``*hic*.bin`` should be deleted. Since v0.15.5, hifiasm can detect such changes and renew Hi-C bin files automatically.
|
||||
|
||||
|
||||
|
||||
@@ -57,12 +57,12 @@ For Hi-C integrated assembly, why the assembly size of both haplotypes are much
|
||||
|
||||
[M::stat] # heterozygous bases: 645155110; # homozygous bases: 1495396634
|
||||
|
||||
If most bases of a diploid sample are homozygous, the coverage threshold is wrongly determined by hifiasm. For instance, hifiasm prints the following information during assembly without setting the option ``--purge-cov``:
|
||||
If most bases of a diploid sample are homozygous, the coverage threshold is wrongly determined by hifiasm. For instance, hifiasm prints the following information during assembly:
|
||||
::
|
||||
|
||||
[M::purge_dups] purge duplication coverage threshold: 46
|
||||
[M::purge_dups] purge duplication coverage threshold: 36
|
||||
|
||||
In this example, hifiasm identifies the coverage threshold for homozygous reads as ``46/1.25 = 36``. If it is much smaller than homozygous coverage peak, hifiasm thinks most reads are homozygous and assign them to both assemblies, making both of them much larger than the estimated haploid genome size. In this case, please set ``--purge-cov`` to homozygous coverage peak. Please note that tuning ``--purge-cov`` may affect ``*p_utg*gfa`` so that ``*hic*.bin`` should be deleted. Since v0.15.5, hifiasm can detect such changes and renew Hi-C bin files automatically.
|
||||
In this example, hifiasm identifies the coverage threshold for homozygous reads as ``36``. If it is much smaller than homozygous coverage peak, hifiasm thinks most reads are homozygous and assign them to both assemblies, making both of them much larger than the estimated haploid genome size. In this case, please set ``--hom-cov`` to homozygous coverage peak. Please note that tuning ``--hom-cov`` may affect ``*p_utg*gfa`` so that ``*hic*.bin`` should be deleted. Since v0.15.5, hifiasm can detect such changes and renew Hi-C bin files automatically.
|
||||
|
||||
|
||||
.. _hic-iss:
|
||||
@@ -80,10 +80,14 @@ Why the size of primary assembly or partially phased assembly is much larger tha
|
||||
It could be because the estimated genome size is incorrect. Another possibility is that hifiasm does not perform enough purging. Setting smaller value for ``-s`` (default: 0.55) or turning ``--purge-cov`` should be helpful. See :ref:`loginter` for more details.
|
||||
|
||||
|
||||
.. _p-hamming:
|
||||
|
||||
Why the hamming error rate or the swith error rate of trio-binning assembly is very high?
|
||||
---------------------------------------------------------------------------------------------------------------
|
||||
In rare cases, a potential issue is that a few contigs may misjoin two haplotypes. For example, half of a contig come from mother while another half come from father. Such misjoined contigs can be fixed by manually breaking. The coordinates of problematic regions can be found by A-lines in GFA file or ``yak trioeval -e`` (see `issue 37 <https://github.com/chhylp123/hifiasm/issues/37>`_ for more details). However, if there are many misjoined contigs or the switch/hamming error rate reported by ``yak trioeval`` is very high, users should check if the parental data is correct (see `issue 130 <https://github.com/chhylp123/hifiasm/issues/130#issuecomment-862347943>`_ for more details).
|
||||
|
||||
Another possibility is that there are some unitigs in unitig graph misjoining two haplotypes. Such problematic unitigs might be ignored by the graph-binning strategy. Set smaller value for ``--t-occ`` forcedly remove unitig including unexpected haplotype-specific reads.
|
||||
|
||||
Why does hifiasm stuck or crash?
|
||||
-------------------------------------
|
||||
In most cases, it is caused by the low quality HiFi reads. A good HiFi dataset should have a k-mer plot like `issue10 <https://github.com/chhylp123/hifiasm/issues/10#issuecomment-616213684>`_ or `issue49 <https://github.com/chhylp123/hifiasm/issues/49#issue-729106823>`_. In contrast, low quality HiFi data often lead to weird k-mer plot like `issue93 <https://github.com/chhylp123/hifiasm/issues/93#issue-852259042>`_. Such weird k-mer plots usually indicate insufficient coverage or presence of contaminants. See :ref:`loginter` for more details. If the HiFi data look fine, please raise an issue at the `issue page <https://github.com/chhylp123/hifiasm/issues>`_.
|
||||
@@ -98,7 +102,7 @@ Can I generate HiFi-only assembly first, and then add Hi-C or trio data later?
|
||||
|
||||
What is the minimum read coverage required for hifiasm?
|
||||
-------------------------------------------------------
|
||||
Usually >=14x HiFi reads per haplotype. Higher coverage might be able to improve the contiguity of assembly.
|
||||
Usually >=13x HiFi reads per haplotype. Higher coverage might be able to improve the contiguity of assembly.
|
||||
|
||||
Why the primary assembly is more contiguous than the fully-phased assemblies and the partially phased assemblies (i.e. ``*.hap*.p_ctg.gfa``)?
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -107,3 +111,13 @@ Why the primary assembly is more contiguous than the fully-phased assemblies and
|
||||
|
||||
When producing fully-phased assemblies and partially phased assemblies, hifiasm is designed to keep both haplotypes contiguous. It is important for many downstream applications like SV calling.
|
||||
|
||||
My assembly is fragmented or not contiguous enough, how do I improve it?
|
||||
--------------------------------------------------------------------------
|
||||
|
||||
Raising ``-D`` or ``-N`` may improve the resolution of repetitive regions but takes longer time. These two options affect all types of assemblies and usually do not have a negative impact on the assembly quality. In contrast, ``--purge-max`` only affects primary assembly. Setting larger value for ``--purge-max`` makes primary assembly more contiguous but may collapse repeats or segmental duplications.
|
||||
|
||||
If the assembly is too fragmented, users should check if HiFi data is good enough. See `Why does hifiasm stuck or crash?`_ for details.
|
||||
|
||||
How do I avoid misassemblies?
|
||||
--------------------------------------------------------------------------
|
||||
Set smaller value for ``--purge-max``, ``-s`` and ``-O``, or use the ``-u`` option.
|
||||
@@ -11,6 +11,6 @@ Hifiasm can generate a pair of haplotype-resolved assemblies with paired-end Hi-
|
||||
In this mode, each contig is supposed to be a haplotig, which by definition comes from one parental haplotype only. Hifiasm often puts all contigs from the same parental chromosome in one assembly. It has cleanly separated chrX and chrY for a human male dataset. Nonetheless, phasing across centromeres is challenging. Hifiasm is often able to phase entire chromosomes but it may fail in rare cases. Also, contigs from different parental chromosomes are randomly mixed as it is just not possible to phase across chromosomes with Hi-C. Hifiasm does not perform scaffolding for now. You need to run a standalone scaffolder such as SALSA or 3D-DNA to scaffold phased haplotigs.
|
||||
|
||||
|
||||
For samples with high heterozygosity rate, a common issue is that one assembly is much larger than another one. To fix this issue, please set smaller value for ``-s`` (default: 0.55). Another possibility is that hifiasm misidentifies coverage threshold for homozygous reads. In this case, please set ``--purge-cov`` to homozygous coverage peak. See :ref:`hic-iss` for more details.
|
||||
For samples with high heterozygosity rate, a common issue is that one assembly is much larger than another one. To fix this issue, please set smaller value for ``-s`` (default: 0.55). Another possibility is that hifiasm misidentifies coverage threshold for homozygous reads. In this case, please set ``--hom-cov`` to homozygous coverage peak. See :ref:`hic-iss` for more details.
|
||||
|
||||
At the first run, hifiasm saves the alignment of Hi-C reads to disk as ``*hic*.bin``. It reuses the saved results to avoid Hi-C alignment next time. Please note that ``*hic*.bin`` should be deleted when tuning any parameters affecting ``*p_utg*gfa``. Since v0.15.5, hifiasm can detect such changes and renew Hi-C bin files automatically. There are several parameters which do not change ``*p_utg*gfa``, including ``-s``, ``--seed``, ``--n-weight``, ``--n-perturb``, ``--f-perturb`` and ``--l-msjoin``.
|
||||
|
||||
@@ -12,9 +12,9 @@ Output files
|
||||
In general, hifiasm generates the following assembly graphs in the GFA format:
|
||||
|
||||
* ```prefix`.r_utg.gfa``: haplotype-resolved raw unitig graph. This graph keeps all haplotype information.
|
||||
* ```prefix`.p_utg.gfa``: haplotype-resolved processed unitig graph without small bubbles. Small bubbles might be caused by somatic mutations or noise in data, which are not the real haplotype information. Hifiasm automatically pops such small bubbles based on coverage. The option ``--purge-cov`` affects the result. See :ref:`homozygous coverage setting <homcov>` for more details. In addition, the option ``-p`` forcedly pops bubbles.
|
||||
* ```prefix`.p_utg.gfa``: haplotype-resolved processed unitig graph without small bubbles. Small bubbles might be caused by somatic mutations or noise in data, which are not the real haplotype information. Hifiasm automatically pops such small bubbles based on coverage. The option ``--hom-cov`` affects the result. See :ref:`homozygous coverage setting <homcov>` for more details. In addition, the option ``-p`` forcedly pops bubbles.
|
||||
* ```prefix`.p_ctg.gfa``: assembly graph of primary contigs. This graph includes a complete assembly with long stretches of phased blocks.
|
||||
* ```prefix`.a_ctg.gfa``: assembly graph of alternate contigs. This graph consists of all assemblies that are discarded in primary contig graph.
|
||||
* ```prefix`.a_ctg.gfa``: assembly graph of alternate contigs. This graph consists of all contigs that are discarded in primary contig graph.
|
||||
* ```prefix`.*hap*.p_ctg.gfa``: phased contig graph. This graph keeps the phased contigs.
|
||||
|
||||
|
||||
@@ -98,5 +98,5 @@ Hifiasm prints several information for quick debugging, including:
|
||||
.. _homcov:
|
||||
|
||||
* k-mer plot: showing how many k-mers appear a certain number of times. For homozygous samples, there should be one peak around read coverage. For heterozygous samples, there should two peaks, where the smaller peak is around the heterozygous read coverage and the larger peak is around the homozygous read coverage. For example, `issue10 <https://github.com/chhylp123/hifiasm/issues/10#issuecomment-616213684>`_ indicates the heterozygous read coverage and the homozygous read coverage are 28 and 57, respectively. `Issue49 <https://github.com/chhylp123/hifiasm/issues/49#issue-729106823>`_ is another good example. Weird k-mer plot like `issue93 <https://github.com/chhylp123/hifiasm/issues/93#issue-852259042>`_ is often caused by insufficient coverage or presence of contaminants.
|
||||
* homozygous coverage: coverage threshold for homozygous reads. Hifiasm prints it as: ``[M::purge_dups] purge duplication coverage threshold: X``. Without setting the option ``--purge-cov``, the homozygous coverage threshold determined by hifiasm is: ``X/1.25``. If it is not around homozygous coverage, the final assembly might be either too large or too small. To fix this issue, please set ``--purge-cov`` to homozygous coverage.
|
||||
* number of het/hom bases: how many bases in unitig graph are heterozygous and homozygous during Hi-C phased assembly. Hifiasm prints it as: ``[M::stat] # heterozygous bases: X; # homozygous bases: Y``. Given a heterozygous sample, if there are much more homozygous bases than heterozygous bases, hifiasm fails to identify correct coverage threshold for homozygous reads. In this case, please set ``--purge-cov`` to homozygous coverage.
|
||||
* homozygous coverage: coverage threshold for homozygous reads. Hifiasm prints it as: ``[M::purge_dups] homozygous read coverage threshold: X``. If it is not around homozygous coverage, the final assembly might be either too large or too small. To fix this issue, please set ``--hom-cov`` to homozygous coverage.
|
||||
* number of het/hom bases: how many bases in unitig graph are heterozygous and homozygous during Hi-C phased assembly. Hifiasm prints it as: ``[M::stat] # heterozygous bases: X; # homozygous bases: Y``. Given a heterozygous sample, if there are much more homozygous bases than heterozygous bases, hifiasm fails to identify correct coverage threshold for homozygous reads. In this case, please set ``--hom-cov`` to homozygous coverage.
|
||||
|
||||
@@ -32,7 +32,7 @@ In this example, the partially phased contigs are written to ``NA12878.asm.bp.ha
|
||||
This pair of files can be thought to represent the two haplotypes in a diploid genome, though with occasional switch errors. The frequency of switches is determined by the heterozygosity of the input sample. Hifiasm also writes the primary contigs to ``NA12878.asm.bp.p_ctg.gfa``.
|
||||
|
||||
For samples with high heterozygosity rate, a common issue is that one set of partially phased contigs is much larger than another set. To fix this issue, please set smaller value for ``-s`` (default: 0.55). Another possibility is that hifiasm misidentifies coverage threshold for homozygous reads.
|
||||
In this case, please set ``--purge-cov`` to homozygous coverage. See :ref:`p-large` for more details.
|
||||
In this case, please set ``--hom-cov`` to homozygous coverage. See :ref:`p-large` for more details.
|
||||
|
||||
|
||||
Produce primary/alternate assemblies
|
||||
@@ -42,6 +42,6 @@ To get primary/alternate assemblies, the option ``--primary`` should be set::
|
||||
|
||||
hifiasm -o NA12878.asm --primary -t 32 NA12878.fq.gz
|
||||
|
||||
The primary contigs and the alternate contigs are written to ``NA12878.asm.p_ctg.gfa`` and ``NA12878.asm.a_ctg.gfa``, respectively. For inbred or homozygous genomes, the primary/alternate assemblies can be also produced by ``-l0``. Similarly, turning ``-s`` or ``--purge-cov`` should
|
||||
The primary contigs and the alternate contigs are written to ``NA12878.asm.p_ctg.gfa`` and ``NA12878.asm.a_ctg.gfa``, respectively. For inbred or homozygous genomes, the primary/alternate assemblies can be also produced by ``-l0``. Similarly, turning ``-s`` or ``--hom-cov`` should
|
||||
be helpful if the primary assembly is too large. See :ref:`p-large` for more details.
|
||||
|
||||
|
||||
@@ -75,17 +75,34 @@ Error correction options
|
||||
.. _fopt:
|
||||
|
||||
**\-f <INT=37>**
|
||||
Number of bits for bloom filter; 0 to disable. This bloom filter is used to filter out singleton k-mers when counting all k-mers. It takes 2\ :sup:`(INT-3)` bytes of memory. A proper setting saves memory. For small genomes, use ``-f0`` to disable the initial bloom filter which takes 16GB memory at the beginning. For genomes much larger than human, applying ``-f38`` or even ``-f39`` is preferred to save memory on k-mer counting.
|
||||
Number of bits for bloom filter; 0 to disable. This bloom filter is used to filter out singleton k-mers when counting all k-mers. It takes 2\ :sup:`(INT-3)` bytes of memory. A proper setting saves memory. ``-f37`` is recommended for human assembly. For small genomes, use ``-f0`` to disable the initial bloom filter which takes 16GB memory at the beginning. For genomes much larger than human, applying ``-f38`` or even ``-f39`` is preferred to save memory on k-mer counting.
|
||||
|
||||
.. _Dopt:
|
||||
|
||||
**\-D <FLOAT=5.0>**
|
||||
Drop k-mers occurring ``>FLOAT*coverage`` times. Hifiasm discards these high-frequency k-mers during error correction to reduce running time. The ``coverage`` is determined automatically by hifiasm based on k-mer plot, representing homozygous read coverage. Raising this option may improve the resolution of repetitive regions but takes longer time.
|
||||
|
||||
.. _NEopt:
|
||||
|
||||
**\-N <INT=100>**
|
||||
Consider up to ``max(-D*coverage,-N)`` overlaps for each oriented read. The ``coverage`` is determined automatically by hifiasm based on k-mer plot, representing homozygous read coverage. Raising this option may improve the resolution of repetitive regions but takes longer time.
|
||||
|
||||
.. _ropt:
|
||||
|
||||
**\-r <INT=3>**
|
||||
Rounds of haplotype-aware error correction. This option affects all outputs of hifiasm. Odd rounds of correction are preferred in practice.
|
||||
|
||||
|
||||
.. _zopt:
|
||||
|
||||
**\-z <INT=0>**
|
||||
Length of adapters that should be removed. This option remove ``INT`` bases from both ends of each read. Some old HiFi reads may consist of short adapters (e.g. 20bp adapter at one end). For such data, trimming short adapters would significantly improve the assembly quality.
|
||||
|
||||
|
||||
.. _min-hist-cnt-opt:
|
||||
|
||||
**\-\-min-hist-cnt <INT=5>**
|
||||
When analyzing the k-mer spectrum, ignore counts below ``INT``. See `issue 45 <https://github.com/chhylp123/hifiasm/issues/49>`_ for example.
|
||||
When analyzing the k-mer spectrum, ignore counts below ``INT``. For very low coverage of HiFi data, set smaller value for this option. See `issue 45 <https://github.com/chhylp123/hifiasm/issues/49>`_ for example.
|
||||
|
||||
|
||||
|
||||
@@ -97,10 +114,6 @@ Assembly options
|
||||
**\-a <INT=4>**
|
||||
Rounds of assembly graph cleaning. This option is used with ``-x`` and ``-y``. Note that unlike -r, this option does not affect error corrected reads and all-to-all overlaps.
|
||||
|
||||
.. _zopt:
|
||||
|
||||
**\-z <INT=0>**
|
||||
Length of adapters that should be removed. This option remove ``INT`` bases from both ends of each read. Some old HiFi reads may consist of short adapters (e.g. 20bp adapter at one end). For such data, trimming short adapters would significantly improve the assembly quality.
|
||||
|
||||
.. _mopt:
|
||||
|
||||
@@ -110,7 +123,7 @@ Assembly options
|
||||
.. _popt:
|
||||
|
||||
**\-p <INT=0>**
|
||||
Maximal probing distance for bubble popping when generating haplotype-resolved processed unitig graph without small bubbles. Bubbles longer than ``INT`` bases will not be popped. Small bubbles might be caused by somatic mutations or noise in data. Please note that hifiasm automatically pops small bubbles based on coverage, which can be tweaked by ``--purge-cov``.
|
||||
Maximal probing distance for bubble popping when generating haplotype-resolved processed unitig graph without small bubbles. Bubbles longer than ``INT`` bases will not be popped. Small bubbles might be caused by somatic mutations or noise in data. Please note that hifiasm automatically pops small bubbles based on coverage, which can be tweaked by ``--hom-cov``.
|
||||
|
||||
.. _nopt:
|
||||
|
||||
@@ -120,13 +133,24 @@ Assembly options
|
||||
.. _xyopt:
|
||||
|
||||
**\-x <FLOAT1=0.8>, \-y <FLOAT2=0.2>**
|
||||
Max and min overlap drop ratio. This option is used with ``-a``. Given a node N in the assembly graph, let max(N) be the length of the largest overlap of N. Hifiasm iteratively drops overlaps of N if their length/max(N) is below a threshold controlled by ``-x`` and ``-y``. Hifiasm applies ``-a`` rounds of short overlap removal with an increasing threshold between ``FLOAT1`` and ``FLOAT2``.
|
||||
Max and min overlap drop ratio. This option is used with ``-a``. Given a node N in the assembly graph, let max(N) be the length of the longest overlap of N. Hifiasm iteratively drops overlaps of N if their length/max(N) is below a threshold controlled by ``-x`` and ``-y``. Hifiasm applies ``-a`` rounds of short overlap removal with an increasing threshold between ``FLOAT1`` and ``FLOAT2``.
|
||||
|
||||
.. _iopt:
|
||||
|
||||
**\-i**
|
||||
Ignore all bin files so that hifiasm will start again from scratch.
|
||||
|
||||
.. _uopt:
|
||||
|
||||
**\-u**
|
||||
Disable post-join step for contigs which may improve N50. The post-join step of hifiasm improves contig N50 but may introduce misassemblies.
|
||||
|
||||
|
||||
.. _hom-cov-opt:
|
||||
|
||||
**\-\-hom-cov <INT>**
|
||||
Homozygous read coverage inferred automatically in default. This option affects different types of outputs, including Hi-C phased assembly and HiFi-only assembly. For more details, see :ref:`hic-iss`, :ref:`p-large` and :ref:`loginter`.
|
||||
|
||||
.. _pri-range-opt:
|
||||
|
||||
**\-\-pri-range <INT1[,INT2]>**
|
||||
@@ -186,6 +210,13 @@ Trio-binning options
|
||||
**\-c <INT1=2>, -d <INT2=5>**
|
||||
Lower bound and upper bound of the binned k-mer's frequency. When doing trio binning, a k-mer is said to be differentiating if it occurs >= ``INT2`` times in one sample but occurs < ``INT1`` times in the other sample.
|
||||
|
||||
|
||||
.. _t-occ-opt:
|
||||
|
||||
**\-\-t-occ <INT=60>**
|
||||
Forcedly remove unitig including ``>INT`` unexpected haplotype-specific reads without considering graph topology. For more details, see :ref:`p-hamming`.
|
||||
|
||||
|
||||
Purge duplication options
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -206,13 +237,13 @@ Purge duplication options
|
||||
|
||||
.. _purgeopt:
|
||||
|
||||
**\-\-purge-cov <INT>**
|
||||
Coverage upper bound of purge duplication, which is inferred automatically in default. If the coverage of a contig is higher than this bound, don't apply purge duplication. Moreover, this option also affects Hi-C phased assembly. For more details, see :ref:`hic-iss`, :ref:`p-large` and :ref:`loginter`.
|
||||
**\-\-purge-max <INT>**
|
||||
Coverage upper bound of purge duplication, which is inferred automatically in default. If the coverage of a contig is higher than this bound, don't apply purge duplication. Larger value makes assembly more contiguous but may collapse repeats or segmental duplications.
|
||||
|
||||
.. _nhapopt:
|
||||
|
||||
**\-\-n\-hap <INT=2>**
|
||||
Assumption of haplotype number.
|
||||
Assumption of haplotype number. If it is set to >2, the quality of primary assembly for polyploid genomes might be improved.
|
||||
|
||||
|
||||
|
||||
@@ -247,4 +278,10 @@ Hi-C integration options
|
||||
.. _seedopt:
|
||||
|
||||
**\-\-seed <INT=11>**
|
||||
RNG seed.
|
||||
RNG seed.
|
||||
|
||||
|
||||
.. _l-msjoin:
|
||||
|
||||
**\-\-l-msjoin <INT=500000>**
|
||||
Detect misjoined unitigs of ``>=INT`` in size; 0 to disable.
|
||||
|
||||
@@ -24,8 +24,6 @@ The W-line and H-line reported by ``yak trioeval`` indicate switch error rate an
|
||||
W 26714 3029448 0.008818
|
||||
H 24315 3029885 0.008025
|
||||
|
||||
For this example, the switch error rate is 0.8818% and the hamming error rate is 0.8025%.
|
||||
For this example, the switch error rate is 0.8818% and the hamming error rate is 0.8025%. If the hamming error rate or the swith error rate of trio-binning assembly is very high, it might be caused by hifiasm or the incorrect parental data. To fix it, see :ref:`p-hamming` for more details.
|
||||
|
||||
In rare cases, a potential issue is that a few contigs may misjoin two haplotypes. For example, half of a contig come from mother while another half come from father. Such misjoined contigs can be fixed by
|
||||
manually breaking. The coordinates of problematic regions can be found by A-lines in GFA file or ``yak trioeval -e``. However, if there are many misjoined contigs or the switch/hamming error rate reported by ``yak trioeval`` is very high, users should check if the parental data is correct (see `example <https://github.com/chhylp123/hifiasm/issues/130#issuecomment-862347943>`_ for more details).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user