Mercurial > repos > erinija > shuffle_sequences
comparison shuffle_sequences.xml @ 0:424506a8adf7 draft default tip
"planemo upload commit 1a32efb8343938e8d49190003f251c78b5a58225-dirty"
| author | erinija |
|---|---|
| date | Fri, 01 May 2020 12:11:39 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:424506a8adf7 |
|---|---|
| 1 <tool id="shuffle_sequences" name="Shuffle nucleotides in fasta" version="0.1.0"> | |
| 2 <requirements> | |
| 3 <requirement type="package" version="1.2.2">ushuffle</requirement> | |
| 4 </requirements> | |
| 5 <command detect_errors="exit_code" interpreter="sh"><![CDATA[ | |
| 6 shuffle_sequences.sh "$input1" "$input2" "$output1" | |
| 7 ]]></command> | |
| 8 <inputs> | |
| 9 <param type="data" name="input1" format="fasta" label="From fasta"/> | |
| 10 <param type="integer" name="input2" value="2" label="preserve frequency of k-mers" /> | |
| 11 </inputs> | |
| 12 <outputs> | |
| 13 <data name="output1" format="fasta" /> | |
| 14 </outputs> | |
| 15 <tests> | |
| 16 <test> | |
| 17 <param name="input1" value="seq1000.fasta"/> | |
| 18 <param name="input2" value="2"/> | |
| 19 <output name="output1"> | |
| 20 <assert_contents> | |
| 21 <has_text text=">chr9:42475963-42476182" /> | |
| 22 <has_text text=">chr9:42566360-42566579" /> | |
| 23 <has_n_lines n="2000" /> | |
| 24 </assert_contents> | |
| 25 </output> | |
| 26 </test> | |
| 27 </tests> | |
| 28 <help><![CDATA[ | |
| 29 | |
| 30 | |
| 31 CALL | |
| 32 sh shuffle_sequences.sh input.fasta k output.fasta | |
| 33 | |
| 34 INPUT | |
| 35 input.fasta - input fasta file | |
| 36 k - 'preserve frequency of k letters (dinucleotide k=2)' | |
| 37 | |
| 38 OUTPUT | |
| 39 output.fasta - shuffle fasta file | |
| 40 | |
| 41 DESCRIPTION | |
| 42 Wrapper for ushuffle program written by M. Jiang. | |
| 43 The ushuffle shuffles nucleotides in fasta sequence preserving frequency | |
| 44 of k-mers, a positional order is changed. By default k=2. | |
| 45 A sequence in fasta file is shuffled only once. The output fasta | |
| 46 in the identifier line contains the original sequence; a shuffled sequence | |
| 47 is output on the second line. | |
| 48 | |
| 49 REQUIREMENT | |
| 50 ushuffle installed | |
| 51 conda install -c bioconda ushuffle | |
| 52 | |
| 53 | |
| 54 ]]></help> | |
| 55 <citations> | |
| 56 <citation type="bibtex"> | |
| 57 @article{jiang2008ushuffle, | |
| 58 title={uShuffle: a useful tool for shuffling biological sequences while preserving the k-let counts}, | |
| 59 author={Jiang, Minghui and Anderson, James and Gillespie, Joel and Mayne, Martin}, | |
| 60 journal={BMC bioinformatics}, | |
| 61 volume={9}, | |
| 62 number={1}, | |
| 63 pages={192}, | |
| 64 year={2008}, | |
| 65 publisher={Springer}, | |
| 66 url = {https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-9-192} | |
| 67 }</citation> | |
| 68 </citations> | |
| 69 </tool> | |
| 70 |
