SAMtools count
Last updated
Was this helpful?
Was this helpful?
readcount=$(samtools view -c "${mappings_bam_name}")
echo "Total reads: ${readcount}" > "${mappings_bam_prefix}.txt"counts_txt_id=$(dx upload "${mappings_bam_prefix}.txt" --brief){
"name": "counts_txt",
"class": "file",
"label": "Read count file",
"patterns": [
"*.txt"
],
"help": "Output file with Total reads as the first line."
}dx-jobutil-add-output counts_txt "${counts_txt_id}" --class=file