# Chip-seq analysis## introductionAs our initial paper did not contain any additional data for ChIP-Seq, we attempted to find a transcription factor (TF)that was enriched in our initial paper. We found one named myeloid cell nuclear differentiation antigen (MNDA), howeverthere were no relevant ChIP-Seq data for this TF. Instead we then looked into finding ChIP-Seq data that is associated with myeloid leukemia. In this case we found the following paper that is referenced in the introduction of our main notebook. In this paper they look at GATA expression in Acute Myeloid Leukemia Cells.As our initial paper did not contain any additional data for ChIP-Seq, we attempted to find a transcription factor (TF) that was enriched in our initial paper. We found one named myeloid cell nuclear differentiation antigen (MNDA), however there were no relevant ChIP-Seq data for this TF. Instead we then looked into finding ChIP-Seq data that is associated with myeloid leukemia. In this case we found the following paper that is referenced in the introduction of our main notebook. In this paper they look at GATA expression in Acute Myeloid Leukemia Cells.
# In order to download the data from NCBI we need to generate a NCBI directory, and use an SRA toolkit.mkdir ~/data/ncbi2vdb-config -s /repository/user/main/public/root=~/data/ncbi2# Here we are creating our own seperate directory and redirecting to this directory for the downloads.mkdir ~/data/work2cd ~/data/work2# Using the SRR identifier that we located on the SRA page of our samples,we download the data using the SRA toolkit.fastq-dump --split-files SRR772110fastq-dump --split-files SRR772113# Now we rename the fastq files generated to a more indicative name. mv SRR772110_1.fastq CHIP_GATA_1.fastqmv SRR772113_1.fastq CHIP_IgG.fastq# Next we check the files have been renamed correctly. cd ~/data/work2ls# In the following commands we perform aligning the sequence reads to a reference genome. # Our reference sequence is an IgG control instead of an input control as this is what was used in the paper.bowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 CHIP_GATA_1.fastq -S CHIP_GATA2_1.sambowtie2-align -x /mnt/nfs/data/resources/bowtie2/hg19 CHIP_IgG.fastq -S CHIP_IgG.sam# The generated files from bowtie2 require to be saved as SAM format which is the most convenient for further analyses.# For our continued analyses, we convert the SAM file format to BAM files using samtools.samtools view -h -S -b CHIP_GATA2_1.sam > CHIP_GATA2_1.bamsamtools view -h -S -b CHIP_IgG.sam > CHIP_IgG.bam# Next we sort our alignments and specify the file output format as a bam file with the -O.samtools sort -O bam -o CHIP_GATA2_1_sorted.bam CHIP_GATA2_1.bamsamtools sort -O bam -o CHIP_IgG_sorted.bam CHIP_IgG.bam# Here we index our sorted bam files using samtools. samtools index CHIP_GATA2_1_sorted.bamsamtools index CHIP_IgG_sorted.bam# Next we create a new working directory that we will use for Model-based Analysis of ChIP-Seq (MACS).# We use this to identify transcription factor binding sites and later check the peaks using igv.mkdir macs2_GATA2 # We use our sorted GATA and IgG control bam files for peak-calling from alignment results. The -t indicates the file# that we want to be compared to the -c which is our control file. We name the output file as macs2_GATA2 and the string name as # GATA2. We use -g hs (2.7E9) size for the mappable human genome, and a q-value cut-off of 0.005.macs2 callpeak -t CHIP_GATA2_1_sorted.bam -c CHIP_IgG_sorted.bam --outdir macs2_GATA2 -n GATA2 -g hs -q 0.005# Next we head the first 10 results.head macs2_GATA2/GATA2_peaks.narrowPeak# Here we check the count number of the peaks. cat macs2_GATA2/GATA2_peaks.narrowPeak |wc -lmkdir /mnt/storage/r0425222/work2/fuzznuccd /mnt/storage/r0425222/work2/fuzznuclsln -sf /mnt/nfs/data/chr20.fafuzznuc -sequence chr20.fa -pattern AGATCTTA -rformat gff -outfile GATA_chr20_fuzznuck.gffwc -l GATA_chr20_fuzznuck.gff