annotate test-data/rebuild_output_files.sh @ 6:9038311ed624 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
author iuc
date Thu, 19 Jun 2025 12:59:30 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
1 # Test 1: Basic FASTA output from BAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
2 samtools fasta -f 0 -F 2304 -G 0 <(samtools sort -n samtools_fastx-in1.bam) > samtools_fastx-out1.fasta
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
3
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
4 # Test 2: FASTQ output with r0, r1, r2 splits from BAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
5 samtools sort -n samtools_fastx-in2.bam | samtools fastq -0 samtools_fastx-out2-1.fastq -1 samtools_fastx-out2-2.fastq -2 samtools_fastx-out2-3.fastq -
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
6
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
7 # Test 3: FASTA output with r0, r1, r2 splits from SAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
8 samtools sort -n samtools_fastx-in3.sam | samtools fasta -0 samtools_fastx-out3-1.fasta -1 samtools_fastx-out3-2.fasta -2 samtools_fastx-out3-3.fasta -
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
9
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
10 # Test 4: Compressed FASTA output from BAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
11 samtools fasta samtools_fastx-in1.bam | gzip > samtools_fastx-out1.fasta.gz
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
12
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
13 # Test 5: Compressed FASTQ output with r0, r1, r2 splits from BAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
14 samtools sort -n samtools_fastx-in2.bam -T tmp | samtools fastq -0 >(gzip > samtools_fastx-out2-1.fastq.gz) -1 >(gzip > samtools_fastx-out2-2.fastq.gz) -2 >(gzip > samtools_fastx-out2-3.fastq.gz) -
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
15
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
16 # Test 6: Compressed FASTA output with r0, r1, r2 splits from SAM
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
17 samtools sort -n samtools_fastx-in3.sam -T tmp | samtools fasta -0 >(gzip > samtools_fastx-out3-1.fasta.gz) -1 >(gzip > samtools_fastx-out3-2.fasta.gz) -2 >(gzip > samtools_fastx-out3-3.fasta.gz) -
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
18
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
19 # Test 7: Basic 2 output test without singleton tracking
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
20 samtools fastq -1 1.1.fq.expected -2 1.2.fq.expected bam2fq.001.sam > 1.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
21
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
22 # Test 8: Basic 2 output test with singleton tracking but no singleton
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
23 samtools fastq -s 2.s.fq.expected -1 2.1.fq.expected -2 2.2.fq.expected bam2fq.001.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
24
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
25 # Test 9: Basic 2 output test with singleton tracking with a singleton in the middle
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
26 samtools fastq -s 3.s.fq.expected -1 3.1.fq.expected -2 3.2.fq.expected bam2fq.002.sam > 3.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
27
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
28 # Test 10: Basic 2 output test with singleton tracking with a singleton as last read
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
29 samtools fastq -s 4.s.fq.expected -1 4.1.fq.expected -2 4.2.fq.expected bam2fq.003.sam > 4.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
30
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
31 # Test 11: Tag output test with barcode index
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
32 samtools fastq --barcode-tag BC --index-format 'n2i2' --i1 bc.fq.expected -s 4.s.fq.expected -1 4.1.fq.expected -2 4.2.fq.expected bam2fq.004.sam > 4.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
33
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
34 # Test 12: Test -O flag with no OQ tags
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
35 samtools fastq -O --barcode-tag BC --index-format 'n2i2' --i1 bc.fq.expected -s 4.s.fq.expected -1 4.1.fq.expected -2 4.2.fq.expected bam2fq.004.sam > 4.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
36
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
37 # Test 13: Test -O flag with OQ tags
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
38 samtools fastq -O --barcode-tag BC --index-format 'n2i2' --i1 bc10.fq.expected -s 10.s.fq.expected -1 10.1.fq.expected -2 10.2.fq.expected bam2fq.010.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
39
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
40 # Test 14: Tag output test with separators and -N flag
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
41 samtools fastq --barcode-tag BC -N --index-format 'n*i*' --i1 bc_split.fq.expected -s 5.s.fq.expected -1 5.1.fq.expected -2 5.2.fq.expected bam2fq.005.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
42
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
43 # Test 15: -t flag
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
44 samtools fastq -N -t -s 6.s.fq.expected -1 6.1.fq.expected -2 6.2.fq.expected bam2fq.005.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
45
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
46 # Test 16: -T flag
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
47 samtools fastq -N -t -T MD,ia -s 7.s.fq.expected -1 7.1.fq.expected -2 7.2.fq.expected bam2fq.005.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
48
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
49 # Test 17: -i flag with no index
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
50 samtools fastq -N -t -i -T MD,ia --index-format 'n2i2' --i1 11.i.fq.expected --i2 11.i2.fq.expected -s 11.s.fq.expected -1 11.1.fq.expected -2 11.2.fq.expected bam2fq.005.sam > 2.stdout.expected
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
51
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
52 # Test 18: -i flag with index
9038311ed624 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit c508c3af0f4121dcc38e0be63db00a604e997b8a
iuc
parents:
diff changeset
53 samtools fastq --barcode-tag BC -i --index-format 'n2i2' --i1 8.i.fq.expected --i2 8.i2.fq.expected -s 8.s.fq.expected -1 8.1.fq.expected -2 8.2.fq.expected bam2fq.004.sam > 2.stdout.expected