Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read file magic number #716

Open
GaojieLi-dot opened this issue Dec 4, 2024 · 2 comments
Open

Unable to read file magic number #716

GaojieLi-dot opened this issue Dec 4, 2024 · 2 comments

Comments

@GaojieLi-dot
Copy link

When I use bismark to map DNA methylation data, the log file shows this error. At the same time, the mapping is also very low.
error infotmation:

Unable to read file magic number
is_zstd_file: unable to read magic number
Unable to read file magic number
is_zstd_file: unable to read magic number
Unable to read file magic number
is_zstd_file: unable to read magic number

report:
Sequences analysed in total: 2401399
Number of alignments with a unique best hit from the different alignments: 772217
Mapping efficiency: 32.2%
Sequences with no alignments under any condition: 1435910
Sequences did not map uniquely: 193272
Sequences which were discarded because genomic sequence could not be extracted: 0

Number of sequences with unique best (first) alignment came from the bowtie output:
CT/CT: 176210 ((converted) top strand)
CT/GA: 175036 ((converted) bottom strand)
GA/CT: 210189 (complementary to (converted) top strand)
GA/GA: 210782 (complementary to (converted) bottom strand)

command:
bismark -q -N 1 --parallel 5 --non_directional --bam --temp_dir ./ -un ./ --bowtie2 --genome hg38 fastq.gz -o ./

@FelixKrueger
Copy link
Owner

Googling this error isn't overly helpful, some suggest that it could have to do with malformatteted input files?

Regarding the low mapping, this can have a number of reasons, most notably appropriate trimming. Which type of sequencing is is, what did you do regarding trimming. And: do you have enough system resources to support --parallel 5? (e.g. >60GB of RAM?)

@ahanden
Copy link

ahanden commented Dec 11, 2024

That error comes from bowtie2. It usually shows up if your input fastq files end in .gz but aren't actually gzipped. Double check the contents of your fastq.gz file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants