Closed kcleal closed 1 year ago
Hi @Ruitulyu, I would really appreciate some help with this if you have time. Thanks
Dear Kate,
I'm sorry to hear that you've encountered an error while implementing our KAS-Analyzer. Based on the error information you provided, it appears to be an issue with the awk syntax. Interestingly, I haven't experienced this issue on my end.
I suspect that you might be using the standard awk. As a first step, I recommend installing GNU awk with the following command:
sudo apt-get install gawk
After installing GNU awk, please test it using the command below along with a sample test.bed file:
bamToBed -i NO1_S10_kasseq_out_sorted.bam > NO1_S10_kasseq_out_sorted.bed
awk '$3-150>0 {if ($6~"+") printf("%s\t%d\t%d\t%s\t%d\t%s\n",$1,$2,$2+150,$4,$5,$6); else if ($6~"-") printf("%s\t%d\t%d\t%s\t%d\t%s\n",$1,$3-150,$3,$4,$5,$6)}' NO1_S10_kasseq_out_sorted.bed | head
This should help resolve the issue. If you still encounter any problems, please don't hesitate to reach out, and I'd be more than happy to assist you further.
Best, Ruitu
Hi @Ruitulyu,
Im getting an awk error:
Pipeline was invoked with the command:
KAS-Analyzer KAS-seq -t 8 -a bowtie2 -i ${hg38} -s hg38 -o ${name}_kasseq_out -1 ${item}
The pipeline generated aligned reads e.g.
The trimming report contained: