Skip to content

Commit

Permalink
Lint and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gallardoalba committed Sep 1, 2023
1 parent ba9b83e commit b059603
Show file tree
Hide file tree
Showing 36 changed files with 574 additions and 408 deletions.
8 changes: 5 additions & 3 deletions macros/read_group_macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@
#set $use_rg = str($rg.rg_selector) != "do_not_set"
</token>
<xml name="read_group_auto_name_conditional">
<param name="do_auto_name" type="boolean" label="Auto-assign" help="Use dataset name or collection information to automatically assign this value" checked="no" />
<when value="true">
</when>
<param name="do_auto_name" type="select" label="Auto-assign" help="Use dataset name or collection information to automatically assign this value">
<option value="false">False</option>
<option value="true">True</option>
</param>
<when value="true"/>
<when value="false">
<yield />
</when>
Expand Down
12 changes: 6 additions & 6 deletions tools/picard/picard_AddCommentsToBam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
@symlink_element_identifier@
picard
AddCommentsToBam
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
#for $element in $comments:
COMMENT="${element.comment}"
-COMMENT="${element.comment}"
#end for
QUIET=true
VERBOSITY=ERROR
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
VALIDATION_STRINGENCY=${validation_stringency}
-VALIDATION_STRINGENCY=${validation_stringency}
]]></command>

<inputs>
Expand Down
10 changes: 5 additions & 5 deletions tools/picard/picard_AddOrReplaceReadGroups.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@symlink_element_identifier@
picard
AddOrReplaceReadGroups
INPUT='$escaped_element_identifier'
-INPUT='$escaped_element_identifier'
$format_read_group("RGLB=", $rg_lb, '"')
$format_read_group("RGPL=", $rg_pl, '"')
$format_read_group("RGPU=", $rg_pu, '"')
Expand All @@ -22,11 +22,11 @@
$format_read_group("RGDS=", $rg_ds, '"')
$format_read_group("RGPI=", $rg_pi, '"')
$format_read_group("RGDT=", $rg_dt, '"')
VALIDATION_STRINGENCY="${validation_stringency}"
QUIET=true
VERBOSITY=ERROR
-VALIDATION_STRINGENCY="${validation_stringency}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
OUTPUT="${outFile}"
-OUTPUT="${outFile}"
]]></command>

Expand Down
21 changes: 12 additions & 9 deletions tools/picard/picard_BedToIntervalList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
#if str( $reference_source.reference_source_selector ) == "history":
picard CreateSequenceDictionary REFERENCE="${ref_fasta}" OUTPUT="${picard_dict}"
QUIET=true
VERBOSITY=ERROR
@TMPDIR_OPTION@
picard
CreateSequenceDictionary
-REFERENCE="${ref_fasta}"
-OUTPUT="${picard_dict}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
&&
Expand All @@ -30,12 +33,12 @@
picard
BedToIntervalList
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
SEQUENCE_DICTIONARY="${picard_dict}"
QUIET=true
VERBOSITY=ERROR
-SEQUENCE_DICTIONARY="${picard_dict}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
Expand Down
10 changes: 5 additions & 5 deletions tools/picard/picard_CleanSam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
@symlink_element_identifier@
picard
CleanSam
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
QUIET=true
VERBOSITY=ERROR
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
VALIDATION_STRINGENCY=${validation_stringency}
-VALIDATION_STRINGENCY=${validation_stringency}
]]></command>

<inputs>
Expand Down
22 changes: 11 additions & 11 deletions tools/picard/picard_CollectAlignmentSummaryMetrics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@
picard
CollectAlignmentSummaryMetrics
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
MAX_INSERT_SIZE=${maxinsert}
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-MAX_INSERT_SIZE=${maxinsert}
#for $sequence in $adapters:
ADAPTER_SEQUENCE="${sequence.adapter}"
-ADAPTER_SEQUENCE="${sequence.adapter}"
#end for
#for $level in str($metric_accumulation_level).split(','):
METRIC_ACCUMULATION_LEVEL="${level}"
-METRIC_ACCUMULATION_LEVEL="${level}"
#end for
IS_BISULFITE_SEQUENCED="${bisulphite}"
-IS_BISULFITE_SEQUENCED="${bisulphite}"
REFERENCE_SEQUENCE="${reference_fasta_filename}"
-REFERENCE_SEQUENCE="${reference_fasta_filename}"
ASSUME_SORTED="${assume_sorted}"
-ASSUME_SORTED="${assume_sorted}"
VALIDATION_STRINGENCY="${validation_stringency}"
QUIET=true
VERBOSITY=ERROR
-VALIDATION_STRINGENCY="${validation_stringency}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
Expand Down
24 changes: 12 additions & 12 deletions tools/picard/picard_CollectBaseDistributionByCycle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<import>picard_macros.xml</import>
</macros>
<expand macro="requirements">
<requirement type="package" version="@R_BASE_VERSION@">r-base</requirement>
<requirement type="package" version="4.3.0">r-base</requirement>
</expand>
<command detect_errors="exit_code"><![CDATA[
@java_options@
Expand All @@ -17,17 +17,17 @@
picard
CollectBaseDistributionByCycle
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
CHART_OUTPUT="${pdfFile}"
ALIGNED_READS_ONLY="${aligned_reads_only}"
PF_READS_ONLY="${pf_reads_only}"
REFERENCE_SEQUENCE="${reference_fasta_filename}"
ASSUME_SORTED="${assume_sorted}"
VALIDATION_STRINGENCY="${validation_stringency}"
QUIET=true
VERBOSITY=ERROR
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-CHART_OUTPUT="${pdfFile}"
-ALIGNED_READS_ONLY="${aligned_reads_only}"
-PF_READS_ONLY="${pf_reads_only}"
-REFERENCE_SEQUENCE="${reference_fasta_filename}"
-ASSUME_SORTED="${assume_sorted}"
-VALIDATION_STRINGENCY="${validation_stringency}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
Expand Down
28 changes: 14 additions & 14 deletions tools/picard/picard_CollectGcBiasMetrics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<import>picard_macros.xml</import>
</macros>
<expand macro="requirements">
<requirement type="package" version="@R_BASE_VERSION@">r-base</requirement>
<requirement type="package" version="4.3.0">r-base</requirement>
</expand>
<command detect_errors="exit_code"><![CDATA[
@java_options@
Expand All @@ -17,19 +17,19 @@
picard
CollectGcBiasMetrics
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
CHART_OUTPUT="${pdfFile}"
SUMMARY_OUTPUT="${summaryFile}"
WINDOW_SIZE="${window_size}"
MINIMUM_GENOME_FRACTION="${minimum_genome_fraction}"
IS_BISULFITE_SEQUENCED="${is_bisulfite_sequenced}"
REFERENCE_SEQUENCE="${reference_fasta_filename}"
ASSUME_SORTED="${assume_sorted}"
VALIDATION_STRINGENCY="${validation_stringency}"
QUIET=true
VERBOSITY=ERROR
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-CHART_OUTPUT="${pdfFile}"
-SUMMARY_OUTPUT="${summaryFile}"
-WINDOW_SIZE="${window_size}"
-MINIMUM_GENOME_FRACTION="${minimum_genome_fraction}"
-IS_BISULFITE_SEQUENCED="${is_bisulfite_sequenced}"
-REFERENCE_SEQUENCE="${reference_fasta_filename}"
-ASSUME_SORTED="${assume_sorted}"
-VALIDATION_STRINGENCY="${validation_stringency}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
Expand Down
22 changes: 11 additions & 11 deletions tools/picard/picard_CollectHsMetrics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
picard
CollectHsMetrics
INPUT='$escaped_element_identifier'
OUTPUT='${outFile}'
MINIMUM_MAPPING_QUALITY=${minimum_mapping_quality}
MINIMUM_BASE_QUALITY=${minimum_base_quality}
COVERAGE_CAP=${coverage_cap}
CLIP_OVERLAPPING_READS=${clip_overlapping_reads}
BAIT_INTERVALS='${baitFile}'
TARGET_INTERVALS='${targetFile}'
VALIDATION_STRINGENCY=${validation_stringency}
QUIET=true
VERBOSITY=ERROR
-INPUT='$escaped_element_identifier'
-OUTPUT='${outFile}'
-MINIMUM_MAPPING_QUALITY=${minimum_mapping_quality}
-MINIMUM_BASE_QUALITY=${minimum_base_quality}
-COVERAGE_CAP=${coverage_cap}
-CLIP_OVERLAPPING_READS=${clip_overlapping_reads}
-BAIT_INTERVALS='${baitFile}'
-TARGET_INTERVALS='${targetFile}'
-VALIDATION_STRINGENCY=${validation_stringency}
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
<inputs>
Expand Down
26 changes: 13 additions & 13 deletions tools/picard/picard_CollectInsertSizeMetrics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<import>picard_macros.xml</import>
</macros>
<expand macro="requirements">
<requirement type="package" version="@R_BASE_VERSION@">r-base</requirement>
<requirement type="package" version="4.3.0">r-base</requirement>
</expand>
<command detect_errors="exit_code"><![CDATA[
@java_options@
Expand All @@ -17,23 +17,23 @@
picard
CollectInsertSizeMetrics
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
HISTOGRAM_FILE="${histFile}"
DEVIATIONS="${deviations}"
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-HISTOGRAM_FILE="${histFile}"
-DEVIATIONS="${deviations}"
#if str( $hist_width ):
HISTOGRAM_WIDTH="${hist_width}"
-HISTOGRAM_WIDTH="${hist_width}"
#end if
MINIMUM_PCT="${min_pct}"
REFERENCE_SEQUENCE="${reference_fasta_filename}"
ASSUME_SORTED="${assume_sorted}"
METRIC_ACCUMULATION_LEVEL="${metric_accumulation_level}"
-MINIMUM_PCT="${min_pct}"
-REFERENCE_SEQUENCE="${reference_fasta_filename}"
-ASSUME_SORTED="${assume_sorted}"
-METRIC_ACCUMULATION_LEVEL="${metric_accumulation_level}"
VALIDATION_STRINGENCY="${validation_stringency}"
QUIET=true
VERBOSITY=ERROR
-VALIDATION_STRINGENCY="${validation_stringency}"
-QUIET=true
-VERBOSITY=ERROR
@TMPDIR_OPTION@
]]></command>
Expand Down
28 changes: 14 additions & 14 deletions tools/picard/picard_CollectRnaSeqMetrics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<import>picard_macros.xml</import>
</macros>
<expand macro="requirements">
<requirement type="package" version="@R_BASE_VERSION@">r-base</requirement>
<requirement type="package" version="4.3.0">r-base</requirement>
<requirement type="package" version="377">ucsc-gff3togenepred</requirement>
<requirement type="package" version="377">ucsc-gtftogenepred</requirement>
</expand>
Expand Down Expand Up @@ -36,28 +36,28 @@
@java_options@
picard
CollectRnaSeqMetrics
REF_FLAT=refFlat.tab
-REF_FLAT=refFlat.tab
#if str( $ribosomal_intervals ) != "None":
RIBOSOMAL_INTERVALS="${ribosomal_intervals}"
-RIBOSOMAL_INTERVALS="${ribosomal_intervals}"
#end if
STRAND_SPECIFICITY="${strand_specificity}"
MINIMUM_LENGTH="${minimum_length}"
CHART_OUTPUT="${pdfFile}"
-STRAND_SPECIFICITY="${strand_specificity}"
-MINIMUM_LENGTH="${minimum_length}"
-CHART_OUTPUT="${pdfFile}"
#for $sequence_to_ignore in $ignore_list:
IGNORE_SEQUENCE="${sequence_to_ignore.sequence}"
-IGNORE_SEQUENCE="${sequence_to_ignore.sequence}"
#end for
RRNA_FRAGMENT_PERCENTAGE="${rrna_fragment_percentage}"
METRIC_ACCUMULATION_LEVEL="${metric_accumulation_level}"
INPUT='$escaped_element_identifier'
OUTPUT="${outFile}"
REFERENCE_SEQUENCE="${reference_fasta_filename}"
ASSUME_SORTED="${assume_sorted}"
-RRNA_FRAGMENT_PERCENTAGE="${rrna_fragment_percentage}"
-METRIC_ACCUMULATION_LEVEL="${metric_accumulation_level}"
-INPUT='$escaped_element_identifier'
-OUTPUT="${outFile}"
-REFERENCE_SEQUENCE="${reference_fasta_filename}"
-ASSUME_SORTED="${assume_sorted}"
@TMPDIR_OPTION@
VALIDATION_STRINGENCY=${validation_stringency}
-VALIDATION_STRINGENCY=${validation_stringency}
]]></command>

Expand Down
Loading

0 comments on commit b059603

Please sign in to comment.