Skip to content

Default format parsing in HISAT2 causes incorrect read length calculation. #464

Description

@huangl-CAU

I noticed that hisat2_read_statistics.py treats input files as FASTA by default, even when I specify the -q option (intended for FASTQ files). Thus, FASTQ files not suffixed with .fastq or .fq are recognized as FASTA, resulting in obviously incorrect and random read length calculations. The alignment process sometimes still proceeds without reported errors. So I wonder: can these alignment results be trusted, and how much does the --read-lengths parameter actually matter?

Case1 :Error reported with :--read-lengths arg must be at least 20;
Image

Case2: normal information
Image

In both case, command
"hisat2 --dta-cufflinks -p 64 -q -x ~/Reference/**_index -1 ../fastp/$file_1.fp.gz -2 ../fastp/$file_2.fp.gz | samtools view -bS -q 20 - > $name.bam " were used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions