csv2fasta

Description

Convert two columns from a CSV file to FASTA entries. The CSV file can
contain an optional header and each row (other than the header) becomes
a single FASTA record. One of the two columns will be used as the names
for the FASTA entries, while the other become the sequences. The sequences
column must only contain characters that are valid IUPAC notation for
nucleotides or a group thereof (wildcard characters).

Type

python_script

License

MIT

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
output: "$id.$key.output.fasta"  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/craftbox.git \  
  -revision v0.3.3 \  
  -main-script target/nextflow/csv2fasta/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
--header
boolean_true

CSV dialect options

Name
Type & Properties
--delimiter
string
--quote_character
string

CSV column arguments

Name
Type & Properties
--sequence_column
string
--name_column
string
--sequence_column_index
integer
--name_column_index
integer

Outputs

Name
Type & Properties
--output
file
output

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.