Skip to content

Commit

Permalink
trying to figure multiple: true
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaspe committed Jul 19, 2024
1 parent ad9ec27 commit 72c3ab9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fastqc/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ argument_groups:
type: file
direction: input
multiple: true
description:
multiple_sep: ","
description: FASTQ file(s) to be analyzed.
required: true
example: input.fq

Expand All @@ -25,13 +26,15 @@ argument_groups:
- name: --html
type: file
direction: output
multiple: true
description: |
Create an HTML report of the results.
example: report_fastqc.html

- name: --zip
type: file
direction: output
multiple: true
description: |
Create an zip file with: html report, data, images, icons etc.
example: report_fastqc.html
Expand Down
2 changes: 2 additions & 0 deletions src/fastqc/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ fastqc \
# Retrives the directory of the input file
input_dir=$(dirname "$par_input")

#echo "input is: $par_input"

# Both outputs args passed
if [[ -n "$par_html" ]] && [[ -n "$par_zip" ]]; then
mv "$input_dir"/*.html "$par_html"
Expand Down
3 changes: 3 additions & 0 deletions src/fastqc/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ CACTTGTAAGGGCAGGCCCCCTTCACCCTCCCGCTCCTGGGGGANNNNNNNNNNANNNCGAGGCCCTGGGGTAGAGGGNN
@?@DDDDDDHHH?GH:?FCBGGB@C?DBEGIIIIAEF;FCGGI#########################################################
EOL

# Test 1: Run fastqc with default parameters


File renamed without changes.
4 changes: 4 additions & 0 deletions src/fastqc/test_data/input_2.fq
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@HWI-ST330:304:H045HADXX:1:1101:1111:61397
CACTTGTAAGGGCAGGCCCCCTTCACCCTCCCGCTCCTGGGGGANNNNNNNNNNANNNCGAGGCCCTGGGGTAGAGGGNNNNNNNNNNNNNNGATCTTGG
+
@?@DDDDDDHHH?GH:?FCBGGB@C?DBEGIIIIAEF;FCGGI#########################################################

0 comments on commit 72c3ab9

Please sign in to comment.