File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
function back_ground_process () {
14
14
# fetch regions of interest from BAM files to speed up the process
15
- samtools view -bh /mnt/isilon/maris_lab/target_nbl_ngs/CellLineExome/aligned_2019 /${1} .sorted.reheader.bam -L allExons.bed > ROI_bams/${1} _regionofinterest.bam
15
+ samtools view -bh /path/to/bam /${1} .sorted.reheader.bam -L allExons.bed > ROI_bams/${1} _regionofinterest.bam
16
16
17
17
# Calculate average exome coverage
18
18
samtools depth -b allExons.bed ROI_bams/${1} _regionofinterest.bam | awk ' {sum+=$3} END { print "Average = ",sum/NR}' >> ${1} _samtools_exomCoverage.txt
19
19
20
20
# output the mean depth of coverage for each region in the BED file
21
21
bedtools coverage -a allExons.bed -b ROI_bams/${1} _regionofinterest.bam -mean >> ${1} _bedtools_exomCoverage.txt
22
- # wk '{sum+=$4} END { print "'$1' Average = ",sum/NR}' ${1}_bedtools_exomCoverage.txt >> exomeCov_bedtools.txt
22
+ awk ' {sum+=$4} END { print "' $1 ' Average = ",sum/NR}' ${1} _bedtools_exomCoverage.txt >> exomeCov_bedtools.txt
23
23
echo " ${1} done!"
24
24
}
25
25
38
38
# wait until all child processes are done
39
39
wait
40
40
41
- echo " All background processes are done!"
41
+ echo " All background processes are done!"
You can’t perform that action at this time.
0 commit comments