1
|
1 <tool id="bamcount" name="Summarize coverage from a BAM (bamcount)" version="0.2.0">
|
0
|
2 <requirements>
|
1
|
3 <requirement type="package" version="0.4.0">bamcount</requirement>
|
0
|
4 </requirements>
|
|
5 <command detect_errors="exit_code"><![CDATA[
|
1
|
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
|
0
|
7 ]]></command>
|
|
8 <inputs>
|
1
|
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" />
|
0
|
13 </inputs>
|
|
14 <outputs>
|
1
|
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" />
|
0
|
25 </outputs>
|
|
26 <tests>
|
|
27 <test>
|
|
28 <param name="input1" value="test.bam"/>
|
1
|
29 <output name="output1" file="test.auc.tsv"/>
|
0
|
30 </test>
|
|
31 </tests>
|
|
32 <help><![CDATA[
|
1
|
33 bamcount 0.4.0
|
|
34
|
|
35 BAM and BigWig utility.
|
0
|
36
|
1
|
37 Usage:
|
|
38 bamcount <bam> [options]
|
0
|
39
|
1
|
40 Options:
|
|
41 -h --help Show this screen.
|
|
42 --version Show version.
|
|
43 --threads # of threads to do BAM decompression
|
0
|
44
|
1
|
45 Extract basic junction information from the BAM, including co-occurrence
|
|
46 --junctions <prefix> Extract jx coordinates, strand, and anchor length, per read
|
|
47 Writes to a TSV file <prefix>.jxs.tsv
|
0
|
48
|
1
|
49 Extract reads from BAM into FASTQ (exclusive of all other modes):
|
|
50 --bam2fastq <prefix> Extract all reads from the passed in BAM and output as FASTQs
|
|
51 Uses prefix to name the fastq(s)
|
|
52 --filter-out SAM bit flags to filter out
|
|
53 --filter-in SAM bit flags to filter in
|
|
54 --re-reverse If read is reversed in alignment, re-reverse it in output
|
|
55 --one-file If you know file is not paired or just want all reads in one file
|
0
|
56
|
1
|
57 Non-reference summaries:
|
|
58 --alts <prefix> Print differing from ref per-base coverages
|
|
59 Writes to a CSV file <prefix>.alts.tsv
|
|
60 --include-softclip <prefix> Print a record to the alts CSV for soft-clipped bases
|
|
61 Writes total counts to a separate TSV file <prefix>.softclip.tsv
|
|
62 --only-polya If --include-softclip, only print softclips which are mostly A's or T's
|
|
63 --include-n Print mismatch records when mismatched read base is N
|
|
64 --print-qual Print quality values for mismatched bases
|
|
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
|
0
|
69
|
1
|
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>
|
0
|
102 <citations>
|
|
103 <citation type="bibtex">
|
1
|
104 @misc{githubbamcount,
|
0
|
105 author = {Wilks, Christopher},
|
|
106 year = {2019},
|
|
107 title = {bamcount},
|
|
108 publisher = {GitHub},
|
|
109 journal = {GitHub repository},
|
1
|
110 url = {https://github.com/ChristopherWilks/bamcount},
|
0
|
111 }</citation>
|
|
112 </citations>
|
|
113 </tool>
|