annotate GEMBASSY-1.0.3/doc/text/gshuffleseq.txt @ 1:84a17b3fad1f draft

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:20:29 -0400
parents 8300eb051bea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
1 gshuffleseq
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
2 Function
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
3
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
4 Create randomized sequence with conserved k-mer composition
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
5
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
6 Description
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
7
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
8 gshuffleseq shuffles and randomizes the given sequence, conserving the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
9 nucleotide/peptide k-mer content of the original sequence.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
10
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
11 For k=1, i.e. shuffling sequencing preserving single nucleotide composition,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
12 Fisher-Yates Algorithm is employed.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
13 For k>1, shuffling preserves all k-mers (all k where k=1~k). For example,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
14 k=3 preserves all triplet, doublet, and single nucleotide composition.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
15 Algorithm for k-mer preserved shuffling is non-trivial, which is solved
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
16 by graph theoretical approach with Eulerian random walks in the graph of
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
17 k-1-mers. See Jiang et al., Kandel et al., and Propp et al., for details
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
18 of this algorithm.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
19
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
20 G-language SOAP service is provided by the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
21 Institute for Advanced Biosciences, Keio University.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
22 The original web service is located at the following URL:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
23
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
24 http://www.g-language.org/wiki/soap
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
25
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
26 WSDL(RPC/Encoded) file is located at:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
27
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
28 http://soap.g-language.org/g-language.wsdl
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
29
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
30 Documentation on G-language Genome Analysis Environment methods are
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
31 provided at the Document Center
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
32
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
33 http://ws.g-language.org/gdoc/
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
34
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
35 Usage
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
36
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
37 Here is a sample session with gshuffleseq
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
38
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
39 % gshuffleseq tsw:hbb_human
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
40 Create randomized sequence with conserved k-mer composition
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
41 output sequence [hbb_human.fasta]:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
42
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
43 Go to the input files for this example
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
44 Go to the output files for this example
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
45
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
46 Command line arguments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
47
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
48 Standard (Mandatory) qualifiers:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
49 [-sequence] seqall Sequence(s) filename and optional format, or
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
50 reference (input USA)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
51 [-outseq] seqout [<sequence>.<format>] Sequence filename and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
52 optional format (output USA)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
53
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
54 Additional (Optional) qualifiers: (none)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
55 Advanced (Unprompted) qualifiers:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
56 -k integer [1] Sequence k-mer to preserve composition
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
57 (Any integer value)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
58
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
59 Associated qualifiers:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
60
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
61 "-sequence" associated qualifiers
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
62 -sbegin1 integer Start of each sequence to be used
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
63 -send1 integer End of each sequence to be used
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
64 -sreverse1 boolean Reverse (if DNA)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
65 -sask1 boolean Ask for begin/end/reverse
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
66 -snucleotide1 boolean Sequence is nucleotide
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
67 -sprotein1 boolean Sequence is protein
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
68 -slower1 boolean Make lower case
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
69 -supper1 boolean Make upper case
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
70 -scircular1 boolean Sequence is circular
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
71 -sformat1 string Input sequence format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
72 -iquery1 string Input query fields or ID list
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
73 -ioffset1 integer Input start position offset
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
74 -sdbname1 string Database name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
75 -sid1 string Entryname
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
76 -ufo1 string UFO features
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
77 -fformat1 string Features format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
78 -fopenfile1 string Features file name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
79
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
80 "-outseq" associated qualifiers
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
81 -osformat2 string Output seq format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
82 -osextension2 string File name extension
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
83 -osname2 string Base file name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
84 -osdirectory2 string Output directory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
85 -osdbname2 string Database name to add
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
86 -ossingle2 boolean Separate file for each entry
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
87 -oufo2 string UFO features
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
88 -offormat2 string Features format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
89 -ofname2 string Features file name
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
90 -ofdirectory2 string Output directory
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
91
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
92 General qualifiers:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
93 -auto boolean Turn off prompts
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
94 -stdout boolean Write first file to standard output
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
95 -filter boolean Read first file from standard input, write
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
96 first file to standard output
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
97 -options boolean Prompt for standard and additional values
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
98 -debug boolean Write debug output to program.dbg
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
99 -verbose boolean Report some/full command line options
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
100 -help boolean Report command line options and exit. More
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
101 information on associated and general
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
102 qualifiers can be found with -help -verbose
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
103 -warning boolean Report warnings
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
104 -error boolean Report errors
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
105 -fatal boolean Report fatal errors
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
106 -die boolean Report dying program messages
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
107 -version boolean Report version number and exit
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
108
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
109 Input file format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
110
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
111 The database definitions for following commands are available at
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
112 http://soap.g-language.org/kbws/embossrc
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
113
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
114 gshuffleseq reads one or more nucleotide or protein sequences.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
115
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
116 Output file format
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
117
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
118 The output from gshuffleseq is to .
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
119
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
120 File: hbb_human.fasta
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
121
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
122 >HBB_HUMAN P68871 Hemoglobin subunit beta (Beta-globin) (Hemoglobin beta chain) (LVV-hemorphin-7)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
123 KGWLDLVAGAAHFVRRLKMLLEVDWAAHEERVGTSNPNNALKNEAADVEVHSPTHVNPTQ
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
124 LVLVQVGFGTLHLQGVECPKPKPGGVALKPVAHLLAMKECTLVALGSDFYVDHGSDGEDK
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
125 GFKAYVLATSFFAYTNFLHGKVKHVLF
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
126
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
127
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
128 Data files
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
129
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
130 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
131
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
132 Notes
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
133
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
134 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
135
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
136 References
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
137
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
138 Fisher R.A. and Yates F. (1938) "Example 12", Statistical Tables, London
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
139
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
140 Durstenfeld R. (1964) "Algorithm 235: Random permutation", CACM 7(7):420
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
141
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
142 Jiang M., Anderson J., Gillespie J., and Mayne M. (2008) "uShuffle:
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
143 a useful tool for shuffling biological sequences while preserving the
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
144 k-let counts", BMC Bioinformatics 9:192
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
145
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
146 Kandel D., Matias Y., Unver R., and Winker P. (1996) "Shuffling biological
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
147 sequences", Discrete Applied Mathematics 71(1-3):171-185
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
148
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
149 Propp J.G. and Wilson D.B. (1998) "How to get a perfectly random sample
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
150 from a generic Markov chain and generate a random spanning tree of a
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
151 directed graph", Journal of Algorithms 27(2):170-217
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
152
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
153 Arakawa, K., Mori, K., Ikeda, K., Matsuzaki, T., Konayashi, Y., and
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
154 Tomita, M. (2003) G-language Genome Analysis Environment: A Workbench
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
155 for Nucleotide Sequence Data Mining, Bioinformatics, 19, 305-306.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
156
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
157 Arakawa, K. and Tomita, M. (2006) G-language System as a Platform for
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
158 large-scale analysis of high-throughput omics data, J. Pest Sci.,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
159 31, 7.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
160
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
161 Arakawa, K., Kido, N., Oshita, K., Tomita, M. (2010) G-language Genome
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
162 Analysis Environment with REST and SOAP Web Service Interfaces,
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
163 Nucleic Acids Res., 38, W700-W705.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
164
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
165 Warnings
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
166
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
167 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
168
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
169 Diagnostic Error Messages
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
170
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
171 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
172
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
173 Exit status
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
174
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
175 It always exits with a status of 0.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
176
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
177 Known bugs
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
178
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
179 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
180
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
181 See also
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
182
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
183 shuffleseq Shuffles a set of sequences maintaining composition
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
184
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
185 Author(s)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
186
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
187 Hidetoshi Itaya (celery@g-language.org)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
188 Institute for Advanced Biosciences, Keio University
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
189 252-0882 Japan
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
190
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
191 Kazuharu Arakawa (gaou@sfc.keio.ac.jp)
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
192 Institute for Advanced Biosciences, Keio University
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
193 252-0882 Japan
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
194
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
195 History
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
196
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
197 2012 - Written by Hidetoshi Itaya
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
198 2013 - Fixed by Hidetoshi Itaya
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
199
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
200 Target users
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
201
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
202 This program is intended to be used by everyone and everything, from
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
203 naive users to embedded scripts.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
204
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
205 Comments
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
206
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
207 None.
8300eb051bea Initial upload
ktnyt
parents:
diff changeset
208