Skip to content

bacterial isolates: less than 5 closely-related genomes error message & problems with -g (genus) #44

@Dwrgi

Description

@Dwrgi

Hi,
I have just installed homopolish and was trying to run it on assemblies of a set of Polaromonas isolates, but I keep getting the 'less than 5 closely-related genomes' error message and I don't understand why?

The sizes of the contigs suggest to me that I have one whole (circular) chromosom and one or a few plasmids, so there ought to be at least one contig that matches against Polarmononas (or some bacterium at least!) in the database.

Assemblies are from Nanopore MinIon sequences that have been through Flye assembly+polish and 1x Medaka polish.


My run:

(homopolish) sara@VB-ubuntu:~$ python3 homopolish/homopolish.py polish -a Polaromonas_isolates/medaka_polished_assemblies/Pol_01_consensus.fasta -s homopolish/bacteria.msh -m homopolish/R9.4.pkl -o Polaromonas_isolates/homopolished_assemblies

The resulting output:

[2022/05/03 13:19] INFO: RUN-ID: contig_3
contig_3
/home/sara/Polaromonas_isolates/homopolished_assemblies/debug
[2022/05/03 13:19] INFO: Stage: Select closely-related genomes
TIME Select closely-related genomes: 1 MINS 26 SECS.
This contig contig_3 closely-related genome is less than 5, not to polish...

[2022/05/03 13:20] INFO: RUN-ID: contig_2
contig_2
/home/sara/Polaromonas_isolates/homopolished_assemblies/debug
[2022/05/03 13:20] INFO: Stage: Select closely-related genomes
TIME Select closely-related genomes: 0 MINS 14 SECS.
This contig contig_2 closely-related genome is less than 5, not to polish...

[2022/05/03 13:20] INFO: RUN-ID: contig_1
contig_1
/home/sara/Polaromonas_isolates/homopolished_assemblies/debug
[2022/05/03 13:20] INFO: Stage: Select closely-related genomes
TIME Select closely-related genomes: 0 MINS 17 SECS.
This contig contig_1 closely-related genome is less than 5, not to polish...
TIME Total: 1 MINS 58 SECS.

I also tried using the -g option and specifying the genus as Polarmonas but that threw up an error message that I don't know how to handle:

(homopolish) sara@VB-ubuntu:~$ python3 homopolish/homopolish.py polish -a Polaromonas_isolates/medaka_polished_assemblies/Pol_01_consensus.fasta -g Polaromonas -m homopolish/R9.4.pkl -o Polaromonas_isolates/homopolished_test

Traceback (most recent call last):
File "homopolish/homopolish.py", line 64, in
main()
File "homopolish/homopolish.py", line 46, in main
FLAGS.output_dir, FLAGS.minimap_args, FLAGS.mash_threshold, FLAGS.download_contig_nums, FLAGS.debug, FLAGS.meta, FLAGS.local_DB_path,FLAGS.coverage,FLAGS.distance)
File "/home/sara/homopolish/modules/polish_interface.py", line 326, in polish_genome
out = genus_species_polish(out, assembly_name, output_dir_debug,mash_screen, assembly, model_path, sketch_path, genus_species, threads, output_dir, minimap_args, mash_threshold, download_contig_nums, debug, meta)
TypeError: genus_species_polish() missing 2 required positional arguments: 'coverage' and 'distance'

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions