Call Copy Number Variation from ATAC-seq data.
export PATH=$PATH:$(pwd)
- bedToBdgBW.sh: use
macs pileup
to generate pileup track (bw
,bdg
) from input reads (bed
) with reads extend half of window size in both direction. - tagToFrag.sh: covert
tagAlign
to fragments inbed
,sort.bdg
andbw
format. - readsMasker.sh: filter reads (in
bed
format) by given mask regions. - smoothBw.sh: smooth bigwig by sliding window (size - w and step - s)
- callCNV.R: call CNV from treat adjusted by mapb
- Get output from pipleine:
tagAlign
,peaks
(openning regions). - (optional) Run tagToFrag.sh: get fragments
bed
,bdg
andbw
- Run readsMasker.sh to filter out reads or frags in peak regions and get background frags.
- Run smoothBw.sh to get average coverage in each window for both control or treatment. It will reorder the bed file, so that the it cannot preserve the pair info if input is in
tagAlign
format. Please covert to fragment bed first. - Run callCNV.R to get CNV regions, segment plots
- Input: reads (
tagAlign
), peak regions (bed
ornarrowPeaks
), mapb track (bw
), sliding window (stepsize
,windowsize
) - Output: CNV regions (
bed
), log2CovRaito plots with segments (pngs
andtab
), background reads track (bw
)