# HG changeset patch # User iuc # Date 1725765697 0 # Node ID 0d2460a1ce9336813bbc3e0552bb96a7054090e9 # Parent c124315e2b88b0f6fd3cf7fde170c44d0f719502 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/bam_to_sam commit 9c5a35ce695c3d134e41d8695487edd5f71ea33c diff -r c124315e2b88 -r 0d2460a1ce93 bam_to_sam.xml --- a/bam_to_sam.xml Tue Sep 28 15:57:02 2021 +0000 +++ b/bam_to_sam.xml Sun Sep 08 03:21:37 2024 +0000 @@ -1,4 +1,4 @@ - + convert BAM to SAM diff -r c124315e2b88 -r 0d2460a1ce93 macros.xml --- a/macros.xml Tue Sep 28 15:57:02 2021 +0000 +++ b/macros.xml Sun Sep 08 03:21:37 2024 +0000 @@ -5,8 +5,15 @@ - 1.13 - 20.05 + + 1.20 + 2 + 22.05 &2 && + gzip -dc \$reffa > reference.fa && + reffa="reference.fa" && + samtools faidx \$reffa; + } + } && + #end if + reffai=\$reffa.fai && #elif $addref_cond.addref_select == "cached": - #set reffa=str($addref_cond.ref.fields.path) - #set reffai=str($addref_cond.ref.fields.path)+".fai" + ## in case of cached the absolute path is used which allows to read + ## a cram file without specifying the reference + reffa='${addref_cond.ref.fields.path}' && + reffai=\$reffa.fai && #else - #set reffa=None - #set reffai=None + #set use_ref=False #end if ]]> - + @HELP@ @@ -179,37 +219,7 @@ - - @misc{SAM_def, - title={Definition of SAM/BAM format}, - url = {https://samtools.github.io/hts-specs/},} - - 10.1093/bioinformatics/btp352 - 10.1093/bioinformatics/btr076 - 10.1093/bioinformatics/btr509 - - @misc{Danecek_et_al, - Author={Danecek, P., Schiffels, S., Durbin, R.}, - title={Multiallelic calling model in bcftools (-m)}, - url = {http://samtools.github.io/bcftools/call-m.pdf},} - - - @misc{Durbin_VCQC, - Author={Durbin, R.}, - title={Segregation based metric for variant call QC}, - url = {http://samtools.github.io/bcftools/rd-SegBias.pdf},} - - - @misc{Li_SamMath, - Author={Li, H.}, - title={Mathematical Notes on SAMtools Algorithms}, - url = {http://www.broadinstitute.org/gatk/media/docs/Samtools.pdf},} - - - @misc{SamTools_github, - title={SAMTools GitHub page}, - url = {https://github.com/samtools/samtools},} - + 10.1093/gigascience/giab008 diff -r c124315e2b88 -r 0d2460a1ce93 test-data/bam_to_sam_out1.sam --- a/test-data/bam_to_sam_out1.sam Tue Sep 28 15:57:02 2021 +0000 +++ b/test-data/bam_to_sam_out1.sam Sun Sep 08 03:21:37 2024 +0000 @@ -4,7 +4,7 @@ @SQ SN:chr8 LN:202 @RG ID:0 SM:Hi,Mom! @PG ID:1 PN:Hey! VN:2.0 -@PG ID:samtools PN:samtools PP:1 VN:1.12 CL:samtools view -o /tmp/tmpl_eh5cxt/files/3/b/2/dataset_3b2eeebc-108d-4ce9-a5b9-17e224264121.dat -h /tmp/tmpl_eh5cxt/files/1/2/d/dataset_12de9904-ebd8-436b-a125-8f034068385e.dat +@PG ID:samtools PN:samtools PP:1 VN:1.20 CL:samtools view -o /tmp/tmp3bwmizj1/job_working_directory/000/2/outputs/dataset_f1239316-7904-41f9-b3dd-a740a70acf8b.dat -h /tmp/tmp3bwmizj1/files/4/4/a/dataset_44af64ee-5cc1-4454-9cf0-6a3a24296b69.dat both_reads_align_clip_marked 83 chr7 1 255 101M = 302 201 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))&&'&*/)-&*-)&.-)&)&),/-&&..)./.,.).*&&,&.&&-)&&&0*&&&&&&&&/32/,01460&&/6/*0*/2/283//36868/& RG:Z:0 both_reads_present_only_first_aligns 89 chr7 1 255 101M * 0 0 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))&&'&*/)-&*-)&.-)&)&),/-&&..)./.,.).*&&,&.&&-)&&&0*&&&&&&&&/32/,01460&&/6/*0*/2/283//36868/& RG:Z:0 read_2_too_many_gaps 83 chr7 1 255 101M = 302 201 CAACAGAAGCNGGNATCTGTGTTTGTGTTTCGGATTTCCTGCTGAANNGNTTNTCGNNTCNNNNNNNNATCCCGATTTCNTTCCGCAGCTNACCTCCCAAN )'.*.+2,))&&'&*/)-&*-)&.-)&)&),/-&&..)./.,.).*&&,&.&&-)&&&0*&&&&&&&&/32/,01460&&/6/*0*/2/283//36868/& RG:Z:0 diff -r c124315e2b88 -r 0d2460a1ce93 test-data/bam_to_sam_out2.sam --- a/test-data/bam_to_sam_out2.sam Tue Sep 28 15:57:02 2021 +0000 +++ b/test-data/bam_to_sam_out2.sam Sun Sep 08 03:21:37 2024 +0000 @@ -4,4 +4,4 @@ @SQ SN:chr8 LN:202 @RG ID:0 SM:Hi,Mom! @PG ID:1 PN:Hey! VN:2.0 -@PG ID:samtools PN:samtools PP:1 VN:1.12 CL:samtools view -o /tmp/tmpl_eh5cxt/files/3/0/2/dataset_3025757e-159d-4ced-a398-2d7dc823e34b.dat -H /tmp/tmpl_eh5cxt/files/9/5/d/dataset_95dbe51c-ade9-4f37-9399-79ec158c1516.dat +@PG ID:samtools PN:samtools PP:1 VN:1.20 CL:samtools view -o /tmp/tmp3bwmizj1/job_working_directory/000/4/outputs/dataset_e689a4f6-7c14-4a65-9155-214ed5cbcfa7.dat -H /tmp/tmp3bwmizj1/files/7/d/5/dataset_7d5cef18-567a-4e59-86c6-0dcadae11b36.dat