gbouras13/pypolca: v0.4.0 --homopolymers
Year: 2023
Type: software
Abstract: Adds --homopolymers as an option for using closely related (but not identical) short-read data for polishing only homopolymers Thanks @rrwick for implementing this! Specifically, the --homopolymers option tells Pypolca to ignore all changes except those changing the length of homopolymers of at least the given length. For example, with --homopolymers 6: ACGTA → ACATA ❌ Not applied (change is not in a homopolymer). ACGTTTTTTTCAA → ACGTTTTTTTTCAA ✅ Applied (homopolymer ≥6 bp). GCTAAAATCG → GCTAAAAATCG ❌ Not applied (homopolymer <6 bp). This mode is useful when polishing an ONT-only assembly without having short reads from the same sample. You can instead use reads from a closely related sample. The underlying assumptions are: ONT-only assemblies often contain errors in homopolymer length, especially for long homopolymers. Short reads will be more accurate than ONT reads for long homopolymers. Homopolymer runs are generally conserved between closely related genomes. Example command, where 'sample A' is your ONT-only assembly and 'sample B' is a closely related genome with short reads: pypolca run -a sample_A_draft.fasta -1 sample_B_1.fastq.gz -2 sample_B_2.fastq.gz -t 16 --careful --homopolymers 6 If you don't have reads from a related sample but do have a reference genome, you can simulate reads with wgsim: pair_count=$(seqtk size sample_B.fasta | awk '{s+=$2} END{print int(s/4)}') # ~50× depth wgsim -e 0.0 -r 0.0 -N "$pair_count" -1 100 -2 100 sample_B.fasta temp_1.fastq temp_2.fastq pypolca run -a sample_A_draft.fasta -1 temp_1.fastq -2 temp_2.fastq -t 16 --careful --homopolymers 6 rm temp_1.fastq temp_2.fastq We recommend a threshold of 6, since modern ONT-only assemblies are typically accurate for shorter homopolymers.
Authors: George Bouras, Ryan Wick
Institution: The University of Melbourne
Language: English
Subfield: Molecular Biology
Domain: Life Sciences
Open Access status: green
OpenAlex ID: W6912822694
