Files
craftbox/target/nextflow/csv2fasta/nextflow_schema.json
CI dcf61f0448 Build branch main with version main (a80fa3e)
Build pipeline: viash-hub.craftbox.main-q4xsw

Source commit: a80fa3ef02

Source message: `move_files_to_directory`: add support for preserving symbolic links (#13)
2025-06-25 13:27:43 +00:00

116 lines
4.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "csv2fasta",
"description": "Convert two columns from a CSV file to FASTA entries. The CSV file can\ncontain an optional header and each row (other than the header) becomes\na single FASTA record. One of the two columns will be used as the names\nfor the FASTA entries, while the other become the sequences. The sequences\ncolumn must only contain characters that are valid IUPAC notation for \nnucleotides or a group thereof (wildcard characters).\n",
"type": "object",
"$defs": {
"inputs": {
"title": "Inputs",
"type": "object",
"description": "No description",
"properties": {
"input": {
"type": "string",
"format": "path",
"exists": true,
"description": "CSV file to be processed.",
"help_text": "Type: `file`, multiple: `False`, required, direction: `input`, example: `\"barcodes.csv\"`. "
},
"header": {
"type": "boolean",
"description": "Parse the first line of the CSV file as a header.\n",
"help_text": "Type: `boolean_true`, multiple: `False`, default: `false`. ",
"default": false
}
}
},
"outputs": {
"title": "Outputs",
"type": "object",
"description": "No description",
"properties": {
"output": {
"type": "string",
"format": "path",
"description": "Output fasta file.",
"help_text": "Type: `file`, multiple: `False`, default: `\"$id.$key.output.fasta\"`, direction: `output`, example: `\"barcodes.fasta\"`. ",
"default": "$id.$key.output.fasta"
}
}
},
"csv dialect options": {
"title": "CSV dialect options",
"type": "object",
"description": "Options that can be used to override the automatically detected\ndialect of the CSV file.\n",
"properties": {
"delimiter": {
"type": "string",
"description": "Overwrite the column delimiter character.\n",
"help_text": "Type: `string`, multiple: `False`. "
},
"quote_character": {
"type": "string",
"description": "Overwrite the character used to denote the start and end of a quoted item.\n",
"help_text": "Type: `string`, multiple: `False`. "
}
}
},
"csv column arguments": {
"title": "CSV column arguments",
"type": "object",
"description": "Parameters for the selection of columns from the CSV file.\nOnly required when your CSV file contains more than 2 columns,\notherwise the first column will be used for the FASTA header\nand the second for the FASTA nucleotide sequences. This default\ncan still be overwritten by using the options below.\n",
"properties": {
"sequence_column": {
"type": "string",
"description": "Name of the column containing the sequences",
"help_text": "Type: `string`, multiple: `False`. "
},
"name_column": {
"type": "string",
"description": "Name of the column describing the FASTA headers",
"help_text": "Type: `string`, multiple: `False`. "
},
"sequence_column_index": {
"type": "integer",
"description": "Index of the column to use as the FASTA sequences, counter from the left and\nstarting from 0",
"help_text": "Type: `integer`, multiple: `False`. "
},
"name_column_index": {
"type": "integer",
"description": "Index of the column to use as the FASTA headers, counter from the left and\nstarting from 0",
"help_text": "Type: `integer`, multiple: `False`. "
}
}
},
"nextflow input-output arguments": {
"title": "Nextflow input-output arguments",
"type": "object",
"description": "Input/output parameters for Nextflow itself. Please note that both publishDir and publish_dir are supported but at least one has to be configured.",
"properties": {
"publish_dir": {
"type": "string",
"description": "Path to an output directory.",
"help_text": "Type: `string`, multiple: `False`, required, example: `\"output/\"`. "
}
}
}
},
"allOf": [
{
"$ref": "#/$defs/inputs"
},
{
"$ref": "#/$defs/outputs"
},
{
"$ref": "#/$defs/csv dialect options"
},
{
"$ref": "#/$defs/csv column arguments"
},
{
"$ref": "#/$defs/nextflow input-output arguments"
}
]
}