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

Error mapping #223

Open
jbruxaux opened this issue Jan 23, 2023 · 1 comment
Open

Error mapping #223

jbruxaux opened this issue Jan 23, 2023 · 1 comment

Comments

@jbruxaux
Copy link

Hi!

I tried to use bwa-mem2 to map reads against a reference. The indexing of the reference went well (at least I didn't get any error message), but I cannot map for a reason I do not understand. I am using reads cleaned by fastp, but my colleague performed the same thing with raw reads and got the same error.

Here is the error log:

Looking to launch executable "/hpc2n/eb/software/bwa-mem2/2.2.1-GCCcore-11.2.0/bin/bwa-mem2.avx2", simd = .avx2
Launching executable "/hpc2n/eb/software/bwa-mem2/2.2.1-GCCcore-11.2.0/bin/bwa-mem2.avx2"
-----------------------------
Executing in AVX2 mode!!
-----------------------------
* SA compression enabled with xfactor: 8
* Ref file: /pfs/stor10/projects/projnb10/wanglab-2020/Reference/Pinus_tabuliformis/P.tabuliformis_V1.0_corrected.fa
* Entering FMI_search
* Index file found. Loading index from /pfs/stor10/projects/projnb10/wanglab-2020/Reference/Pinus_tabuliformis/P.tabuliformis_V1.0_corrected.fa.bwt.2bit.64
* Reference seq len for bi-index = 50845757857
* sentinel-index: 27922254887
* Count:
0,      1
1,      15725484908
2,      25422878929
3,      35120272950
4,      50845757857

* Reading other elements of the index from files /pfs/stor10/projects/projnb10/wanglab-2020/Reference/Pinus_tabuliformis/P.tabuliformis_V1.0_corrected.fa
* Index prefix: /pfs/stor10/projects/projnb10/wanglab-2020/Reference/Pinus_tabuliformis/P.tabuliformis_V1.0_corrected.fa
* Read 0 ALT contigs
* Done reading Index!!
* Reading reference genome..
* Binary seq file = /pfs/stor10/projects/projnb10/wanglab-2020/Reference/Pinus_tabuliformis/P.tabuliformis_V1.0_corrected.fa.0123
* Reference genome size: 50845757856 bp
* Done reading reference genome !!

------------------------------------------
1. Memory pre-allocation for Chaining: 2508.0984 MB
2. Memory pre-allocation for BSW: 4313.1064 MB
3. Memory pre-allocation for BWT: 1391.6552 MB
------------------------------------------
* Threads used (compute): 18
* No. of pipeline threads: 2

[0000] read_chunk: 180000000, work_chunk_size: 180000248, nseq: 1206750
        [0000][ M::kt_pipeline] read 1206750 sequences (180000248 bp)...
[0000] Reallocating initial memory allocations!!
[0000] Calling mem_process_seqs.., task: 0
[0000] 1. Calling kt_for - worker_bwt
[0000] read_chunk: 180000000, work_chunk_size: 180000074, nseq: 1206750
        [0000][ M::kt_pipeline] read 1206750 sequences (180000074 bp)...
[0000] 2. Calling kt_for - worker_aln
bwa-mem2: src/bwamem.cpp:1780: uint8_t* bns_get_seq_v2(int64_t, const uint8_t*, int64_t, int64_t, int64_t*, uint8_t*, uint8_t*): Assertion `end-beg < BATCH_SIZE * SEEDS_PER_READ * sizeof(SeqPair)' failed.
/var/spool/slurmd/job21444015/slurm_script: line 59: 419678 Aborted                 (core dumped) bwa-mem2 mem ${ref} ${fileR1} ${fileR2} -R "@RG\tID:${path##*/}\tSM:${path##*/}\tLB:WGS\tPL:Illumina" -t 18 > ${path}${sample}/${sample}.sam

Any idea of what could be wrong? We are using version 2.2.1.

Thanks in advance!

Jade

@Mushill
Copy link

Mushill commented May 3, 2023

I got the same error.
In some samples, it worked well, while others were wrong.

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

2 participants