Skip to content

Commit

Permalink
fix strand
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoang22 committed Jan 22, 2025
1 parent f93487e commit 9ff2d14
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions definitions/tools/regtools.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ task regtools {
String? output_filename_vcf = "splice_variant.vcf"
String? output_filename_bed = "splice_variant.bed"

String? strand # [first, second, unstranded]
String strand = "unstranded" # [first, second, unstranded]
Int? window_size
Int? max_distance_exon # max distance from exon/intron boundary to annotate a variant in exonic region as splicing variant
Int? max_distance_intron
Expand Down Expand Up @@ -34,7 +34,6 @@ task regtools {
disks: "local-disk ~{space_needed_gb} HDD"
}

String input_strand = select_first([strand, "unstranded"])

Map[String, String] strandness = {
"first": "RF",
Expand All @@ -47,7 +46,7 @@ task regtools {
-o ~{output_filename_tsv} \
~{if defined(output_filename_vcf) then "-v ~{output_filename_vcf}" else ""} \
~{if defined(output_filename_bed) then "-j ~{output_filename_bed}" else ""} \
-s ~{strandness[input_strand]} \
-s ~{strandness[strand]} \
~{if defined(window_size) then "-w ~{window_size}" else ""} \
~{if defined(max_distance_exon) then "-e ~{max_distance_exon}" else ""} \
~{if defined(max_distance_intron) then "-i ~{max_distance_intron}" else ""} \
Expand Down

0 comments on commit 9ff2d14

Please sign in to comment.