Mercurial > repos > padge > clipkit
comparison clipkit_repo/docs/advanced/index.rst @ 0:49b058e85902 draft
"planemo upload for repository https://github.com/jlsteenwyk/clipkit commit cbe1e8577ecb1a46709034a40dff36052e876e7a-dirty"
author | padge |
---|---|
date | Fri, 25 Mar 2022 13:04:31 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:49b058e85902 |
---|---|
1 Advanced Usage | |
2 ============== | |
3 | |
4 ^^^^^ | |
5 | |
6 This section describes the various features and options of ClipKIT. | |
7 | |
8 - Modes_ | |
9 - Output_ | |
10 - Log_ | |
11 - Complementary_ | |
12 - `All options`_ | |
13 | |
14 | | |
15 | |
16 .. _Modes: | |
17 | |
18 Modes | |
19 ----- | |
20 | |
21 Herein, we describe the various trimming modes implemented in ClipKIT. If you are unsure which is appropriate for you, | |
22 **we recommend using the default smart-gap trimming mode**. | |
23 | |
24 ClipKIT can be run with eight different modes, which are specified with the -m/--mode argument. | |
25 *Default: 'smart-gap'* | |
26 | |
27 * smart-gap: dynamic determination of gaps threshold | |
28 * gappy: trim all sites that are above a threshold of gappyness (default: 0.9) | |
29 * kpic: keep only parismony informative and constant sites | |
30 * kpic-smart-gap: a combination of kpic- and smart-gap-based trimming | |
31 * kpic-gappy: a combination of kpic- and gappy-based trimming | |
32 * kpi: keep only parsimony informative sites | |
33 * kpi-smart-gap: a combination of kpi- and smart-gap-based trimming | |
34 * kpi-gappy: a combination of kpi- and gappy-based trimming | |
35 | |
36 .. code-block:: shell | |
37 | |
38 # smart-gap-based trimming | |
39 clipkit <input> | |
40 clipkit -m smart-gap | |
41 | |
42 # gappy-based trimming | |
43 clipkit <input> -m gappy | |
44 | |
45 # kpic-based trimming | |
46 clipkit <input> -m kpic | |
47 | |
48 # kpic- and smart-gap-based trimming | |
49 clipkit <input> -m kpic-smart-gap | |
50 | |
51 # kpic- and gappy-based trimming | |
52 clipkit <input> -m kpic-gappy | |
53 | |
54 # kpi-based trimming | |
55 clipkit <input> -m kpi | |
56 | |
57 # kpi- and smart-gap-based trimming | |
58 clipkit <input> -m kpi-smart-gap | |
59 | |
60 # kpi- and gappy-based trimming | |
61 clipkit <input> -m kpi-gappy | |
62 | |
63 .. _Output: | |
64 | |
65 | | |
66 | |
67 Output | |
68 ------ | |
69 | |
70 By default, output files will have the same name as the input file with the suffix ".clipkit" | |
71 appended to the name. Users can specify output file names with the -o option. | |
72 | |
73 .. code-block:: shell | |
74 | |
75 # specify output | |
76 clipkit <input> -o <output> | |
77 | |
78 | | |
79 | |
80 .. _Log: | |
81 | |
82 Log | |
83 --- | |
84 It can be very useful to have information about the each position in an alignment. For | |
85 example, this information could be used in alignment diagnostics, fine-tuning of trimming | |
86 parameters, etc. To create the log file, use the -l/\\-\\-log option. Using this option | |
87 will create a four column file with the suffix 'clipkit.log'. *Default: off* | |
88 | |
89 * col1: position in the alignment (starting at 1) | |
90 * col2: reports if site was trimmed or kept (trim or keep, respectively) | |
91 * col3: reports if the site is parsimony informative or not (PI or nPI, respectively) | |
92 * col4: reports the gappyness of the position (number of gaps / entries in alignment) | |
93 | |
94 .. code-block:: shell | |
95 | |
96 clipkit <input> -l | |
97 | |
98 | | |
99 | |
100 .. _Complementary: | |
101 | |
102 Complementary | |
103 ------------- | |
104 | |
105 Having an alignment of the sequences that were trimmed can be useful for other analyses. | |
106 To obtain an alignment of the sequences that were trimmed, use the -c/\\-\\-complementary | |
107 option. | |
108 | |
109 .. code-block:: shell | |
110 | |
111 clipkit <input> -c | |
112 | |
113 Output file with the suffix '.clipkit.complementary' | |
114 | |
115 | | |
116 | |
117 .. _`All options`: | |
118 | |
119 All options | |
120 --------------------- | |
121 | |
122 | |
123 +-----------------------------+-------------------------------------------------------------------+ | |
124 | Option | Usage and meaning | | |
125 +=============================+===================================================================+ | |
126 | -h/\-\-help | Print help message | | |
127 +-----------------------------+-------------------------------------------------------------------+ | |
128 | -v/\-\-version | Print software version | | |
129 +-----------------------------+-------------------------------------------------------------------+ | |
130 | -m/\-\-mode | Specify trimming mode (default: smart-gap) | | |
131 +-----------------------------+-------------------------------------------------------------------+ | |
132 | -o/\-\-output | Specify output file name | | |
133 +-----------------------------+-------------------------------------------------------------------+ | |
134 | -g/\-\-gaps | Specify gappyness threshold (between 0 and 1). *Default: 0.9* | | |
135 +-----------------------------+-------------------------------------------------------------------+ | |
136 | -if/\-\-input_file_format | Specify input file format*. *Default: auto-detect* | | |
137 +-----------------------------+-------------------------------------------------------------------+ | |
138 | -of/\-\-output_file_format | Specify output file format*. *Default: input file type* | | |
139 +-----------------------------+-------------------------------------------------------------------+ | |
140 | -l/\-\-log | Create a log file. *Default: off* | | |
141 +-----------------------------+-------------------------------------------------------------------+ | |
142 | -c/--complementary | Create a complementary alignment file. *Default: off* | | |
143 +-----------------------------+-------------------------------------------------------------------+ | |
144 | |
145 | |
146 \*Acceptable file formats include: | |
147 `fasta <https://en.wikipedia.org/wiki/FASTA_format>`_, | |
148 `clustal <http://meme-suite.org/doc/clustalw-format.html>`_, | |
149 `maf <http://www.bx.psu.edu/~dcking/man/maf.xhtml>`_, | |
150 `mauve <http://darlinglab.org/mauve/user-guide/files.html>`_, | |
151 `phylip <http://scikit-bio.org/docs/0.2.3/generated/skbio.io.phylip.html>`_, | |
152 `phylip-sequential <http://rosalind.info/glossary/phylip-format/>`_, | |
153 `phylip-relaxed <https://www.hiv.lanl.gov/content/sequence/FORMAT_CONVERSION/FormatExplain.html>`_, | |
154 `stockholm <https://en.wikipedia.org/wiki/Stockholm_format>`_ | |
155 |