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

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

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE157nnn/GSE157049/suppl/GSE157049_normed_liver.txt.gz" -O "GSE157049_normed_liver.txt.gz"

# --- 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 "SRR12539831"
gz1="$(_compress_if_exists 'SRR12539831_1' || true)"
gz2="$(_compress_if_exists 'SRR12539831_2' || true)"
gzs="$(_compress_if_exists 'SRR12539831' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1362_WTSal_JVN3_S3_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1362_WTSal_JVN3_S3_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539832"
gz1="$(_compress_if_exists 'SRR12539832_1' || true)"
gz2="$(_compress_if_exists 'SRR12539832_2' || true)"
gzs="$(_compress_if_exists 'SRR12539832' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4354_WTSal_JVN1_S1_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4354_WTSal_JVN1_S1_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539833"
gz1="$(_compress_if_exists 'SRR12539833_1' || true)"
gz2="$(_compress_if_exists 'SRR12539833_2' || true)"
gzs="$(_compress_if_exists 'SRR12539833' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4357_WTSal_JVN2_S2_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4357_WTSal_JVN2_S2_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539834"
gz1="$(_compress_if_exists 'SRR12539834_1' || true)"
gz2="$(_compress_if_exists 'SRR12539834_2' || true)"
gzs="$(_compress_if_exists 'SRR12539834' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1087_WTMet_JVN6_S6_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1087_WTMet_JVN6_S6_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539835"
gz1="$(_compress_if_exists 'SRR12539835_1' || true)"
gz2="$(_compress_if_exists 'SRR12539835_2' || true)"
gzs="$(_compress_if_exists 'SRR12539835' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4359_WTMet_JVN4_S4_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4359_WTMet_JVN4_S4_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539836"
gz1="$(_compress_if_exists 'SRR12539836_1' || true)"
gz2="$(_compress_if_exists 'SRR12539836_2' || true)"
gzs="$(_compress_if_exists 'SRR12539836' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4360_WTMet_JVN5_S5_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4360_WTMet_JVN5_S5_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539837"
gz1="$(_compress_if_exists 'SRR12539837_1' || true)"
gz2="$(_compress_if_exists 'SRR12539837_2' || true)"
gzs="$(_compress_if_exists 'SRR12539837' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1268_AASal_JVN8_S8_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1268_AASal_JVN8_S8_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539838"
gz1="$(_compress_if_exists 'SRR12539838_1' || true)"
gz2="$(_compress_if_exists 'SRR12539838_2' || true)"
gzs="$(_compress_if_exists 'SRR12539838' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1269_AASal_JVN9_S9_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1269_AASal_JVN9_S9_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539839"
gz1="$(_compress_if_exists 'SRR12539839_1' || true)"
gz2="$(_compress_if_exists 'SRR12539839_2' || true)"
gzs="$(_compress_if_exists 'SRR12539839' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1289_AASal_JVN7_S7_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1289_AASal_JVN7_S7_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539840"
gz1="$(_compress_if_exists 'SRR12539840_1' || true)"
gz2="$(_compress_if_exists 'SRR12539840_2' || true)"
gzs="$(_compress_if_exists 'SRR12539840' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1202_AAMet_JVN12_S12_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1202_AAMet_JVN12_S12_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539841"
gz1="$(_compress_if_exists 'SRR12539841_1' || true)"
gz2="$(_compress_if_exists 'SRR12539841_2' || true)"
gzs="$(_compress_if_exists 'SRR12539841' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1277_AAMet_JVN10_S10_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1277_AAMet_JVN10_S10_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539842"
gz1="$(_compress_if_exists 'SRR12539842_1' || true)"
gz2="$(_compress_if_exists 'SRR12539842_2' || true)"
gzs="$(_compress_if_exists 'SRR12539842' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1367_AAMet_JVN11_S11_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1367_AAMet_JVN11_S11_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539843"
gz1="$(_compress_if_exists 'SRR12539843_1' || true)"
gz2="$(_compress_if_exists 'SRR12539843_2' || true)"
gzs="$(_compress_if_exists 'SRR12539843' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1038_TSCSal_JVN13_S13_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1038_TSCSal_JVN13_S13_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539844"
gz1="$(_compress_if_exists 'SRR12539844_1' || true)"
gz2="$(_compress_if_exists 'SRR12539844_2' || true)"
gzs="$(_compress_if_exists 'SRR12539844' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1364_TSCSal_JVN14_S14_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1364_TSCSal_JVN14_S14_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539845"
gz1="$(_compress_if_exists 'SRR12539845_1' || true)"
gz2="$(_compress_if_exists 'SRR12539845_2' || true)"
gzs="$(_compress_if_exists 'SRR12539845' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1291_TSCMet_JVN17_S17_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1291_TSCMet_JVN17_S17_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539846"
gz1="$(_compress_if_exists 'SRR12539846_1' || true)"
gz2="$(_compress_if_exists 'SRR12539846_2' || true)"
gzs="$(_compress_if_exists 'SRR12539846' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1369_TSCMet_JVN15_S15_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1369_TSCMet_JVN15_S15_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539847"
gz1="$(_compress_if_exists 'SRR12539847_1' || true)"
gz2="$(_compress_if_exists 'SRR12539847_2' || true)"
gzs="$(_compress_if_exists 'SRR12539847' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1373_TSCMet_JVN16_S16_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1373_TSCMet_JVN16_S16_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539848"
gz1="$(_compress_if_exists 'SRR12539848_1' || true)"
gz2="$(_compress_if_exists 'SRR12539848_2' || true)"
gzs="$(_compress_if_exists 'SRR12539848' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1039_ATSal_JVN18_S18_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1039_ATSal_JVN18_S18_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539849"
gz1="$(_compress_if_exists 'SRR12539849_1' || true)"
gz2="$(_compress_if_exists 'SRR12539849_2' || true)"
gzs="$(_compress_if_exists 'SRR12539849' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1406_ATSal_JVN20_S20_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1406_ATSal_JVN20_S20_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539850"
gz1="$(_compress_if_exists 'SRR12539850_1' || true)"
gz2="$(_compress_if_exists 'SRR12539850_2' || true)"
gzs="$(_compress_if_exists 'SRR12539850' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1069_ATSal_JVN19_S19_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1069_ATSal_JVN19_S19_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539851"
gz1="$(_compress_if_exists 'SRR12539851_1' || true)"
gz2="$(_compress_if_exists 'SRR12539851_2' || true)"
gzs="$(_compress_if_exists 'SRR12539851' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1408_ATMet_JVN22_S22_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1408_ATMet_JVN22_S22_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539852"
gz1="$(_compress_if_exists 'SRR12539852_1' || true)"
gz2="$(_compress_if_exists 'SRR12539852_2' || true)"
gzs="$(_compress_if_exists 'SRR12539852' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1071_ATMet_JVN23_S23_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1071_ATMet_JVN23_S23_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539853"
gz1="$(_compress_if_exists 'SRR12539853_1' || true)"
gz2="$(_compress_if_exists 'SRR12539853_2' || true)"
gzs="$(_compress_if_exists 'SRR12539853' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "1407_ATMet_JVN21_S21_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "1407_ATMet_JVN21_S21_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539854"
gz1="$(_compress_if_exists 'SRR12539854_1' || true)"
gz2="$(_compress_if_exists 'SRR12539854_2' || true)"
gzs="$(_compress_if_exists 'SRR12539854' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4355_AdelSal_JVN24_S24_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4355_AdelSal_JVN24_S24_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539855"
gz1="$(_compress_if_exists 'SRR12539855_1' || true)"
gz2="$(_compress_if_exists 'SRR12539855_2' || true)"
gzs="$(_compress_if_exists 'SRR12539855' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4356_AdelSal_JVN25_S25_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4356_AdelSal_JVN25_S25_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539856"
gz1="$(_compress_if_exists 'SRR12539856_1' || true)"
gz2="$(_compress_if_exists 'SRR12539856_2' || true)"
gzs="$(_compress_if_exists 'SRR12539856' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4363_AdelSal_JVN26_S26_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4363_AdelSal_JVN26_S26_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539857"
gz1="$(_compress_if_exists 'SRR12539857_1' || true)"
gz2="$(_compress_if_exists 'SRR12539857_2' || true)"
gzs="$(_compress_if_exists 'SRR12539857' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4364_AdelMet_JVN27_S27_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4364_AdelMet_JVN27_S27_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539858"
gz1="$(_compress_if_exists 'SRR12539858_1' || true)"
gz2="$(_compress_if_exists 'SRR12539858_2' || true)"
gzs="$(_compress_if_exists 'SRR12539858' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4365_AdelMet_JVN28_S28_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4365_AdelMet_JVN28_S28_R2_001.fastq.gz"
fi

fasterq-dump --split-files "SRR12539859"
gz1="$(_compress_if_exists 'SRR12539859_1' || true)"
gz2="$(_compress_if_exists 'SRR12539859_2' || true)"
gzs="$(_compress_if_exists 'SRR12539859' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "4330_AdelMet_JVN29_S29_R1_001.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "4330_AdelMet_JVN29_S29_R2_001.fastq.gz"
fi


# Option B: Direct download (larger .sra files)
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539831/SRR12539831"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539832/SRR12539832"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539833/SRR12539833"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539834/SRR12539834"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539835/SRR12539835"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539836/SRR12539836"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539837/SRR12539837"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539838/SRR12539838"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539839/SRR12539839"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539840/SRR12539840"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539841/SRR12539841"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539842/SRR12539842"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539843/SRR12539843"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539844/SRR12539844"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539845/SRR12539845"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539846/SRR12539846"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539847/SRR12539847"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539848/SRR12539848"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539849/SRR12539849"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539850/SRR12539850"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539851/SRR12539851"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539852/SRR12539852"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539853/SRR12539853"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539854/SRR12539854"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539855/SRR12539855"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539856/SRR12539856"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539857/SRR12539857"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539858/SRR12539858"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539859/SRR12539859"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539843/SRR12539843"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539848/SRR12539848"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539850/SRR12539850"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539852/SRR12539852"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539834/SRR12539834"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539840/SRR12539840"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539837/SRR12539837"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539838/SRR12539838"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539841/SRR12539841"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539839/SRR12539839"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539845/SRR12539845"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539831/SRR12539831"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539844/SRR12539844"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539842/SRR12539842"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539846/SRR12539846"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539847/SRR12539847"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539849/SRR12539849"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539853/SRR12539853"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539851/SRR12539851"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539859/SRR12539859"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539832/SRR12539832"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539854/SRR12539854"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539855/SRR12539855"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539833/SRR12539833"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539835/SRR12539835"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539836/SRR12539836"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539856/SRR12539856"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539857/SRR12539857"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR12539858/SRR12539858"

echo "Download complete. Files saved to $OUTDIR"