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

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

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE122nnn/GSE122649/suppl/GSE122649_RAW.tar" -O "GSE122649_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 "SRR8202236"
gz1="$(_compress_if_exists 'SRR8202236_1' || true)"
gz2="$(_compress_if_exists 'SRR8202236_2' || true)"
gzs="$(_compress_if_exists 'SRR8202236' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-21.fastq.gz"
fi

fasterq-dump --split-files "SRR8202237"
gz1="$(_compress_if_exists 'SRR8202237_1' || true)"
gz2="$(_compress_if_exists 'SRR8202237_2' || true)"
gzs="$(_compress_if_exists 'SRR8202237' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-22.fastq.gz"
fi

fasterq-dump --split-files "SRR8202238"
gz1="$(_compress_if_exists 'SRR8202238_1' || true)"
gz2="$(_compress_if_exists 'SRR8202238_2' || true)"
gzs="$(_compress_if_exists 'SRR8202238' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-23.fastq.gz"
fi

fasterq-dump --split-files "SRR8202239"
gz1="$(_compress_if_exists 'SRR8202239_1' || true)"
gz2="$(_compress_if_exists 'SRR8202239_2' || true)"
gzs="$(_compress_if_exists 'SRR8202239' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-24.fastq.gz"
fi

fasterq-dump --split-files "SRR8202240"
gz1="$(_compress_if_exists 'SRR8202240_1' || true)"
gz2="$(_compress_if_exists 'SRR8202240_2' || true)"
gzs="$(_compress_if_exists 'SRR8202240' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-27.fastq.gz"
fi

fasterq-dump --split-files "SRR8202241"
gz1="$(_compress_if_exists 'SRR8202241_1' || true)"
gz2="$(_compress_if_exists 'SRR8202241_2' || true)"
gzs="$(_compress_if_exists 'SRR8202241' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-28.fastq.gz"
fi

fasterq-dump --split-files "SRR8202242"
gz1="$(_compress_if_exists 'SRR8202242_1' || true)"
gz2="$(_compress_if_exists 'SRR8202242_2' || true)"
gzs="$(_compress_if_exists 'SRR8202242' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-29.fastq.gz"
fi

fasterq-dump --split-files "SRR8202243"
gz1="$(_compress_if_exists 'SRR8202243_1' || true)"
gz2="$(_compress_if_exists 'SRR8202243_2' || true)"
gzs="$(_compress_if_exists 'SRR8202243' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-30.fastq.gz"
fi

fasterq-dump --split-files "SRR8202244"
gz1="$(_compress_if_exists 'SRR8202244_1' || true)"
gz2="$(_compress_if_exists 'SRR8202244_2' || true)"
gzs="$(_compress_if_exists 'SRR8202244' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-31.fastq.gz"
fi

fasterq-dump --split-files "SRR8202245"
gz1="$(_compress_if_exists 'SRR8202245_1' || true)"
gz2="$(_compress_if_exists 'SRR8202245_2' || true)"
gzs="$(_compress_if_exists 'SRR8202245' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-32.fastq.gz"
fi

fasterq-dump --split-files "SRR8202246"
gz1="$(_compress_if_exists 'SRR8202246_1' || true)"
gz2="$(_compress_if_exists 'SRR8202246_2' || true)"
gzs="$(_compress_if_exists 'SRR8202246' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-35.fastq.gz"
fi

fasterq-dump --split-files "SRR8202247"
gz1="$(_compress_if_exists 'SRR8202247_1' || true)"
gz2="$(_compress_if_exists 'SRR8202247_2' || true)"
gzs="$(_compress_if_exists 'SRR8202247' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-36.fastq.gz"
fi

fasterq-dump --split-files "SRR8202248"
gz1="$(_compress_if_exists 'SRR8202248_1' || true)"
gz2="$(_compress_if_exists 'SRR8202248_2' || true)"
gzs="$(_compress_if_exists 'SRR8202248' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-37.fastq.gz"
fi

fasterq-dump --split-files "SRR8202249"
gz1="$(_compress_if_exists 'SRR8202249_1' || true)"
gz2="$(_compress_if_exists 'SRR8202249_2' || true)"
gzs="$(_compress_if_exists 'SRR8202249' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-38.fastq.gz"
fi

fasterq-dump --split-files "SRR8202250"
gz1="$(_compress_if_exists 'SRR8202250_1' || true)"
gz2="$(_compress_if_exists 'SRR8202250_2' || true)"
gzs="$(_compress_if_exists 'SRR8202250' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-39.fastq.gz"
fi

fasterq-dump --split-files "SRR8202251"
gz1="$(_compress_if_exists 'SRR8202251_1' || true)"
gz2="$(_compress_if_exists 'SRR8202251_2' || true)"
gzs="$(_compress_if_exists 'SRR8202251' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-40.fastq.gz"
fi

fasterq-dump --split-files "SRR8202252"
gz1="$(_compress_if_exists 'SRR8202252_1' || true)"
gz2="$(_compress_if_exists 'SRR8202252_2' || true)"
gzs="$(_compress_if_exists 'SRR8202252' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-41.fastq.gz"
fi

fasterq-dump --split-files "SRR8202253"
gz1="$(_compress_if_exists 'SRR8202253_1' || true)"
gz2="$(_compress_if_exists 'SRR8202253_2' || true)"
gzs="$(_compress_if_exists 'SRR8202253' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-42.fastq.gz"
fi

fasterq-dump --split-files "SRR8202254"
gz1="$(_compress_if_exists 'SRR8202254_1' || true)"
gz2="$(_compress_if_exists 'SRR8202254_2' || true)"
gzs="$(_compress_if_exists 'SRR8202254' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-43.fastq.gz"
fi

fasterq-dump --split-files "SRR8202255"
gz1="$(_compress_if_exists 'SRR8202255_1' || true)"
gz2="$(_compress_if_exists 'SRR8202255_2' || true)"
gzs="$(_compress_if_exists 'SRR8202255' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-44.fastq.gz"
fi

fasterq-dump --split-files "SRR8202256"
gz1="$(_compress_if_exists 'SRR8202256_1' || true)"
gz2="$(_compress_if_exists 'SRR8202256_2' || true)"
gzs="$(_compress_if_exists 'SRR8202256' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-45.fastq.gz"
fi

fasterq-dump --split-files "SRR8202257"
gz1="$(_compress_if_exists 'SRR8202257_1' || true)"
gz2="$(_compress_if_exists 'SRR8202257_2' || true)"
gzs="$(_compress_if_exists 'SRR8202257' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-46.fastq.gz"
fi

fasterq-dump --split-files "SRR8202258"
gz1="$(_compress_if_exists 'SRR8202258_1' || true)"
gz2="$(_compress_if_exists 'SRR8202258_2' || true)"
gzs="$(_compress_if_exists 'SRR8202258' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-47.fastq.gz"
fi

fasterq-dump --split-files "SRR8202259"
gz1="$(_compress_if_exists 'SRR8202259_1' || true)"
gz2="$(_compress_if_exists 'SRR8202259_2' || true)"
gzs="$(_compress_if_exists 'SRR8202259' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-48.fastq.gz"
fi

fasterq-dump --split-files "SRR8202260"
gz1="$(_compress_if_exists 'SRR8202260_1' || true)"
gz2="$(_compress_if_exists 'SRR8202260_2' || true)"
gzs="$(_compress_if_exists 'SRR8202260' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-75.fastq.gz"
fi

fasterq-dump --split-files "SRR8202261"
gz1="$(_compress_if_exists 'SRR8202261_1' || true)"
gz2="$(_compress_if_exists 'SRR8202261_2' || true)"
gzs="$(_compress_if_exists 'SRR8202261' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "ALS-76.fastq.gz"
fi

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

fasterq-dump --split-files "SRR8202263"
gz1="$(_compress_if_exists 'SRR8202263_1' || true)"
gz2="$(_compress_if_exists 'SRR8202263_2' || true)"
gzs="$(_compress_if_exists 'SRR8202263' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "Co-2.fastq.gz"
fi

fasterq-dump --split-files "SRR8202264"
gz1="$(_compress_if_exists 'SRR8202264_1' || true)"
gz2="$(_compress_if_exists 'SRR8202264_2' || true)"
gzs="$(_compress_if_exists 'SRR8202264' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-3.fastq.gz"
fi

fasterq-dump --split-files "SRR8202265"
gz1="$(_compress_if_exists 'SRR8202265_1' || true)"
gz2="$(_compress_if_exists 'SRR8202265_2' || true)"
gzs="$(_compress_if_exists 'SRR8202265' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-4.fastq.gz"
fi

fasterq-dump --split-files "SRR8202266"
gz1="$(_compress_if_exists 'SRR8202266_1' || true)"
gz2="$(_compress_if_exists 'SRR8202266_2' || true)"
gzs="$(_compress_if_exists 'SRR8202266' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-5.fastq.gz"
fi

fasterq-dump --split-files "SRR8202267"
gz1="$(_compress_if_exists 'SRR8202267_1' || true)"
gz2="$(_compress_if_exists 'SRR8202267_2' || true)"
gzs="$(_compress_if_exists 'SRR8202267' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-6.fastq.gz"
fi

fasterq-dump --split-files "SRR8202268"
gz1="$(_compress_if_exists 'SRR8202268_1' || true)"
gz2="$(_compress_if_exists 'SRR8202268_2' || true)"
gzs="$(_compress_if_exists 'SRR8202268' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-7.fastq.gz"
fi

fasterq-dump --split-files "SRR8202269"
gz1="$(_compress_if_exists 'SRR8202269_1' || true)"
gz2="$(_compress_if_exists 'SRR8202269_2' || true)"
gzs="$(_compress_if_exists 'SRR8202269' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-8.fastq.gz"
fi

fasterq-dump --split-files "SRR8202270"
gz1="$(_compress_if_exists 'SRR8202270_1' || true)"
gz2="$(_compress_if_exists 'SRR8202270_2' || true)"
gzs="$(_compress_if_exists 'SRR8202270' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-20.fastq.gz"
fi

fasterq-dump --split-files "SRR8202271"
gz1="$(_compress_if_exists 'SRR8202271_1' || true)"
gz2="$(_compress_if_exists 'SRR8202271_2' || true)"
gzs="$(_compress_if_exists 'SRR8202271' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-21.fastq.gz"
fi

fasterq-dump --split-files "SRR8202272"
gz1="$(_compress_if_exists 'SRR8202272_1' || true)"
gz2="$(_compress_if_exists 'SRR8202272_2' || true)"
gzs="$(_compress_if_exists 'SRR8202272' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-22.fastq.gz"
fi

fasterq-dump --split-files "SRR8202273"
gz1="$(_compress_if_exists 'SRR8202273_1' || true)"
gz2="$(_compress_if_exists 'SRR8202273_2' || true)"
gzs="$(_compress_if_exists 'SRR8202273' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gzs" ]; then
  mv -f "$gzs" "Co-23.fastq.gz"
fi


# Option B: Direct download (larger .sra files)
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202236/SRR8202236"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202237/SRR8202237"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202238/SRR8202238"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202239/SRR8202239"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202240/SRR8202240"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202241/SRR8202241"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202242/SRR8202242"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202243/SRR8202243"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202244/SRR8202244"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202245/SRR8202245"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202246/SRR8202246"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202247/SRR8202247"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202248/SRR8202248"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202249/SRR8202249"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202250/SRR8202250"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202251/SRR8202251"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202252/SRR8202252"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202253/SRR8202253"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202254/SRR8202254"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202255/SRR8202255"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202256/SRR8202256"
curl -L -O -C - "https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-14/SRR008/202/SRR8202257.sralite.1"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202258/SRR8202258"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202259/SRR8202259"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202260/SRR8202260"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202261/SRR8202261"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202262/SRR8202262"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202263/SRR8202263"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202264/SRR8202264"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202265/SRR8202265"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202266/SRR8202266"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202267/SRR8202267"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202268/SRR8202268"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202269/SRR8202269"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202270/SRR8202270"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202271/SRR8202271"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202272/SRR8202272"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202273/SRR8202273"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202236/SRR8202236"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202237/SRR8202237"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202238/SRR8202238"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202239/SRR8202239"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202240/SRR8202240"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202241/SRR8202241"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202242/SRR8202242"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202243/SRR8202243"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202244/SRR8202244"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202246/SRR8202246"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202247/SRR8202247"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202248/SRR8202248"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202249/SRR8202249"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202250/SRR8202250"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202252/SRR8202252"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202253/SRR8202253"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202255/SRR8202255"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202256/SRR8202256"
curl -L -O -C - "https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos5/sra-pub-zq-14/SRR008/202/SRR8202257.sralite.1"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202258/SRR8202258"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202261/SRR8202261"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202262/SRR8202262"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202270/SRR8202270"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202271/SRR8202271"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202272/SRR8202272"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202273/SRR8202273"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202263/SRR8202263"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202264/SRR8202264"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202265/SRR8202265"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202266/SRR8202266"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202267/SRR8202267"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202268/SRR8202268"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202269/SRR8202269"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202245/SRR8202245"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202251/SRR8202251"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202254/SRR8202254"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202259/SRR8202259"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR8202260/SRR8202260"

echo "Download complete. Files saved to $OUTDIR"