Skip to content

Can't process whitespaces in the read filenames #80

Description

@nromashchenko

Read2Tree version: 2.0.1

It seems if read files name have whitespaces, they are either not correctly passed to mafft, or mafft itself is unhappy.

To reproduce: proceed with the test example given in the README. Then

cd tests
cp sample_1.fastq "sample_1 copy.fastq"
cp sample_2.fastq "sample_2 copy.fastq"
read2tree --tree --standalone_path marker_genes --reads sample_1\ copy.fastq  sample_2\ copy.fastq --output_path ./output --dna_reference dna_ref.fa
...
d2tree-test/bin/mafft --auto --thread 1 --maxiterate 1000 --amino /tmp/tmp9vel2wo0
2025-11-12 15:22:14 INFO     sample_1 copy: Alignment of 20 OGs took 5.6129608154296875.
--- Mapping of reads to reference sequences ---
Mapping reads to species:   0%|                              | 0/5 [00:00<?, ? species/s]2025-11-12 15:22:14 INFO     sample_1 copy: --- Mapping of reads to MNELE reference species ---
Mapping reads to species:   0%|                              | 0/5 [00:00<?, ? species/s]

after which it stops with an error without providing any information.

> echo $?
1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions