#!/usr/bin/env bash
# Bulk download script for GSE89036
# Generated from Yeo Lab Publications Database
# Total files: 106

OUTDIR="GSE89036"
mkdir -p "$OUTDIR"
cd "$OUTDIR"

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89036/suppl/GSE89036_MP_H3K27me3.bw" -O "GSE89036_MP_H3K27me3.bw"
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89036/suppl/GSE89036_Memory_H3K27me3.bw" -O "GSE89036_Memory_H3K27me3.bw"
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89036/suppl/GSE89036_TE_H3K27me3.bw" -O "GSE89036_TE_H3K27me3.bw"
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89036/suppl/GSE89036_TN_H3K27me3.bw" -O "GSE89036_TN_H3K27me3.bw"

# --- SRA run files ---
# Tip: use 'fasterq-dump' from SRA Toolkit for FASTQ conversion
#      with optional renaming to original submitted FASTQ names.
# Set to 1 to rename SRR outputs (e.g. SRR_1.fastq.gz -> sample_R1.fastq.gz)
RENAME_SRA_TO_ORIGINAL=1

_compress_if_exists() {
  local stem="$1"
  if [ -f "${stem}.fastq" ]; then
    gzip -f "${stem}.fastq"
    echo "${stem}.fastq.gz"
    return 0
  fi
  if [ -f "${stem}.fq" ]; then
    gzip -f "${stem}.fq"
    echo "${stem}.fq.gz"
    return 0
  fi
  return 1
}

# Option A: Download via SRA Toolkit (recommended)
fasterq-dump --split-files "SRR4437313"
gz1="$(_compress_if_exists 'SRR4437313_1' || true)"
gz2="$(_compress_if_exists 'SRR4437313_2' || true)"
gzs="$(_compress_if_exists 'SRR4437313' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_ATAC-seq_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437314"
gz1="$(_compress_if_exists 'SRR4437314_1' || true)"
gz2="$(_compress_if_exists 'SRR4437314_2' || true)"
gzs="$(_compress_if_exists 'SRR4437314' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_ATAC-seq_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437315"
gz1="$(_compress_if_exists 'SRR4437315_1' || true)"
gz2="$(_compress_if_exists 'SRR4437315_2' || true)"
gzs="$(_compress_if_exists 'SRR4437315' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_ATAC-seq_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437316"
gz1="$(_compress_if_exists 'SRR4437316_1' || true)"
gz2="$(_compress_if_exists 'SRR4437316_2' || true)"
gzs="$(_compress_if_exists 'SRR4437316' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_ATAC-seq_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437317"
gz1="$(_compress_if_exists 'SRR4437317_1' || true)"
gz2="$(_compress_if_exists 'SRR4437317_2' || true)"
gzs="$(_compress_if_exists 'SRR4437317' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_ATAC-seq_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437318"
gz1="$(_compress_if_exists 'SRR4437318_1' || true)"
gz2="$(_compress_if_exists 'SRR4437318_2' || true)"
gzs="$(_compress_if_exists 'SRR4437318' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_ATAC-seq_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437319"
gz1="$(_compress_if_exists 'SRR4437319_1' || true)"
gz2="$(_compress_if_exists 'SRR4437319_2' || true)"
gzs="$(_compress_if_exists 'SRR4437319' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_ATAC-seq_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437320"
gz1="$(_compress_if_exists 'SRR4437320_1' || true)"
gz2="$(_compress_if_exists 'SRR4437320_2' || true)"
gzs="$(_compress_if_exists 'SRR4437320' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_ATAC-seq_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437321"
gz1="$(_compress_if_exists 'SRR4437321_1' || true)"
gz2="$(_compress_if_exists 'SRR4437321_2' || true)"
gzs="$(_compress_if_exists 'SRR4437321' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K4me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437322"
gz1="$(_compress_if_exists 'SRR4437322_1' || true)"
gz2="$(_compress_if_exists 'SRR4437322_2' || true)"
gzs="$(_compress_if_exists 'SRR4437322' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K4me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437323"
gz1="$(_compress_if_exists 'SRR4437323_1' || true)"
gz2="$(_compress_if_exists 'SRR4437323_2' || true)"
gzs="$(_compress_if_exists 'SRR4437323' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K4me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437324"
gz1="$(_compress_if_exists 'SRR4437324_1' || true)"
gz2="$(_compress_if_exists 'SRR4437324_2' || true)"
gzs="$(_compress_if_exists 'SRR4437324' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K4me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437325"
gz1="$(_compress_if_exists 'SRR4437325_1' || true)"
gz2="$(_compress_if_exists 'SRR4437325_2' || true)"
gzs="$(_compress_if_exists 'SRR4437325' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K4me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437326"
gz1="$(_compress_if_exists 'SRR4437326_1' || true)"
gz2="$(_compress_if_exists 'SRR4437326_2' || true)"
gzs="$(_compress_if_exists 'SRR4437326' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K4me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437327"
gz1="$(_compress_if_exists 'SRR4437327_1' || true)"
gz2="$(_compress_if_exists 'SRR4437327_2' || true)"
gzs="$(_compress_if_exists 'SRR4437327' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K4me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437328"
gz1="$(_compress_if_exists 'SRR4437328_1' || true)"
gz2="$(_compress_if_exists 'SRR4437328_2' || true)"
gzs="$(_compress_if_exists 'SRR4437328' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K4me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437329"
gz1="$(_compress_if_exists 'SRR4437329_1' || true)"
gz2="$(_compress_if_exists 'SRR4437329_2' || true)"
gzs="$(_compress_if_exists 'SRR4437329' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K4me1_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437330"
gz1="$(_compress_if_exists 'SRR4437330_1' || true)"
gz2="$(_compress_if_exists 'SRR4437330_2' || true)"
gzs="$(_compress_if_exists 'SRR4437330' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K4me1_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437331"
gz1="$(_compress_if_exists 'SRR4437331_1' || true)"
gz2="$(_compress_if_exists 'SRR4437331_2' || true)"
gzs="$(_compress_if_exists 'SRR4437331' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K4me1_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437332"
gz1="$(_compress_if_exists 'SRR4437332_1' || true)"
gz2="$(_compress_if_exists 'SRR4437332_2' || true)"
gzs="$(_compress_if_exists 'SRR4437332' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K4me1_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437333"
gz1="$(_compress_if_exists 'SRR4437333_1' || true)"
gz2="$(_compress_if_exists 'SRR4437333_2' || true)"
gzs="$(_compress_if_exists 'SRR4437333' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K4me1_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437334"
gz1="$(_compress_if_exists 'SRR4437334_1' || true)"
gz2="$(_compress_if_exists 'SRR4437334_2' || true)"
gzs="$(_compress_if_exists 'SRR4437334' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K4me1_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437335"
gz1="$(_compress_if_exists 'SRR4437335_1' || true)"
gz2="$(_compress_if_exists 'SRR4437335_2' || true)"
gzs="$(_compress_if_exists 'SRR4437335' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K4me1_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437336"
gz1="$(_compress_if_exists 'SRR4437336_1' || true)"
gz2="$(_compress_if_exists 'SRR4437336_2' || true)"
gzs="$(_compress_if_exists 'SRR4437336' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K4me1_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437337"
gz1="$(_compress_if_exists 'SRR4437337_1' || true)"
gz2="$(_compress_if_exists 'SRR4437337_2' || true)"
gzs="$(_compress_if_exists 'SRR4437337' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K27me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437338"
gz1="$(_compress_if_exists 'SRR4437338_1' || true)"
gz2="$(_compress_if_exists 'SRR4437338_2' || true)"
gzs="$(_compress_if_exists 'SRR4437338' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K27me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437339"
gz1="$(_compress_if_exists 'SRR4437339_1' || true)"
gz2="$(_compress_if_exists 'SRR4437339_2' || true)"
gzs="$(_compress_if_exists 'SRR4437339' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K27me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437340"
gz1="$(_compress_if_exists 'SRR4437340_1' || true)"
gz2="$(_compress_if_exists 'SRR4437340_2' || true)"
gzs="$(_compress_if_exists 'SRR4437340' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K27me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437341"
gz1="$(_compress_if_exists 'SRR4437341_1' || true)"
gz2="$(_compress_if_exists 'SRR4437341_2' || true)"
gzs="$(_compress_if_exists 'SRR4437341' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K27me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437342"
gz1="$(_compress_if_exists 'SRR4437342_1' || true)"
gz2="$(_compress_if_exists 'SRR4437342_2' || true)"
gzs="$(_compress_if_exists 'SRR4437342' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K27me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437343"
gz1="$(_compress_if_exists 'SRR4437343_1' || true)"
gz2="$(_compress_if_exists 'SRR4437343_2' || true)"
gzs="$(_compress_if_exists 'SRR4437343' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K27me3_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437344"
gz1="$(_compress_if_exists 'SRR4437344_1' || true)"
gz2="$(_compress_if_exists 'SRR4437344_2' || true)"
gzs="$(_compress_if_exists 'SRR4437344' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K27me3_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437345"
gz1="$(_compress_if_exists 'SRR4437345_1' || true)"
gz2="$(_compress_if_exists 'SRR4437345_2' || true)"
gzs="$(_compress_if_exists 'SRR4437345' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K27ac_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437346"
gz1="$(_compress_if_exists 'SRR4437346_1' || true)"
gz2="$(_compress_if_exists 'SRR4437346_2' || true)"
gzs="$(_compress_if_exists 'SRR4437346' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_H3K27ac_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437347"
gz1="$(_compress_if_exists 'SRR4437347_1' || true)"
gz2="$(_compress_if_exists 'SRR4437347_2' || true)"
gzs="$(_compress_if_exists 'SRR4437347' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K27ac_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437348"
gz1="$(_compress_if_exists 'SRR4437348_1' || true)"
gz2="$(_compress_if_exists 'SRR4437348_2' || true)"
gzs="$(_compress_if_exists 'SRR4437348' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_H3K27ac_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437349"
gz1="$(_compress_if_exists 'SRR4437349_1' || true)"
gz2="$(_compress_if_exists 'SRR4437349_2' || true)"
gzs="$(_compress_if_exists 'SRR4437349' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K27ac_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437350"
gz1="$(_compress_if_exists 'SRR4437350_1' || true)"
gz2="$(_compress_if_exists 'SRR4437350_2' || true)"
gzs="$(_compress_if_exists 'SRR4437350' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_H3K27ac_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437351"
gz1="$(_compress_if_exists 'SRR4437351_1' || true)"
gz2="$(_compress_if_exists 'SRR4437351_2' || true)"
gzs="$(_compress_if_exists 'SRR4437351' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K27ac_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437352"
gz1="$(_compress_if_exists 'SRR4437352_1' || true)"
gz2="$(_compress_if_exists 'SRR4437352_2' || true)"
gzs="$(_compress_if_exists 'SRR4437352' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_H3K27ac_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437353"
gz1="$(_compress_if_exists 'SRR4437353_1' || true)"
gz2="$(_compress_if_exists 'SRR4437353_2' || true)"
gzs="$(_compress_if_exists 'SRR4437353' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_Input_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437354"
gz1="$(_compress_if_exists 'SRR4437354_1' || true)"
gz2="$(_compress_if_exists 'SRR4437354_2' || true)"
gzs="$(_compress_if_exists 'SRR4437354' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TN_Input_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437355"
gz1="$(_compress_if_exists 'SRR4437355_1' || true)"
gz2="$(_compress_if_exists 'SRR4437355_2' || true)"
gzs="$(_compress_if_exists 'SRR4437355' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_Input_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437356"
gz1="$(_compress_if_exists 'SRR4437356_1' || true)"
gz2="$(_compress_if_exists 'SRR4437356_2' || true)"
gzs="$(_compress_if_exists 'SRR4437356' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "TE_Input_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437357"
gz1="$(_compress_if_exists 'SRR4437357_1' || true)"
gz2="$(_compress_if_exists 'SRR4437357_2' || true)"
gzs="$(_compress_if_exists 'SRR4437357' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_Input_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437358"
gz1="$(_compress_if_exists 'SRR4437358_1' || true)"
gz2="$(_compress_if_exists 'SRR4437358_2' || true)"
gzs="$(_compress_if_exists 'SRR4437358' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "MP_Input_rep2.fastq.gz"
fi

fasterq-dump --split-files "SRR4437359"
gz1="$(_compress_if_exists 'SRR4437359_1' || true)"
gz2="$(_compress_if_exists 'SRR4437359_2' || true)"
gzs="$(_compress_if_exists 'SRR4437359' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_Input_rep1.fastq.gz"
fi

fasterq-dump --split-files "SRR4437360"
gz1="$(_compress_if_exists 'SRR4437360_1' || true)"
gz2="$(_compress_if_exists 'SRR4437360_2' || true)"
gzs="$(_compress_if_exists 'SRR4437360' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Memory_Input_rep2.fastq.gz"
fi


# Option B: Direct download (larger .sra files)
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437313/SRR4437313"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437314/SRR4437314"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437315/SRR4437315"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437316/SRR4437316"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437317/SRR4437317"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437318/SRR4437318"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437319/SRR4437319"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437320/SRR4437320"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437321/SRR4437321"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437322/SRR4437322"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437323/SRR4437323"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437324/SRR4437324"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437325/SRR4437325"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437326/SRR4437326"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437327/SRR4437327"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437328/SRR4437328"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437329/SRR4437329"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437330/SRR4437330"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437331/SRR4437331"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437332/SRR4437332"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437333/SRR4437333"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437334/SRR4437334"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437335/SRR4437335"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437336/SRR4437336"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437337/SRR4437337"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437338/SRR4437338"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437339/SRR4437339"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437340/SRR4437340"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437341/SRR4437341"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437342/SRR4437342"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437343/SRR4437343"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437344/SRR4437344"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437345/SRR4437345"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437346/SRR4437346"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437347/SRR4437347"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437348/SRR4437348"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437349/SRR4437349"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437350/SRR4437350"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437351/SRR4437351"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437352/SRR4437352"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437353/SRR4437353"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437354/SRR4437354"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437355/SRR4437355"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437356/SRR4437356"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437357/SRR4437357"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437358/SRR4437358"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437359/SRR4437359"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437360/SRR4437360"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437351/SRR4437351"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437352/SRR4437352"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437343/SRR4437343"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437344/SRR4437344"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437335/SRR4437335"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437336/SRR4437336"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437327/SRR4437327"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437328/SRR4437328"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437359/SRR4437359"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437360/SRR4437360"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437349/SRR4437349"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437350/SRR4437350"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437341/SRR4437341"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437342/SRR4437342"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437333/SRR4437333"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437334/SRR4437334"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437325/SRR4437325"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437326/SRR4437326"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437357/SRR4437357"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437358/SRR4437358"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437329/SRR4437329"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437339/SRR4437339"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437341/SRR4437341"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437342/SRR4437342"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437347/SRR4437347"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437348/SRR4437348"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437339/SRR4437339"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437340/SRR4437340"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437331/SRR4437331"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437332/SRR4437332"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437323/SRR4437323"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437324/SRR4437324"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437355/SRR4437355"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437356/SRR4437356"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437345/SRR4437345"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437346/SRR4437346"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437337/SRR4437337"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437338/SRR4437338"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437329/SRR4437329"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437330/SRR4437330"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437321/SRR4437321"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437322/SRR4437322"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437353/SRR4437353"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437354/SRR4437354"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437319/SRR4437319"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437320/SRR4437320"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437317/SRR4437317"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437318/SRR4437318"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437318/SRR4437318"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437320/SRR4437320"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437315/SRR4437315"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437316/SRR4437316"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437313/SRR4437313"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR4437314/SRR4437314"

echo "Download complete. Files saved to $OUTDIR"