# REST ChIP-seq analysedataset: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE49570dataset: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE49570
mkdir ~/data/ncbivdb-config -s /repository/user/main/public/root=~/data/ncbimkdir ~/data/workcd ~/data/workx
ls -l# download REST_ChIPSeqfastq-dump --split-files SRR948187#aligneer de reads van fastq file tov het referentiegenoombowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 SRR948187_1.fastq -S ChIP_REST.sam#converteer naar bam filesamtools view -S -b ChIP_REST.sam > ChIP_REST.bamls -l#sorteer en indexeer bam filesamtools sort -O bam -o ChIP_REST.sorted.bam ChIP_REST.bam samtools index ChIP_REST.sorted.bam# download input DNAfastq-dump --split-files SRR948188#aligneer de reads van fastq file tov het referentiegenoombowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 SRR948188_1.fastq -S Input_DNA.sam#converteer naar bam filesamtools view -S -b Input_DNA.sam > Input_DNA.bam#sorteer en indexeer bam filesamtools sort -O bam -o Input_DNA.sorted.bam Input_DNA.bam samtools index Input_DNA.sorted.bamls -l#bepalen van significante pieken (commando werd ook aangepast naar q = 0.05 ter vergelijking)macs2 callpeak -t ChIP_REST.sorted.bam -c Input_DNA.sorted.bam --outdir macs2_REST -n REST -g mm -q 0.0005ls macs2_RESThead macs2_REST/REST_peaks.narrowPeak#tellen van aantal piekenwc -l macs2_REST/REST_peaks.narrowPeak