sc2-sequencing/illumina
2021-04-13 10:06:32 -06:00
..
dl-fastqs.sh Add Illumina Basespace FASTQ downloader script 2021-03-26 14:04:50 -06:00
Project.toml Create fastq sorting script 2021-04-07 15:04:47 -06:00
README.md Create README.md 2021-04-01 09:59:35 -06:00
sort-miseq.jl Rename rename-fastqs.jl to sort-miseq.jl 2021-04-13 10:05:59 -06:00
sort-nextseq.jl Add script to sort NextSeq runs 2021-04-13 10:06:32 -06:00

Illumina

This script downloads all FASTQs associated with a specific Run ID from Illumina's Basespace.

Usage

To be run in Cygwin

$ dl-fastqs.sh

The script will prompt for a Run ID. Copy the Run ID from the URL in Illumina Basespace.

Illumina Basespace

Note that Ctrl+V does not paste in either Cygwin or Windows terminals. Use right-click, instead.

Installation

This script requires Cygwin. The install process is complicated thanks to requiring native features of both Windows and Cygwin.

  1. Download and install Cygwin
    1. Select "Just Me" when asked who to install for
    2. Find and add the latest version of the "git" and "xargs" packages
    3. All other default options will work
  2. Press Win+X, then I to open a new PowerShell window
  3. Run wget "https://api.bintray.com/content/basespace/BaseSpaceCLI-EarlyAccess-BIN/latest/\$latest/amd64-windows/bs.exe?bt_package=latest" -O $env:LOCALAPPDATA\Microsoft\WindowsApps\bs.exe
  4. Close PowerShell
  5. Open Cygwin Console and run
$ BS=$(cygpath "C:\Users\\$USER\AppData\Local\Microsoft\WindowsApps\bs.exe")
$ $BS auth
  1. Copy the given link, navigate to it in a browser, and login to Illumina Basespace
  2. In Cygwin console now run
$ git clone https://github.com/MillironX/wphl-bioinformatics.git
$ cp wphl-bioinformatics/illumina/dl-fastqs.sh ~
$ chmod +x dl-fastqs.sh
  1. Right-click the Windows desktop, and click "New | Shortcut..."
  2. Type C:\cygwin64\bin\bash.exe and click Next
  3. Type Download Illumina Run or something else memorable and click "Finish"
  4. Right-click the newly created shortcut and click Properties
  5. In the Target textbox, add --login dl-fastqs.sh (including the space) to the existing text
  6. Click OK