Closed S-iff closed 2 months ago
Maybe the binary version of filter_bam did not work properly on your system. I'm curious about what kind of CPU you are using. You can try the Python version (filter_bam.py) instead:
# --NM, not --nm here
/path/to/HapHiC/utils/filter_bam.py HiC.bam 1 --NM 3 --threads 14 | samtools view - -b -@ 14 -o HiC.filtered.bam
It seems that using filter_bam.py
worked fine. Thank you for your help. Also, my CPU model is Intel 8458P.
Hello, I encountered an error when running the command
filter_bam HMHiC.bam 1 --nm 3 --threads 14 | samtools view - -b -@ 14 -o HMHiC.filtered.bam
, which states "[main_samview] fail to read the header from "-"." I checked that my HMHiC.bam file and its path are correct, and I ranhaphic check
which also indicated that everything is normal. Additionally, when I tried to split the command into two parts, specificallyfilter_bam HMHiC.bam 1 --nm 3 --threads 14 > HMHiC.filtered.tmp.bam
andsamtools view HMHiC.filtered.tmp.bam -b -@ 64 -o HMHiC.filtered.bam
, the first commandfilter_bam HMHiC.bam 1 --nm 3 --threads 14 > HMHiC.filtered.tmp.bam
resulted in an error indicating "Segmentation fault (core dumped)." Do you have any suggestions?