Mercurial > repos > chrisw > bamcount_tool_test
comparison bamcount.xml @ 1:78bca99736b0 draft default tip
Uploaded
author | chrisw |
---|---|
date | Tue, 19 Nov 2019 02:59:07 +0000 |
parents | 1f0e3aaaba19 |
children |
comparison
equal
deleted
inserted
replaced
0:1f0e3aaaba19 | 1:78bca99736b0 |
---|---|
1 <tool id="bamcount" name="Summarize coverage from a BAM (bamcount)" version="0.1.0"> | 1 <tool id="bamcount" name="Summarize coverage from a BAM (bamcount)" version="0.2.0"> |
2 <requirements> | 2 <requirements> |
3 <requirement type="package" version="0.2.6">bamcount</requirement> | 3 <requirement type="package" version="0.4.0">bamcount</requirement> |
4 </requirements> | 4 </requirements> |
5 <command detect_errors="exit_code"><![CDATA[ | 5 <command detect_errors="exit_code"><![CDATA[ |
6 bamcount "$input1" --threads $threads --coverage --no-head --require-mdz --min-unique-qual $min_uniq_qual --frag-dist bc --bigwig bc --annotation $annotation bc --auc bc --alts bc | 6 bamcount "$input1" --threads $threads --coverage --no-head --min-unique-qual $min_uniq_qual --frag-dist bc --bigwig bc --auc bc --alts bc --junctions bc |
7 ]]></command> | 7 ]]></command> |
8 <inputs> | 8 <inputs> |
9 <param type="data" name="input1" format="bam" /> | 9 <param type="integer" name="threads" value="1" /> |
10 <param type="integer" name="min_uniq_qual" value="10" /> | |
11 <param type="file" name="input1" format="bam" /> | |
12 <param type="file" name="annotation" format="bed" /> | |
10 </inputs> | 13 </inputs> |
11 <outputs> | 14 <outputs> |
12 <data name="output1" format="auc.tsv" from_work_dir="bc.auc.tsv" /> | 15 <data name="output1" format="txt" from_work_dir="bc.auc.tsv" /> |
16 <data name="output2" format="txt" from_work_dir="bc.alts.tsv" /> | |
17 <data name="output3" format="txt" from_work_dir="bc.frags.tsv" /> | |
18 <data name="output4" format="txt" from_work_dir="bc.jxs.tsv" /> | |
19 <!-- | |
20 <data name="output5" format="bed" from_work_dir="bc.all.tsv" /> | |
21 <data name="output6" format="bed" from_work_dir="bc.unique.tsv" /> | |
22 --> | |
23 <data name="output7" format="bigwig" from_work_dir="bc.all.bw" /> | |
24 <data name="output8" format="bigwig" from_work_dir="bc.unique.bw" /> | |
13 </outputs> | 25 </outputs> |
14 <tests> | 26 <tests> |
15 <test> | 27 <test> |
16 <param name="input1" value="test.bam"/> | 28 <param name="input1" value="test.bam"/> |
17 <output name="output1" file="bc.auc.tsv"/> | 29 <output name="output1" file="test.auc.tsv"/> |
18 </test> | 30 </test> |
19 </tests> | 31 </tests> |
20 <help><![CDATA[ | 32 <help><![CDATA[ |
21 bamcount 0.2.6 | 33 bamcount 0.4.0 |
22 | 34 |
23 BAM and BigWig utility. | 35 BAM and BigWig utility. |
24 | 36 |
25 Usage: | 37 Usage: |
26 bamcount <bam> [options] | 38 bamcount <bam> [options] |
27 | 39 |
28 Options: | 40 Options: |
29 -h --help Show this screen. | 41 -h --help Show this screen. |
30 --version Show version. | 42 --version Show version. |
31 --threads # of threads to do BAM decompression | 43 --threads # of threads to do BAM decompression |
32 | 44 |
33 Non-reference summaries: | 45 Extract basic junction information from the BAM, including co-occurrence |
34 --alts <prefix> Print differing from ref per-base coverages | 46 --junctions <prefix> Extract jx coordinates, strand, and anchor length, per read |
35 Writes to a CSV file <prefix>.alts.tsv | 47 Writes to a TSV file <prefix>.jxs.tsv |
36 --include-softclip Print a record for soft-clipped bases | |
37 --include-n Print mismatch records when mismatched read base is N | |
38 --print-qual Print quality values for mismatched bases | |
39 --delta Print POS field as +/- delta from previous | |
40 --require-mdz Quit with error unless MD:Z field exists everywhere it's | |
41 expected | |
42 --no-head Don't print sequence names and lengths in header | |
43 | 48 |
44 Coverage and quantification: | 49 Extract reads from BAM into FASTQ (exclusive of all other modes): |
45 --coverage Print per-base coverage (slow but totally worth it) | 50 --bam2fastq <prefix> Extract all reads from the passed in BAM and output as FASTQs |
46 --auc <prefix> Print per-base area-under-coverage, will generate it for the genome | 51 Uses prefix to name the fastq(s) |
47 and for the annotation if --annotation is also passed in | 52 --filter-out SAM bit flags to filter out |
48 Writes to a TSV file <prefix>.auc.tsv | 53 --filter-in SAM bit flags to filter in |
49 --bigwig <prefix> Output coverage as BigWig file(s). Writes to <prefix>.all.bw | 54 --re-reverse If read is reversed in alignment, re-reverse it in output |
50 (also <prefix>.unique.bw when --min-unique-qual is specified). | 55 --one-file If you know file is not paired or just want all reads in one file |
51 Requires libBigWig. | |
52 --annotation <bed> <prefix> | |
53 Path to BED file containing list of regions to sum coverage over | |
54 (tab-delimited: chrm,start,end) | |
55 --min-unique-qual <int> | |
56 Output second bigWig consisting built only from alignments | |
57 with at least this mapping quality. --bigwig must be specified. | |
58 Also produces second set of annotation sums based on this coverage | |
59 if --annotation is enabled | |
60 --double-count Allow overlapping ends of PE read to count twice toward | |
61 coverage | |
62 --num-bases Report total sum of bases in alignments processed (that pass filters) | |
63 | 56 |
64 Other outputs: | 57 Non-reference summaries: |
65 --read-ends Print counts of read starts/ends, if --min-unique-qual is set | 58 --alts <prefix> Print differing from ref per-base coverages |
66 then only the alignments that pass that filter will be counted here | 59 Writes to a CSV file <prefix>.alts.tsv |
67 Writes to 2 TSV files: <prefix>.starts.tsv, <prefix>.ends.tsv | 60 --include-softclip <prefix> Print a record to the alts CSV for soft-clipped bases |
68 --frag-dist <prefix> Print fragment length distribution across the genome | 61 Writes total counts to a separate TSV file <prefix>.softclip.tsv |
69 Writes to a TSV file <prefix>.frags.tsv | 62 --only-polya If --include-softclip, only print softclips which are mostly A's or T's |
70 --echo-sam Print a SAM record for each aligned read | 63 --include-n Print mismatch records when mismatched read base is N |
71 --ends Report end coordinate for each read (useful for debugging) | 64 --print-qual Print quality values for mismatched bases |
72 ]]></help> | 65 --delta Print POS field as +/- delta from previous |
66 --require-mdz Quit with error unless MD:Z field exists everywhere it's | |
67 expected | |
68 --no-head Don't print sequence names and lengths in header | |
69 | |
70 Coverage and quantification: | |
71 --coverage Print per-base coverage (slow but totally worth it) | |
72 --auc <prefix> Print per-base area-under-coverage, will generate it for the genome | |
73 and for the annotation if --annotation is also passed in | |
74 Writes to a TSV file <prefix>.auc.tsv | |
75 --bigwig <prefix> Output coverage as BigWig file(s). Writes to <prefix>.all.bw | |
76 (also <prefix>.unique.bw when --min-unique-qual is specified). | |
77 Requires libBigWig. | |
78 --annotation <bed> <prefix> | |
79 Path to BED file containing list of regions to sum coverage over | |
80 (tab-delimited: chrm,start,end) | |
81 --keep-bam-order Output annotation coverage in the order chromosomes appear in the BAM file. | |
82 The default is to output annotation coverage in the order chromosomes appear in the BED file. | |
83 --min-unique-qual <int> | |
84 Output second bigWig consisting built only from alignments | |
85 with at least this mapping quality. --bigwig must be specified. | |
86 Also produces second set of annotation sums based on this coverage | |
87 if --annotation is enabled | |
88 --double-count Allow overlapping ends of PE read to count twice toward | |
89 coverage | |
90 --num-bases Report total sum of bases in alignments processed (that pass filters) | |
91 | |
92 Other outputs: | |
93 --read-ends Print counts of read starts/ends, if --min-unique-qual is set | |
94 then only the alignments that pass that filter will be counted here | |
95 Writes to 2 TSV files: <prefix>.starts.tsv, <prefix>.ends.tsv | |
96 --frag-dist <prefix> Print fragment length distribution across the genome | |
97 Writes to a TSV file <prefix>.frags.tsv | |
98 --echo-sam Print a SAM record for each aligned read | |
99 --ends Report end coordinate for each read (useful for debugging) | |
100 --test-polya Lower Poly-A filter minimums for testing (only useful for debugging/testing) | |
101 ]]></help> | |
73 <citations> | 102 <citations> |
74 <citation type="bibtex"> | 103 <citation type="bibtex"> |
75 @misc{githubbamcount, | 104 @misc{githubbamcount, |
76 author = {Wilks, Christopher}, | 105 author = {Wilks, Christopher}, |
77 year = {2019}, | 106 year = {2019}, |
78 title = {bamcount}, | 107 title = {bamcount}, |
79 publisher = {GitHub}, | 108 publisher = {GitHub}, |
80 journal = {GitHub repository}, | 109 journal = {GitHub repository}, |
81 url = {https://github.com/BenLangmead/bamcount}, | 110 url = {https://github.com/ChristopherWilks/bamcount}, |
82 }</citation> | 111 }</citation> |
83 </citations> | 112 </citations> |
84 </tool> | 113 </tool> |