Issue #43
new
Hi,
I have run into problems with 'bam2chicago.sh' lately. Then I performed stepwise check and found "${bamname}_mappedToBaits_baitOnRight.bedpe" was somehow appended an "\t" at the end of each line. After adding a step of removing that tab, the script can run without an issue for me. This may be related to the issue reported in #41 and #39 (end of the stream). My work-around:
sed -i 's/\t$//' ${samplename}/${bamname}_mappedToBaits_baitOnRight.bedpe
It would nice if you look into the issue. Thanks.
Ada
Hi, found a bug in bam2chicago.sh, I was getting this error from bedtools:
Traced it back to this bit in your code
For some reason, you are trying to output
$15
but${samplename}/${bamname}_mappedToBaits.bedpe
only has 14 fields. Remvoing$15
from the line fixed the issue.