annotate mytools/fastashuffle2.xml @ 7:f0dc65e7f6c0

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:59:07 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
1 <tool id="seqshuffle2" name="shuffle sequence">
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
2 <description>preserving dinucleotide frequency</description>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">fasta-dinucleotide-shuffle.py -f $input -t $tag -c $n -s $seed > $output </command>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" format="fasta" type="data" label="Original sequence file"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
6 <param name="tag" type="text" size="40" value="-shuffled" label="tag added to shuffled sequence name"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
7 <param name="n" type="integer" value="1" label="number of shuffled copies for each sequence"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
8 <param name="seed" type="integer" value="1" label="random seed" help="the same seed gives the same random sequences"/>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
9 </inputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
10 <outputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
11 <data format="fasta" name="output" />
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
12 </outputs>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
13 <help>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
14
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
15 **What it does**
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
16
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
17 This tool shuffles the sequences in the input file but preserves the dinucleotide frequency of each sequence.
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
18
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
19 The code implements the Altschul-Erikson dinucleotide shuffle algorithm, described in "Significance of nucleotide sequence alignments: A method for random sequence permutation that preserves dinucleotide and codon usage", S.F. Altschul and B.W. Erikson, Mol. Biol. Evol., 2(6):526--538, 1985.
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
20
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
21 Code adapted from http://bioinformatics.bc.edu/clotelab/RNAdinucleotideShuffle/dinucleotideShuffle.html
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
22
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
23 </help>
f0dc65e7f6c0 Uploaded
xuebing
parents:
diff changeset
24 </tool>