@@ -912,10 +912,6 @@ task Align {
912912 }
913913
914914 parameter_meta {
915- bam : {
916- desciption : "Input BAM file." ,
917- localization_optional : true
918- }
919915 ref_fasta : "Input reference FASTA file."
920916 sample_name : "we always rely explicitly on input SM name"
921917 library : "this will override the LB: entry on the @RG line"
@@ -944,14 +940,11 @@ task Align {
944940
945941 Boolean fix_library_entry = if defined (library ) then true else false
946942
947- String local_ubam = basename (bam )
948943
949944 command <<<
950- set -euxo pipefail
951- time \
952- gcloud storage cp ~{bam } ~{local_ubam }
945+ set -euxo pipefail
953946
954- pbmm2 align ~{local_ubam } \
947+ pbmm2 align ~{bam } \
955948 ~{ref_fasta } \
956949 ~{prefix }.pre.bam \
957950 --preset ~{map_preset } \
@@ -960,7 +953,7 @@ task Align {
960953 ~{extra_options } \
961954 --sort \
962955 --unmapped
963- rm ~{local_ubam }
956+ rm ~{bam }
964957
965958 if ~{fix_library_entry }; then
966959 mv ~{prefix }.pre.bam ~{prefix }.pre.tmp.bam
@@ -1022,14 +1015,6 @@ task PBIndex {
10221015 description : "Index a PacBio long reads BAM file to create the pbi."
10231016 }
10241017
1025- parameter_meta {
1026- bam : {
1027- desciption : "Input BAM file." ,
1028- localization_optional : true
1029- }
1030- runtime_attr_override : "Override default runtime attributes."
1031- }
1032-
10331018 input {
10341019 File bam
10351020
@@ -1039,11 +1024,9 @@ task PBIndex {
10391024 String base = basename (bam )
10401025
10411026 command <<<
1042- set -euxo pipefail
1043-
1044- time \
1045- gcloud storage cp ~{bam } ~{base }
1027+ set -euxo pipefail
10461028
1029+ mv ~{bam } ~{base } || true
10471030 pbindex ~{base }
10481031 >>>
10491032
0 commit comments