This workflow can be used to demultiplex the raw output fastq files from the G4 instrument. The expected input is the unfiltered_fastq directory from the run folder 230215_G4-015_0050_1_OM1167O/. This workflow can either demultiplex each lane independently and put the outputs in different folders (for situations such as where different lanes use the same barcode for different samples). Or demultiplex and combine the output of the lanes together into a single folder (i.e. same samples are spread across the lanes. There is a 1 to 1 correspondence between barcode sequence and sample name).
Optionally, this workflow can run FastQC/MultiQC on the demultiplexed FASTQ files to generate FastQC/MultiQC reports.
sgdemux command.This workflow can be used directly with Nextflow Tower. This repo has an included nextflow_schema.json for generating a GUI form for the input of parameters.
You can download a tarball file containing an unfiltered_fastq dataset and corresponding samplesheets here. The file needs to be untar-ed before use.
Example command to run the workflow is below. Including the "-profile docker" requires docker and will pull the latest docker image containing the sgdemux at the first run to run the workflow. Remove this option if you want to use the sgdemux on your system, and can be called using the sgdemux command.
nextflow run sgdemux_folder_nf2/main.nf -params-file sgdemux_folder_nf2/params_folder.json -profile docker
Example input parameter files in json and yaml format are included in the repo. Below is the the content of the params_folder.yaml file.
fastq_source_folder: s3://singular-public-repo/example_raw_files/unfiltered_fastq/
file_name_root: Undetermined_
samplesheet: s3://singular-public-repo/example_raw_files/samplesheet.csv
output_dir_name: demuxed_file
allowed_mismatches: 3
min_delta: 1
out: s3://singulargenomics1/users/JYao/nf/temp_out/sgdemux11
lane_level: false
filter_control: true
nmask_threshold: 2
multiqc: true
fastq_source_folder:
file_name_root:
samplesheet:
output_dir_name:
out:
lane_level:
multiqc:
allowed_mismatches:
min_delta:
nmask_threshold:
filter_control:
Content type
Image
Digest
sha256:97a0305c1…
Size
581.5 MB
Last updated
over 3 years ago
docker pull omicpublic/fastqc_multiqc