open2c / pairtools

Extract 3D contacts (.pairs) from sequencing alignments
MIT License
104 stars 32 forks source link

pipe error with bwa-mem2.avx512bw (2.2.1) #207

Open pashapu43 opened 9 months ago

pashapu43 commented 9 months ago

Hi,

I am trying to align paired-end HI-C data with bwa-mem2 but it seems there is an issue with header. Here is the command i used: bwa-mem2.avx512bw mem -5SP -T0 -t50 -R "@RG\tID:E003868R:379:GW2111194210th:3\tSM:Tim_omnic\tPL:ILLUMINA\tLB:Lib1" \ pinhic_tim DTG-OmniC-72_90_R1.fastq.gz DTG-OmniC-72_90_R2.fastq.gz| \ pairtools parse --min-mapq 30 --walks-policy 5unique --max-inter-align-gap 30 --nproc-in 20 --nproc-out 20 --chroms-path pinhic.genome | \ pairtools sort --tmpdir=./pinhic_tmp --nproc 20|pairtools dedup --nproc-in 20 --nproc-out 20 --mark-dups --output-stats stats.txt| \ pairtools split --nproc-in 20 --nproc-out 20 --output-pairs mapped.pairs --output-sam -|samtools view -bS -@16 | samtools sort -@16 -o pinhic_aligned.bam;samtools index pinhic_aligned.bam.

The same command works without any issue with bwa mem (0.7.17-r1188).

Here is the SLRUM output:

Executing in AVX512 mode!!

golobor commented 8 months ago

did you check if the bwa mem2 command runs well and generates valid .sam/.bam files? For debugging, I recommend running alignment and parsing as separate commands.