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

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

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE178nnn/GSE178259/suppl/GSE178259_RAW.tar" -O "GSE178259_RAW.tar"

# --- 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 "SRR14820418"
gz1="$(_compress_if_exists 'SRR14820418_1' || true)"
gz2="$(_compress_if_exists 'SRR14820418_2' || true)"
gzs="$(_compress_if_exists 'SRR14820418' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-Cit-P-1_S5_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820419"
gz1="$(_compress_if_exists 'SRR14820419_1' || true)"
gz2="$(_compress_if_exists 'SRR14820419_2' || true)"
gzs="$(_compress_if_exists 'SRR14820419' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-Cit-P-2_S6_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820420"
gz1="$(_compress_if_exists 'SRR14820420_1' || true)"
gz2="$(_compress_if_exists 'SRR14820420_2' || true)"
gzs="$(_compress_if_exists 'SRR14820420' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-Cit-T-1_S1_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820421"
gz1="$(_compress_if_exists 'SRR14820421_1' || true)"
gz2="$(_compress_if_exists 'SRR14820421_2' || true)"
gzs="$(_compress_if_exists 'SRR14820421' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-Cit-T-2_S2_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820422"
gz1="$(_compress_if_exists 'SRR14820422_1' || true)"
gz2="$(_compress_if_exists 'SRR14820422_2' || true)"
gzs="$(_compress_if_exists 'SRR14820422' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-HpK-P-1_S7_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820423"
gz1="$(_compress_if_exists 'SRR14820423_1' || true)"
gz2="$(_compress_if_exists 'SRR14820423_2' || true)"
gzs="$(_compress_if_exists 'SRR14820423' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-HpK-P-2_S8_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820424"
gz1="$(_compress_if_exists 'SRR14820424_1' || true)"
gz2="$(_compress_if_exists 'SRR14820424_2' || true)"
gzs="$(_compress_if_exists 'SRR14820424' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-HpK-T-1_S3_L007_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR14820425"
gz1="$(_compress_if_exists 'SRR14820425_1' || true)"
gz2="$(_compress_if_exists 'SRR14820425_2' || true)"
gzs="$(_compress_if_exists 'SRR14820425' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "dd-HpK-T-2_S4_L007_R1_001.fastq.gz"
fi

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fasterq-dump --split-files "SRR14820441"
gz1="$(_compress_if_exists 'SRR14820441_1' || true)"
gz2="$(_compress_if_exists 'SRR14820441_2' || true)"
gzs="$(_compress_if_exists 'SRR14820441' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_1_CLIP_R2_S24_L002_R1_A01_B06.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_1_CLIP_R2_S24_L002_R2_A01_B06.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820443"
gz1="$(_compress_if_exists 'SRR14820443_1' || true)"
gz2="$(_compress_if_exists 'SRR14820443_2' || true)"
gzs="$(_compress_if_exists 'SRR14820443' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_2_CLIP_R2_S23_L002_R1_C01_D08.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_2_CLIP_R2_S23_L002_R2_C01_D08.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820445"
gz1="$(_compress_if_exists 'SRR14820445_1' || true)"
gz2="$(_compress_if_exists 'SRR14820445_2' || true)"
gzs="$(_compress_if_exists 'SRR14820445' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_3_CLIP_R2_S20_L002_R1_A04_F05.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_3_CLIP_R2_S20_L002_R2_A04_F05.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820447"
gz1="$(_compress_if_exists 'SRR14820447_1' || true)"
gz2="$(_compress_if_exists 'SRR14820447_2' || true)"
gzs="$(_compress_if_exists 'SRR14820447' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_4_CLIP_R2_S19_L002_R1_X2A_X2B.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_4_CLIP_R2_S19_L002_R2_X2A_X2B.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820449"
gz1="$(_compress_if_exists 'SRR14820449_1' || true)"
gz2="$(_compress_if_exists 'SRR14820449_2' || true)"
gzs="$(_compress_if_exists 'SRR14820449' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_1_INPUT_R2_S21_L002_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_1_INPUT_R2_S21_L002_R2.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820451"
gz1="$(_compress_if_exists 'SRR14820451_1' || true)"
gz2="$(_compress_if_exists 'SRR14820451_2' || true)"
gzs="$(_compress_if_exists 'SRR14820451' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_2_INPUT_R2_S22_L002_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_2_INPUT_R2_S22_L002_R2.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820453"
gz1="$(_compress_if_exists 'SRR14820453_1' || true)"
gz2="$(_compress_if_exists 'SRR14820453_2' || true)"
gzs="$(_compress_if_exists 'SRR14820453' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_3_INPUT_R2_S17_L002_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_3_INPUT_R2_S17_L002_R2.fastq.gz"
fi

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

fasterq-dump --split-files "SRR14820455"
gz1="$(_compress_if_exists 'SRR14820455_1' || true)"
gz2="$(_compress_if_exists 'SRR14820455_2' || true)"
gzs="$(_compress_if_exists 'SRR14820455' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "LIN28B_PHI_4_INPUT_R2_S18_L002_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "LIN28B_PHI_4_INPUT_R2_S18_L002_R2.fastq.gz"
fi


# Option B: Direct download (larger .sra files)
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820418/SRR14820418"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820419/SRR14820419"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820420/SRR14820420"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820421/SRR14820421"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820422/SRR14820422"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820423/SRR14820423"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820424/SRR14820424"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820425/SRR14820425"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820426/SRR14820426"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820427/SRR14820427"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820428/SRR14820428"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820429/SRR14820429"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820430/SRR14820430"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820431/SRR14820431"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820432/SRR14820432"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820433/SRR14820433"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820434/SRR14820434"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820435/SRR14820435"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820436/SRR14820436"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820437/SRR14820437"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820438/SRR14820438"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820439/SRR14820439"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820440/SRR14820440"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820441/SRR14820441"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820442/SRR14820442"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820443/SRR14820443"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820444/SRR14820444"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820445/SRR14820445"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820446/SRR14820446"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820447/SRR14820447"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820448/SRR14820448"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820449/SRR14820449"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820450/SRR14820450"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820451/SRR14820451"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820452/SRR14820452"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820453/SRR14820453"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820454/SRR14820454"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820455/SRR14820455"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820418/SRR14820418"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820419/SRR14820419"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820420/SRR14820420"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820421/SRR14820421"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820422/SRR14820422"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820423/SRR14820423"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820424/SRR14820424"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820425/SRR14820425"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820434/SRR14820434"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820435/SRR14820435"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820436/SRR14820436"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820427/SRR14820427"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820426/SRR14820426"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820429/SRR14820429"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820428/SRR14820428"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820440/SRR14820440"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820441/SRR14820441"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820448/SRR14820448"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820449/SRR14820449"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820442/SRR14820442"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820443/SRR14820443"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820450/SRR14820450"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820451/SRR14820451"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820444/SRR14820444"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820445/SRR14820445"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820452/SRR14820452"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820453/SRR14820453"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820446/SRR14820446"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820447/SRR14820447"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820454/SRR14820454"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820455/SRR14820455"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820437/SRR14820437"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820438/SRR14820438"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820439/SRR14820439"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820431/SRR14820431"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820430/SRR14820430"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820433/SRR14820433"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR14820432/SRR14820432"

echo "Download complete. Files saved to $OUTDIR"