# HG changeset patch # User schang # Date 1417568017 18000 # Node ID 451df50fb4d4f10df0bba7fd0014598988b22620 # Parent 348ffb045343d8556457cf76369bb36cf07b18aa Uploaded diff -r 348ffb045343 -r 451df50fb4d4 frp_tool.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frp_tool.xml Tue Dec 02 19:53:37 2014 -0500 @@ -0,0 +1,83 @@ + + for SAM outputs + + matplotlib.pyplot + + frp_tool.py -i $identity -b $begin -l $length -t "$title" -m "$microbiome" -c $color $input $ref_genome $out_file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +**What it does** + +This tool creates a fragment recruitment plot from a SAM input file. Its main purpose is to display a graph of aligned metagenomic reads against an organism's reference genome. The percent identity is calculated based on the MD: tag in the optional form field of the SAM format. + +------ + +**Input Datasets/Files** + +Two input types are required in this tool: + +1. Reference genome: the reference sequence in FASTA format used for alignment; it can be uploaded via Get Data -> Upload File. + +2. SAM format dataset: can be uploaded via Get Data -> Upload File. It can also be obtained after alignment with Bowtie2. + +If using Bowtie2 output, follow these steps to format the file properly: + +1. Filter the BAM/SAM output from Bowtie2 by executing the "samtool_filter2" tool from the Tool Shed. More information can be found in this link: http://toolshed.g2.bx.psu.edu/view/devteam/samtool_filter2 + +2. Use these options in the samtool_filter2: + + Exclude Header + + Minimum MAPQ quality score = 1 + + .. class:: infomark + + **TIP:** This ensures the file contains all aligned reads without any missing MD tags per line. + +3. Convert BAM-to-SAM by using using the tool "bam_to_sam" installed from the Tool Shed. Additional information can be found in this link:: http://toolshed.g2.bx.psu.edu/view/devteam/bam_to_sam + +------ + +**Output Example** + +An example image (png format) of a fragment recruitment plot. + +.. image:: ${static_path}/images/frp_output_small.png + + + + + + \ No newline at end of file