Skip to content

Commit

Permalink
Required Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaspe committed Aug 10, 2024
1 parent d0700ad commit d3cb54a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Empty file removed output.bam
Empty file.
11 changes: 6 additions & 5 deletions src/bedtools/bedtools_bamtofastq/config.vsh.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: bedtools_bamtofastq
namespace: bedtools
description: Conversion tool for extracting FASTQ records from sequence alignments in BAM format.
description: |
Conversion tool for extracting FASTQ records from sequence alignments in BAM format.
keywords: [Conversion ,BAM, FASTQ]
links:
documentation: https://bedtools.readthedocs.io/en/latest/content/tools/bamtofastq.html
repository: https://github.com/arq5x/bedtools2
references:
doi: 10.1093/bioinformatics/btq033
license: GPL-2.0, MIT
license: MIT
requirements:
commands: [bedtools]
authors:
Expand All @@ -25,19 +26,19 @@ argument_groups:

- name: Outputs
arguments:
- name: --output_fq
- name: --fastq
alternatives: -fq
direction: output
type: file
description: Output FASTQ file.
required: true

- name: --output_fq2
- name: --fastq2
alternatives: -fq2
type: file
direction: output
description: |
FASTQ for second end. Used if BAM contains paired-end data.
FASTQ for second end. Used if BAM contains paired-end data.
BAM should be sorted by query name is creating paired FASTQ.
- name: Options
Expand Down
4 changes: 2 additions & 2 deletions src/bedtools/bedtools_bamtofastq/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# Execute bedtools bamtofastq with the provided arguments
bedtools bamtofastq \
${par_tags:+-tags} \
${par_output_fq2:+-fq2 "$par_output_fq2"} \
${par_fastq2:+-fq2 "$par_fastq2"} \
-i "$par_input" \
-fq "$par_output_fq"
-fq "$par_fastq"


8 changes: 4 additions & 4 deletions src/bedtools/bedtools_bamtofastq/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd test1
echo "> Run bedtools bamtofastq on BAM file"
"$meta_executable" \
--input "$test_data/example.bam" \
--output_fq "output.fastq"
--fastq "output.fastq"

# checks
assert_file_exists "output.fastq"
Expand All @@ -46,7 +46,7 @@ cd test2
echo "> Run bedtools bamtofastq on BAM file with tags"
"$meta_executable" \
--input "$test_data/example.bam" \
--output_fq "output.fastq" \
--fastq "output.fastq" \
--tags

# checks
Expand All @@ -64,8 +64,8 @@ cd test3
echo "> Run bedtools bamtofastq on BAM file with output_fq2"
"$meta_executable" \
--input "$test_data/example.bam" \
--output_fq "output1.fastq" \
--output_fq2 "output2.fastq"
--fastq "output1.fastq" \
--fastq2 "output2.fastq"

# checks
assert_file_exists "output1.fastq"
Expand Down

0 comments on commit d3cb54a

Please sign in to comment.