Mercurial > repos > petr-novak > re_utils
annotate plot_comparative_clustering_summary.xml @ 27:eefed7a82001 draft
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
author | petr-novak |
---|---|
date | Wed, 02 Aug 2023 12:59:29 +0000 |
parents | 58807b35777a |
children |
rev | line source |
---|---|
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
1 <tool id="plot_comparative" name="Visualization of comparative clustering" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
2 version="1.0.0.3"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
3 <description>Simple utility to create visualization of RepeatExplorer conmparative |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
4 analysis |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
5 </description> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
6 <requirements> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
7 <requirement type="package">r-optparse</requirement> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
8 </requirements> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
9 <required_files> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
10 <include type="literal" path="plot_comparative_clustering_summary.R"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
11 </required_files> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
12 <command detect_errors="exit_code"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
13 Rscript '$__tool_directory__'/plot_comparative_clustering_summary.R |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
14 --cluster_table=$cluster_table |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
15 --comparative_counts=$counts |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
16 --number_of_colors=$number_of_colors |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
17 --output=$outpdf |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
18 $nuclear_only |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
19 #if $normalization.use_genome_size: |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
20 --genome_size $normalization.genome_size_table |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
21 #end if |
17 | 22 </command> |
23 | |
24 <inputs> | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
25 <param format="txt" type="data" name="cluster_table" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
26 label="file from RepeatExplorer2 clustering - CLUSTER_TABLE.csv"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
27 <param format="txt" type="data" name="counts" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
28 label="file from RepeatExplorer2 output - COMPARATIVE_ANALYSIS_COUNTS.csv"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
29 <param value="10" min="2" max="20" type="integer" name="number_of_colors" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
30 label="Maximum number of color used for plottting"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
31 <param value="false" type="boolean" truevalue="--nuclear_only" falsevalue="" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
32 name="nuclear_only" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
33 label="Remove all non-nuclear sequences (organel and contamination)"/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
34 <conditional name="normalization"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
35 <param name="use_genome_size" type="boolean" checked="False" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
36 label="Normalize to genome size" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
37 help="Note that if this option is used, non-nuclear sequences are always removed."/> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
38 <when value="false"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
39 <!-- pass --> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
40 </when> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
41 <when value="true"> |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
42 <param name="genome_size_table" type="data" format="txt" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
43 label="table with genome sizes"/> |
17 | 44 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
45 </when> |
17 | 46 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
47 </conditional> |
17 | 48 </inputs> |
49 | |
50 <outputs> | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
51 <data format="pdf" name="outpdf" label="Comparative analysis summary"/> |
17 | 52 </outputs> |
53 <help> | |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
54 **Visualization of comparative clustering** |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
55 Visualization can be created two output files from RepeatExplorer pipeline. |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
56 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
57 Input file CLUSTER_TABLE.csv contains automatic annotation, information about |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
58 cluster sizes and the total number of reads used for analysis |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
59 Example of CLUSTER_TABLE.csv: :: |
17 | 60 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
61 "Number_of_reads_in_clusters" 3002 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
62 "Number_of_clusters" 895 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
63 "Number_of_superclusters" 895 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
64 "Number_of_singlets" 6998 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
65 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
66 "Number_of_analyzed_reads" 10000 |
17 | 67 |
22
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
68 "Cluster" "Supercluster" "Size" "Size_adjusted" "Automatic_annotation" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
69 "TAREAN_classification" "Final_annotation" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
70 1 1 61 61 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
71 2 2 59 59 "All/repeat/satellite" "Putative satellites (high confidence)" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
72 3 3 45 45 "All/repeat/satellite" "Putative satellites (low confidence)" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
73 4 4 38 38 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
74 5 5 32 32 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
75 6 6 28 28 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
76 7 7 25 25 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
77 8 8 24 24 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
78 9 9 23 23 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
79 10 10 22 22 |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
80 "All/repeat/mobile_element/Class_I/LTR/Ty3_gypsy/non-chromovirus/OTA/Tat/Ogre" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
81 "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
82 11 11 20 20 "All" "Other" |
58807b35777a
planemo upload commit 20bdf879b52796d3fb251a20807191ff02084d3c-dirty
petr-novak
parents:
17
diff
changeset
|
83 12 12 20 20 "All" "Other" |
17 | 84 |
85 | |
86 </help> | |
87 </tool> |