-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05_bedCount.sh
More file actions
41 lines (30 loc) · 1 KB
/
05_bedCount.sh
File metadata and controls
41 lines (30 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
#SBATCH --partition=%partition%
#SBATCH --nodes=%nodes%
#SBATCH --cpus-per-task=20
#SBATCH --job-name=%jobname%
#SBATCH --output=%outputlog%
#SBATCH --error=%errorlog%
#SBATCH --mail-user=%mail%
#SBATCH --mail-type=FAIL
#SBATCH --time=24:00:00
#SBATCH --mem=%mem%
#slurm configuration
partition="batch"
mem="100G"
nodes="1"
mail="YOUR EMAIL"
jobname=bedCount
outputlog=${Out_Dir}/bedCount.out
errorlog=${Out_Dir}/bedCount.err
#***********************************#
# ATAC-Seq pipeline - PAIR-END #
# script: 10_bedCount.sh #
#***********************************#
module load bedtools/2.29.0
# 10. Count the number of reads mapping to each feature (OCR)
# for all cell types:
filenames=$(ls /ibex/alghurmf/bulkAtac/*/04bam/*.clean.bam | grep "HSC\|CLP\|proB\|preB\|PreProB\|ImmatureB\|neutrophils")
bed_file="bulkAtac/BedCount/Allconsensus_cell_types.bed"
Out_Dir="bulkAtac/BedCount" # path of output folder
bedtools multicov -bams $filenames -bed $bed_file -D > $Out_Dir/count_table.txt