Running the pipeline - eresearchqut/ontvisc GitHub Wiki
-
Run the command:
nextflow run eresearchqut/ontvisc -profile {singularity, docker} --samplesheet index.csv
The first time the command runs, it will download the pipeline into your assets.
The source code can also be downloaded directly from GitHub using the git command:
git clone https://github.com/eresearchqut/ontvisc.git
-
Provide an index.csv file.
Create a comma separated file that will be the input for the workflow. By default the pipeline will look for a file called βindex.csvβ in the base directory but you can specify any file name using the--samplesheet [filename]
in the nextflow run command. This text file requires the following columns (which needs to be included as a header):sampleid,sample_files
sampleid will be the sample name that will be given to the files created by the pipeline
sample_path is the full path to the fastq files that the pipeline requires as starting inputThis is an example of an index.csv file which specifies the name and path of fastq.gz files for 2 samples. Specify the full path length for samples with a single fastq.gz file. If there are multiple fastq.gz files per sample, place them all in a single folder and the path can be specified on one line using an asterisk:
sampleid,sample_files MT212,/path_to_fastq_file_folder/*fastq.gz MT213,/path_to_fastq_file_folder/*fastq.gz
-
Specify a profile:
nextflow run eresearchqut/ontvisc -profile {singularity, docker} --samplesheet index_example.csv
setting the profile parameter to one of
docker
orsingularity
to suit your environment. -
Specify one analysis mode:
--analysis_mode {read classification, clustering, assembly, map2ref}
(see below for more details) -
To set additional parameters, you can either include these in your nextflow run command:
nextflow run eresearchqut/ontvisc -profile {singularity, docker} --samplesheet index_example.csv --adapter_trimming
or set them to true in the nextflow.config file.
params { adapter_trimming = true }
-
A test is provided to check if the pipeline was successfully installed. The test.fastq.gz file is derived from of a plant infected with Miscanthus sinensis mosaic virus. To use the test, run the following command, selecting the adequate profile (singularity/docker):
nextflow run eresearchqut/ontvisc -profile test,{singularity, docker}
The test requires 2 cpus at least 16Gb of memory to run and can be executed locally.
The command should take one minute to run and nextflow should output the following log:
If the installation is successful, it will generate a results/test folder with the folloiwng structure:
results/
βββ test
βββ assembly
β βββ blast_to_ref
β β βββ blastn_reference_vs_flye_assembly.txt
β βββ flye
β βββ test_flye_assembly.fasta
β βββ test_flye.fastq
β βββ test_flye.log
βββ preprocessing
β βββ test_preprocessed.fastq.gz
βββ qc
βββ nanoplot
βββ test_raw_NanoPlot-report.html