/tools/fastx_toolkit/fastx_renamer.xml

https://bitbucket.org/cistrome/cistrome-harvard/ · XML · 65 lines · 45 code · 19 blank · 1 comment · 0 complexity · aca60d780dc0ba6543cf73c890fdebfc MD5 · raw file

  1. <tool id="cshl_fastx_renamer" name="Rename sequences" version="0.0.11" >
  2. <description></description>
  3. <requirements><requirement type="package">fastx_toolkit</requirement></requirements>
  4. <command>zcat -f $input | fastx_renamer -n $TYPE -o $output -v
  5. #if $input.ext == "fastqsanger":
  6. -Q 33
  7. #end if
  8. </command>
  9. <inputs>
  10. <param format="fastqsolexa,fasta,fastqsanger" name="input" type="data" label="FASTQ/A Library to rename" />
  11. <param name="TYPE" type="select" label="Rename sequence identifiers to">
  12. <option value="SEQ">Nucleotides sequence</option>
  13. <option value="COUNT">Numeric Counter</option>
  14. </param>
  15. </inputs>
  16. <outputs>
  17. <data format="input" name="output" metadata_source="input" />
  18. </outputs>
  19. <help>
  20. **What it does**
  21. This tool renames the sequence identifiers in a FASTQ/A file.
  22. .. class:: infomark
  23. Use this tool at the beginning of your workflow, as a way to keep the original sequence (before trimming, clipping, barcode-removal, etc).
  24. --------
  25. **Example**
  26. The following Solexa-FASTQ file::
  27. @CSHL_4_FC042GAMMII_2_1_517_596
  28. GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
  29. +CSHL_4_FC042GAMMII_2_1_517_596
  30. 40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24 24 9 24 9 40 10 10 15 40
  31. Renamed to **nucleotides sequence**::
  32. @GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
  33. GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
  34. +GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
  35. 40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24 24 9 24 9 40 10 10 15 40
  36. Renamed to **numeric counter**::
  37. @1
  38. GGTCAATGATGAGTTGGCACTGTAGGCACCATCAAT
  39. +1
  40. 40 40 40 40 40 40 40 40 40 40 38 40 40 40 40 40 14 40 40 40 40 40 36 40 13 14 24 24 9 24 9 40 10 10 15 40
  41. ------
  42. This tool is based on `FASTX-toolkit`__ by Assaf Gordon.
  43. .. __: http://hannonlab.cshl.edu/fastx_toolkit/
  44. </help>
  45. </tool>
  46. <!-- FASTQ-to-FASTA is part of the FASTX-toolkit, by A.Gordon (gordon@cshl.edu) -->