Call variants directly from ChIP-seq or other target-enrichment assays
291
Sapper is a bioinformatics algorithm to call variants directly from single ChIP-seq, ATAC-seq or other similar target-enrichment genomics assay.
docker pull fooliu/sapper
First, cd to the working directory containing ChIP-seq alignment files such as chip-seq-file.bam and control-seq-file.bam. Then
samtools view -q 30 -F 4 -F 256 -F 2048 -b chip-seq-file.bam -o chip-seq-file_clean.bam
samtools view -q 30 -F 4 -F 256 -F 2048 -b control-seq-file.bam -o control-seq-file_clean.bam
samtools sort IP_clean.bam IP_clean_sorted
samtools sort CTRL_clean.bam CTRL_clean_sorted
macs2 callpeak -f BAMPE -t IP_clean_sort.bam -c CTRL_clean_sort.bam -n MyFactor
sort -k1,1 -k2,2n MyFactor_peaks.narrowPeak > MyFactor_peaks.sorted.bed
samtools view -b IP_clean_sorted.bam -L MyFactor_peaks.sorted.bed -o IP_peaks.bam
samtools view -b CTRL_clean_sorted.bam -L MyFactor_peaks.sorted.bed -o CTRL_peaks.bam
docker run --rm -v $PWD:/data/ fooliu/sapper call -b /data/MyFactor_peaks.sorted.bed -t /data/IP_peaks.bam -c /data/CTRL_peaks.bam -o /data/MyFactor.vcf
The first part -v $PWD:/data/ will mount the CURRENT directory $PWD to /data/ in the container, so please don't forget to add /data/ to the path of input files with -b, -t, and/or -c, and don't forget to set the -o option to /data/. The final outputs will be directly written into the CURRENT directory. Extra Sapper options can be modified or added after docker run --rm -v $PWD:/data/ fooliu/sapper. The ENTRYPOINT (or the default command when running the container) has been set as macs2.
This Docker image is maintained and uploaded by Tao Liu [email protected].
Content type
Image
Digest
Size
363.4 MB
Last updated
over 7 years ago
docker pull fooliu/sapper