Open ecroot opened 1 year ago
Perhaps the bug is to do with line 326 in map_KAS-seq.sh:
mapped_reads_num=$( grep chr HeLa-S3_spKAS-seq.rep1.sam | grep ^@ -v | awk '{print $1}' | sort -u | wc -l )
the grep command seems to require a hardcoded filename, rather than using any of the variables in the rest of the script.
Thanks for updating map_KAS-seq.sh to be compatible with t2t. The updated script still contains the bug on line 326: the command is run for a specific file, rather than ${prefix}.sam
Describe the bug The mapping summary files always seem to give the number of reads mapped as 0, and a mapping ratio of 0.00%. However, mapping appears to run successfully, so I suspect these values are incorrect.
For example, running
samtools flagstat
on one of the bam files resulting from the mapping command gives the following output:The kas-seq summary file for the same sample:
The relevant line from the statistics file:
Is this a bug, or am I doing something wrong?
I also do not understand what the final 4 percentages represent in the summary file. Please can you either point me towards the relevant documentation, or explain this?
To Reproduce Steps to reproduce the behavior: Run a kas-seq command with bwa to generate a mapping summary.
Expected behavior Correct values in the file, or more informative documentation for the summary file, or an explanation for why the mapping summary differs from the terminal output and samtools flagstats.
Desktop (please complete the following information):
Additional context I need the correct ratios to be able to perform the normalisation steps for various other features of the tool.