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

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

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE276nnn/GSE276985/suppl/GSE276985_RAW.tar" -O "GSE276985_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 "SRR30639377"
gz1="$(_compress_if_exists 'SRR30639377_1' || true)"
gz2="$(_compress_if_exists 'SRR30639377_2' || true)"
gzs="$(_compress_if_exists 'SRR30639377' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Old-Age_HumanBrain-65G-IP_S21_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639378"
gz1="$(_compress_if_exists 'SRR30639378_1' || true)"
gz2="$(_compress_if_exists 'SRR30639378_2' || true)"
gzs="$(_compress_if_exists 'SRR30639378' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Old-Age_HumanBrain-67G-IP_S22_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639379"
gz1="$(_compress_if_exists 'SRR30639379_1' || true)"
gz2="$(_compress_if_exists 'SRR30639379_2' || true)"
gzs="$(_compress_if_exists 'SRR30639379' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Old-Age_HumanBrain-105G-IP_S23_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639380"
gz1="$(_compress_if_exists 'SRR30639380_1' || true)"
gz2="$(_compress_if_exists 'SRR30639380_2' || true)"
gzs="$(_compress_if_exists 'SRR30639380' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Mid-Age_HumanBrain-20G-IP_S19_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639381"
gz1="$(_compress_if_exists 'SRR30639381_1' || true)"
gz2="$(_compress_if_exists 'SRR30639381_2' || true)"
gzs="$(_compress_if_exists 'SRR30639381' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Mid-Age_HumanBrain-26G-IP_S20_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639382"
gz1="$(_compress_if_exists 'SRR30639382_1' || true)"
gz2="$(_compress_if_exists 'SRR30639382_2' || true)"
gzs="$(_compress_if_exists 'SRR30639382' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Mid-Age_HumanBrain-131G-IP_S24_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639383"
gz1="$(_compress_if_exists 'SRR30639383_1' || true)"
gz2="$(_compress_if_exists 'SRR30639383_2' || true)"
gzs="$(_compress_if_exists 'SRR30639383' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_NK_Unstress-KR_C_IP_S42_L004_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639384"
gz1="$(_compress_if_exists 'SRR30639384_1' || true)"
gz2="$(_compress_if_exists 'SRR30639384_2' || true)"
gzs="$(_compress_if_exists 'SRR30639384' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Ngn2_Stress-KR_2A_G3BP1_S_IP_S44_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639385"
gz1="$(_compress_if_exists 'SRR30639385_1' || true)"
gz2="$(_compress_if_exists 'SRR30639385_2' || true)"
gzs="$(_compress_if_exists 'SRR30639385' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Ngn2_Stress-KR_2B_G3BP1_S_IP_S46_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639386"
gz1="$(_compress_if_exists 'SRR30639386_1' || true)"
gz2="$(_compress_if_exists 'SRR30639386_2' || true)"
gzs="$(_compress_if_exists 'SRR30639386' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Ngn2_Unstress-KR_1A_G3BP1_U_IP_S40_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639387"
gz1="$(_compress_if_exists 'SRR30639387_1' || true)"
gz2="$(_compress_if_exists 'SRR30639387_2' || true)"
gzs="$(_compress_if_exists 'SRR30639387' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "G3BP1_Ngn2_Unstress-8A_IP_S10_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639388"
gz1="$(_compress_if_exists 'SRR30639388_1' || true)"
gz2="$(_compress_if_exists 'SRR30639388_2' || true)"
gzs="$(_compress_if_exists 'SRR30639388' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_NK_Unstress-KR_IP5_S19_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639389"
gz1="$(_compress_if_exists 'SRR30639389_1' || true)"
gz2="$(_compress_if_exists 'SRR30639389_2' || true)"
gzs="$(_compress_if_exists 'SRR30639389' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_NK_Unstress-KR_IP6_S20_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639390"
gz1="$(_compress_if_exists 'SRR30639390_1' || true)"
gz2="$(_compress_if_exists 'SRR30639390_2' || true)"
gzs="$(_compress_if_exists 'SRR30639390' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_Ngn2_Stress-KR_IP3_S17_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639391"
gz1="$(_compress_if_exists 'SRR30639391_1' || true)"
gz2="$(_compress_if_exists 'SRR30639391_2' || true)"
gzs="$(_compress_if_exists 'SRR30639391' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_Ngn2_Stress-KR_IP4_S18_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639392"
gz1="$(_compress_if_exists 'SRR30639392_1' || true)"
gz2="$(_compress_if_exists 'SRR30639392_2' || true)"
gzs="$(_compress_if_exists 'SRR30639392' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_Ngn2_Unstress-KR_IP1_S15_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639393"
gz1="$(_compress_if_exists 'SRR30639393_1' || true)"
gz2="$(_compress_if_exists 'SRR30639393_2' || true)"
gzs="$(_compress_if_exists 'SRR30639393' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "Caprin1_Ngn2_Unstress-KR_IP2_S16_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639394"
gz1="$(_compress_if_exists 'SRR30639394_1' || true)"
gz2="$(_compress_if_exists 'SRR30639394_2' || true)"
gzs="$(_compress_if_exists 'SRR30639394' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Old-Age_MouseBrain-1T_IP_S15_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639395"
gz1="$(_compress_if_exists 'SRR30639395_1' || true)"
gz2="$(_compress_if_exists 'SRR30639395_2' || true)"
gzs="$(_compress_if_exists 'SRR30639395' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Old-Age_MouseBrain-2T_IP_S16_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639396"
gz1="$(_compress_if_exists 'SRR30639396_1' || true)"
gz2="$(_compress_if_exists 'SRR30639396_2' || true)"
gzs="$(_compress_if_exists 'SRR30639396' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Mid-Age_MouseBrain-3T_IP_S17_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639397"
gz1="$(_compress_if_exists 'SRR30639397_1' || true)"
gz2="$(_compress_if_exists 'SRR30639397_2' || true)"
gzs="$(_compress_if_exists 'SRR30639397' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Mid-Age_MouseBrain-4T_IP_S18_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639398"
gz1="$(_compress_if_exists 'SRR30639398_1' || true)"
gz2="$(_compress_if_exists 'SRR30639398_2' || true)"
gzs="$(_compress_if_exists 'SRR30639398' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Young-Age_MouseBrain-3A-IP_S29_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639399"
gz1="$(_compress_if_exists 'SRR30639399_1' || true)"
gz2="$(_compress_if_exists 'SRR30639399_2' || true)"
gzs="$(_compress_if_exists 'SRR30639399' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Young-Age_MouseBrain-3B-IP_S30_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639400"
gz1="$(_compress_if_exists 'SRR30639400_1' || true)"
gz2="$(_compress_if_exists 'SRR30639400_2' || true)"
gzs="$(_compress_if_exists 'SRR30639400' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Young-Age_MouseBrain-3C-IP_S31_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639401"
gz1="$(_compress_if_exists 'SRR30639401_1' || true)"
gz2="$(_compress_if_exists 'SRR30639401_2' || true)"
gzs="$(_compress_if_exists 'SRR30639401' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Young-Age_MouseBrain-3D-IP_S32_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639402"
gz1="$(_compress_if_exists 'SRR30639402_1' || true)"
gz2="$(_compress_if_exists 'SRR30639402_2' || true)"
gzs="$(_compress_if_exists 'SRR30639402' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_NK_Unstress-ip1_S2_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639403"
gz1="$(_compress_if_exists 'SRR30639403_1' || true)"
gz2="$(_compress_if_exists 'SRR30639403_2' || true)"
gzs="$(_compress_if_exists 'SRR30639403' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_NK_Unstress-ip2_S4_L001_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639404"
gz1="$(_compress_if_exists 'SRR30639404_1' || true)"
gz2="$(_compress_if_exists 'SRR30639404_2' || true)"
gzs="$(_compress_if_exists 'SRR30639404' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Ngn2_Stress-705508_S37_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639405"
gz1="$(_compress_if_exists 'SRR30639405_1' || true)"
gz2="$(_compress_if_exists 'SRR30639405_2' || true)"
gzs="$(_compress_if_exists 'SRR30639405' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Ngn2_Stress-707508_S34_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639406"
gz1="$(_compress_if_exists 'SRR30639406_1' || true)"
gz2="$(_compress_if_exists 'SRR30639406_2' || true)"
gzs="$(_compress_if_exists 'SRR30639406' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Ngn2_Unstress-705507_S41_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR30639407"
gz1="$(_compress_if_exists 'SRR30639407_1' || true)"
gz2="$(_compress_if_exists 'SRR30639407_2' || true)"
gzs="$(_compress_if_exists 'SRR30639407' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "TDP-43_Ngn2_Unstress-707507_S38_R1_001.fastq.gz"
fi


# Option B: Direct download (larger .sra files)
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639377/SRR30639377"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639378/SRR30639378"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639379/SRR30639379"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639380/SRR30639380"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639381/SRR30639381"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639382/SRR30639382"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639383/SRR30639383"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639384/SRR30639384"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639385/SRR30639385"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639386/SRR30639386"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639387/SRR30639387"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639388/SRR30639388"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639389/SRR30639389"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639390/SRR30639390"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639391/SRR30639391"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639392/SRR30639392"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639393/SRR30639393"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639394/SRR30639394"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639395/SRR30639395"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639396/SRR30639396"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639397/SRR30639397"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639398/SRR30639398"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639399/SRR30639399"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639400/SRR30639400"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639401/SRR30639401"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639402/SRR30639402"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639403/SRR30639403"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639404/SRR30639404"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639405/SRR30639405"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639406/SRR30639406"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639407/SRR30639407"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639390/SRR30639390"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639391/SRR30639391"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639392/SRR30639392"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639393/SRR30639393"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639388/SRR30639388"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639389/SRR30639389"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639382/SRR30639382"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639380/SRR30639380"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639381/SRR30639381"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639384/SRR30639384"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639385/SRR30639385"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639387/SRR30639387"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639386/SRR30639386"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639383/SRR30639383"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639379/SRR30639379"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639377/SRR30639377"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639378/SRR30639378"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639396/SRR30639396"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639397/SRR30639397"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639404/SRR30639404"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639405/SRR30639405"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639406/SRR30639406"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639407/SRR30639407"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639402/SRR30639402"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639403/SRR30639403"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639394/SRR30639394"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639395/SRR30639395"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639398/SRR30639398"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639399/SRR30639399"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639400/SRR30639400"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR30639401/SRR30639401"

echo "Download complete. Files saved to $OUTDIR"