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

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

# --- GEO supplementary files ---
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE164nnn/GSE164666/suppl/GSE164666_RAW.tar" -O "GSE164666_RAW.tar"
wget -nc "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE164nnn/GSE164666/suppl/GSE164666_counts_matrix.csv.gz" -O "GSE164666_counts_matrix.csv.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 "SRR13416240"
gz1="$(_compress_if_exists 'SRR13416240_1' || true)"
gz2="$(_compress_if_exists 'SRR13416240_2' || true)"
gzs="$(_compress_if_exists 'SRR13416240' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-1-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-1-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416241"
gz1="$(_compress_if_exists 'SRR13416241_1' || true)"
gz2="$(_compress_if_exists 'SRR13416241_2' || true)"
gzs="$(_compress_if_exists 'SRR13416241' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-2-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-2-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416242"
gz1="$(_compress_if_exists 'SRR13416242_1' || true)"
gz2="$(_compress_if_exists 'SRR13416242_2' || true)"
gzs="$(_compress_if_exists 'SRR13416242' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-3-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-3-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416243"
gz1="$(_compress_if_exists 'SRR13416243_1' || true)"
gz2="$(_compress_if_exists 'SRR13416243_2' || true)"
gzs="$(_compress_if_exists 'SRR13416243' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-4-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-4-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416244"
gz1="$(_compress_if_exists 'SRR13416244_1' || true)"
gz2="$(_compress_if_exists 'SRR13416244_2' || true)"
gzs="$(_compress_if_exists 'SRR13416244' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-5-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-5-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416245"
gz1="$(_compress_if_exists 'SRR13416245_1' || true)"
gz2="$(_compress_if_exists 'SRR13416245_2' || true)"
gzs="$(_compress_if_exists 'SRR13416245' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "WT-6-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "WT-6-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416246"
gz1="$(_compress_if_exists 'SRR13416246_1' || true)"
gz2="$(_compress_if_exists 'SRR13416246_2' || true)"
gzs="$(_compress_if_exists 'SRR13416246' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1-S34F-1-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "U2AF1-S34F-1-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416247"
gz1="$(_compress_if_exists 'SRR13416247_1' || true)"
gz2="$(_compress_if_exists 'SRR13416247_2' || true)"
gzs="$(_compress_if_exists 'SRR13416247' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1-S34F-2-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "U2AF1-S34F-2-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416248"
gz1="$(_compress_if_exists 'SRR13416248_1' || true)"
gz2="$(_compress_if_exists 'SRR13416248_2' || true)"
gzs="$(_compress_if_exists 'SRR13416248' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1-S34F-3-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "U2AF1-S34F-3-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416249"
gz1="$(_compress_if_exists 'SRR13416249_1' || true)"
gz2="$(_compress_if_exists 'SRR13416249_2' || true)"
gzs="$(_compress_if_exists 'SRR13416249' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2-P95L-1-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "SRSF2-P95L-1-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416250"
gz1="$(_compress_if_exists 'SRR13416250_1' || true)"
gz2="$(_compress_if_exists 'SRR13416250_2' || true)"
gzs="$(_compress_if_exists 'SRR13416250' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2-P95L-2-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "SRSF2-P95L-2-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416251"
gz1="$(_compress_if_exists 'SRR13416251_1' || true)"
gz2="$(_compress_if_exists 'SRR13416251_2' || true)"
gzs="$(_compress_if_exists 'SRR13416251' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2-P95L-3-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "SRSF2-P95L-3-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416252"
gz1="$(_compress_if_exists 'SRR13416252_1' || true)"
gz2="$(_compress_if_exists 'SRR13416252_2' || true)"
gzs="$(_compress_if_exists 'SRR13416252' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2-P95L-4-rnaseq_R1.fastq.gz"
fi
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz2" ]; then
  mv -f "$gz2" "SRSF2-P95L-4-rnaseq_R2.fastq.gz"
fi

fasterq-dump --split-files "SRR13416253"
gz1="$(_compress_if_exists 'SRR13416253_1' || true)"
gz2="$(_compress_if_exists 'SRR13416253_2' || true)"
gzs="$(_compress_if_exists 'SRR13416253' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.WT-1_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416254"
gz1="$(_compress_if_exists 'SRR13416254_1' || true)"
gz2="$(_compress_if_exists 'SRR13416254_2' || true)"
gzs="$(_compress_if_exists 'SRR13416254' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.WT-1_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416255"
gz1="$(_compress_if_exists 'SRR13416255_1' || true)"
gz2="$(_compress_if_exists 'SRR13416255_2' || true)"
gzs="$(_compress_if_exists 'SRR13416255' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.WT-2_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416256"
gz1="$(_compress_if_exists 'SRR13416256_1' || true)"
gz2="$(_compress_if_exists 'SRR13416256_2' || true)"
gzs="$(_compress_if_exists 'SRR13416256' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.WT-2_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416257"
gz1="$(_compress_if_exists 'SRR13416257_1' || true)"
gz2="$(_compress_if_exists 'SRR13416257_2' || true)"
gzs="$(_compress_if_exists 'SRR13416257' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.S34F-1_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416258"
gz1="$(_compress_if_exists 'SRR13416258_1' || true)"
gz2="$(_compress_if_exists 'SRR13416258_2' || true)"
gzs="$(_compress_if_exists 'SRR13416258' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.S34F-1_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416259"
gz1="$(_compress_if_exists 'SRR13416259_1' || true)"
gz2="$(_compress_if_exists 'SRR13416259_2' || true)"
gzs="$(_compress_if_exists 'SRR13416259' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.S34F-2_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416260"
gz1="$(_compress_if_exists 'SRR13416260_1' || true)"
gz2="$(_compress_if_exists 'SRR13416260_2' || true)"
gzs="$(_compress_if_exists 'SRR13416260' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "U2AF1_hpc.S34F-2_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416261"
gz1="$(_compress_if_exists 'SRR13416261_1' || true)"
gz2="$(_compress_if_exists 'SRR13416261_2' || true)"
gzs="$(_compress_if_exists 'SRR13416261' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.WT-1_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416262"
gz1="$(_compress_if_exists 'SRR13416262_1' || true)"
gz2="$(_compress_if_exists 'SRR13416262_2' || true)"
gzs="$(_compress_if_exists 'SRR13416262' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.WT-1_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416263"
gz1="$(_compress_if_exists 'SRR13416263_1' || true)"
gz2="$(_compress_if_exists 'SRR13416263_2' || true)"
gzs="$(_compress_if_exists 'SRR13416263' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.WT-2_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416264"
gz1="$(_compress_if_exists 'SRR13416264_1' || true)"
gz2="$(_compress_if_exists 'SRR13416264_2' || true)"
gzs="$(_compress_if_exists 'SRR13416264' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.WT-2_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416265"
gz1="$(_compress_if_exists 'SRR13416265_1' || true)"
gz2="$(_compress_if_exists 'SRR13416265_2' || true)"
gzs="$(_compress_if_exists 'SRR13416265' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.P95L-1_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416266"
gz1="$(_compress_if_exists 'SRR13416266_1' || true)"
gz2="$(_compress_if_exists 'SRR13416266_2' || true)"
gzs="$(_compress_if_exists 'SRR13416266' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.P95L-1_IP_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416267"
gz1="$(_compress_if_exists 'SRR13416267_1' || true)"
gz2="$(_compress_if_exists 'SRR13416267_2' || true)"
gzs="$(_compress_if_exists 'SRR13416267' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.P95L-2_INPUT_R1_001.fastq.gz"
fi

fasterq-dump --split-files "SRR13416268"
gz1="$(_compress_if_exists 'SRR13416268_1' || true)"
gz2="$(_compress_if_exists 'SRR13416268_2' || true)"
gzs="$(_compress_if_exists 'SRR13416268' || true)"
if [ "$RENAME_SRA_TO_ORIGINAL" = "1" ] && [ -n "$gz1" ]; then
  mv -f "$gz1" "SRSF2_hpc.P95L-2_IP_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/SRR13416240/SRR13416240"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416241/SRR13416241"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416242/SRR13416242"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416243/SRR13416243"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416244/SRR13416244"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416245/SRR13416245"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416246/SRR13416246"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416247/SRR13416247"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416248/SRR13416248"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416249/SRR13416249"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416250/SRR13416250"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416251/SRR13416251"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416252/SRR13416252"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416253/SRR13416253"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416254/SRR13416254"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416255/SRR13416255"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416256/SRR13416256"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416257/SRR13416257"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416258/SRR13416258"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416259/SRR13416259"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416260/SRR13416260"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416261/SRR13416261"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416262/SRR13416262"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416263/SRR13416263"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416264/SRR13416264"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416265/SRR13416265"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416266/SRR13416266"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416267/SRR13416267"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416268/SRR13416268"

# --- Additional data files ---
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416265/SRR13416265"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416266/SRR13416266"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416267/SRR13416267"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416268/SRR13416268"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416261/SRR13416261"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416262/SRR13416262"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416263/SRR13416263"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416264/SRR13416264"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416257/SRR13416257"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416258/SRR13416258"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416259/SRR13416259"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416260/SRR13416260"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416253/SRR13416253"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416254/SRR13416254"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416255/SRR13416255"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416256/SRR13416256"
curl -L -O -C - "https://sra-downloadb.be-md.ncbi.nlm.nih.gov/sos8/sra-pub-zq-818/SRR013/13416/SRR13416241/SRR13416241.lite.1"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416249/SRR13416249"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416250/SRR13416250"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416251/SRR13416251"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416252/SRR13416252"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416246/SRR13416246"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416247/SRR13416247"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416248/SRR13416248"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416240/SRR13416240"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416241/SRR13416241"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416242/SRR13416242"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416243/SRR13416243"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416244/SRR13416244"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416245/SRR13416245"
curl -L -O -C - "https://sra-pub-run-odp.s3.amazonaws.com/sra/SRR13416245/SRR13416245"

echo "Download complete. Files saved to $OUTDIR"