-
Notifications
You must be signed in to change notification settings - Fork 9
Profile Options & Input Files
This section walks through the available parameters to customize your workflow.
❗ Note: Currently, the pipeline does not accept input files containing period marks .
in their naming convention.
Input files | File type | Description |
---|---|---|
metadata | .xlsx | Multi-sample metadata for upload to public repositories, example template in repo |
ref_fasta | .fasta | Reference genome to use for the liftoff_submission branch of the pipeline |
ref_gff | .gff | Reference GFF3 file to use for the liftoff_submission branch of the pipeline |
submission_config | .yaml | Configuration file for submitting to NCBI, sample versions can be found in repo |
All annotation workflows require single sample fasta input files. Input fasta files can contain multiple contigs or chromosomes, but all sequences in the file must come from the same specimen.
Input files | File type | Description |
---|---|---|
metadata | .xlsx | Multi-sample metadata & fastq paths for upload to public repositories, example template in repo |
submission_config | .yaml | Configuration file for submitting to NCBI, sample versions can be found in repo |
❗ Note: The pipeline has been tested with paired-end sequence data.
Example metadata file Link
The files required for GenBank submission will be stored in the test_output/submission_outputs/<sample_name>/submission_files/genbank/
directory. You can find information on how to submit these files to NCBI here.
Parameters can be customized from the command line or by modifying one of the following configuration files: standard.json, standard.yml or nextflow.config.
Parameters can be overridden during runtime by providing various flags to the nextflow
command.
Example: Modifying the path of the output directory
nextflow run main.nf -profile test,singularity --species virus --output_dir /path/to/output/dir
Certain parameters such as -profile
and pathogen type (--species virus
) are required, while others like --output_dir
can be specified optionally.
The complete list of parameters and the types of input that they require can be found in the Parameters page.
Default parameters can be overridden by making changes to either the standard.yml
or standard.json
files located in the ./params
directory. To modify the run with the updated parameters, use the --params-file
runtime parameter and specify which file contains the updated parameters.
Example:
nextflow run main.nf -profile test,singularity --species virus -params-file <standard_params.yml or standard_params.json>
Default parameters can be also be overridden by making changes to the nextflow.config file located in the project directory. By default, if the test
option is not provided during runtime, the run configuration will be read from the nextflow.config
file.
Within the nextflow pipeline the -profile
parameter is required to specify the computing environment of the run. The options of docker
, singularity
or conda
can passed in. The conda
environment is less stable than the docker
or singularity
. We recommend you choose docker
or singularity
when running the pipeline.
Optionally, the test
option can be specified in the -profile
parameter. If test
is not specified, parameters are read from the nextflow.config
file. The test params should remain the same for testing purposes.
You will want to define whether to run the full pipeline with submission or without submission using the --submission
and --annotation
flags. By default the pipeline will run both sub-workflows and submit to GenBank and SRA. If you want to submit to only SRA, specify --genbank false --sra
.
nextflow run main.nf -profile <singularity/docker/conda> --species virus --genbank --sra --submission_wait_time 5
You will want to define whether to run the full pipeline with submission or without submission using the --submission
and --annotation
flags. By default, the pipeline will run both sub-workflows. To only run the submission sub-workflow, specify --annotation false
By default the pipeline will submit to GenBank and SRA. If you want to submit to only SRA, specify --genbank false --sra
.
❗ Note: you can only submit raw files to SRA, not to Genbank.
nextflow run main.nf -profile <test,standard>,<singularity,docker> --species <virus,bacteria> --annotation false --sra --submission_wait_time 5
The submission component of the pipeline is adapted from SeqSender public database submission pipeline. It has been developed to allow the user to create a config file to select which databases they would like to upload to and allows for any possible metadata fields by using a YAML to pair the database's metadata fields with your personal metadata field columns. The requirements for this portion of the pipeline to run are listed below.
(A) Create Appropriate Accounts as needed for the SeqSender public database submission pipeline integrated into TOSTADAS:
-
NCBI: If uploading to NCBI archives such as BioSample/SRA/Genbank, you must complete the following steps:
- Create a center account: Contact the following e-mail for account creation:
[email protected]
and provide the following information:- Suggested center abbreviation (16 char max)
- Center name (full), center URL & mailing address (including country and postcode)
- Phone number (main phone for center or lab)
- Contact person (someone likely to remain at the location for an extended time)
- Contact email (ideally a service account monitored by several people)
- Whether you intend to submit via FTP or command line Aspera (ascp)
- Gain access to an upload directory: Following center account creation, a test area and a production area will be created. Deposit the XML file and related data files into a directory and follow the instructions SRA provides via email to indicate when files are ready to trigger the pipeline.
- Create a center account: Contact the following e-mail for account creation:
-
GISAID: GISAID support is not yet implemented but it may be added in the future.
(B) Config File Set-up:
- The template for the submission config file can be found in bin/config_files within the repo. This is where you can edit the various parameters you want to include in your submission. Read more at the SeqSender docs.
- You can find more information on how to setup your own submission config and additional information on fields in the following guide: Submission Config Guide.