Skip to content

Commit

Permalink
Change argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
sainirmayi committed Jun 24, 2024
1 parent 3a74a76 commit 0ae7dd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/star/star_align_reads/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ argument_groups:
direction: output
example: splice_junctions.tsv
- type: file
name: --transcriptome
name: --reads_aligned_to_transcriptome
required: false
description: The output file containing the alignments to transcriptome in BAM formats.
description: The output file containing the alignments to transcriptome in BAM formats. This file is generated when --quantMode is set to TranscriptomeSAM.
direction: output
example: transcriptome.bam
example: transcriptome_aligned.bam
# other arguments are defined in a separate file
__merge__: argument_groups.yaml
resources:
Expand Down
2 changes: 1 addition & 1 deletion src/star/star_align_reads/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"splice_junctions": "SJ.out.tab",
"unmapped": "Unmapped.out.mate1",
"unmapped_r2": "Unmapped.out.mate2",
"transcriptome": "Aligned.toTranscriptome.out.bam"
"reads_aligned_to_transcriptome": "Aligned.toTranscriptome.out.bam"
}
output_paths = {name: par[name] for name in expected_outputs.keys()}
for name in expected_outputs.keys():
Expand Down
6 changes: 3 additions & 3 deletions src/star/star_align_reads/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ echo "> Run star_align_reads on SE"
--reads_per_gene "reads_per_gene.tsv" \
--outSJtype Standard \
--splice_junctions "splice_junctions.tsv" \
--transcriptome "transcriptome.bam" \
--reads_aligned_to_transcriptome "transcriptome_aligned.bam" \
${meta_cpus:+---cpus $meta_cpus}

# TODO: Test data doesn't contain any chimeric reads yet
Expand All @@ -112,7 +112,7 @@ assert_file_exists "reads_per_gene.tsv"
# assert_file_exists "chimeric_junctions.tsv"
assert_file_exists "splice_junctions.tsv"
assert_file_exists "unmapped.sam"
assert_file_exists "transcriptome.bam"
assert_file_exists "transcriptome_aligned.bam"

echo ">> Check if output contents are not empty"
assert_file_not_empty "output.sam"
Expand All @@ -121,7 +121,7 @@ assert_file_not_empty "reads_per_gene.tsv"
# assert_file_not_empty "chimeric_junctions.tsv"
# assert_file_not_empty "splice_junctions.tsv" # TODO: test data doesn't contain any splice junctions yet
assert_file_not_empty "unmapped.sam"
assert_file_not_empty "transcriptome.bam"
assert_file_not_empty "transcriptome_aligned.bam"

echo ">> Check if output contents are correct"
assert_file_contains "log.txt" "Number of input reads \\| 2"
Expand Down

0 comments on commit 0ae7dd1

Please sign in to comment.