comparison pyscenic_grn.xml @ 0:95431f03a8fc draft

planemo upload for repository https://github.com/ebi-gene-expression-group/container-galaxy-sc-tertiary/ commit 4990a52ac6fd3d97434a24051e5828c86c8a802c
author ebi-gxa
date Tue, 20 Aug 2024 12:48:39 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:95431f03a8fc
1 <tool id="pyscenic_grn" name="PySCENIC GRN" version="@TOOL_VERSION@+galaxy0" profile="21.09">
2 <description>infers gene regulatory networks</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="exit_code">
8 <![CDATA[
9 ln -s '${expression_mtx}' expr_mat.loom &&
10 ln -s '${tfs_fname}' tfs.txt &&
11 #if $use_arboretum
12 arboreto_with_multiprocessing.py
13 #else
14 pyscenic grn
15 #end if
16 -o tf2targets.tsv
17 $transpose
18 #if $method
19 -m '${method}'
20 #end if
21 #if $seed
22 --seed '${seed}'
23 #end if
24 --num_workers \${GALAXY_SLOTS:-1}
25 #if $cell_id_attribute
26 --cell_id_attribute '${cell_id_attribute}'
27 #end if
28 #if $gene_attribute
29 --gene_attribute '${gene_attribute}'
30 #end if
31 $sparse
32
33 expr_mat.loom tfs.txt &&
34 mv tf2targets.tsv '${tf2targets}'
35 ]]>
36 </command>
37 <inputs>
38 <param name="expression_mtx" type="data" format="loom" label="Expression Matrix Loom File" help="In format rows=genes x columns=cells"/>
39 <param name="tfs_fname" type="data" format="txt" label="Transcription Factors File" help="Simple text file, one transcription factor symbol per line"/>
40 <param name="use_arboretum" type="boolean" label="Use arboretum" checked="false" help="Uses the arboretum approach instead of pyscenic grn call, which can be better for multi processing"/>
41 <param name="transpose" type="boolean" truevalue="-t" falsevalue="" label="Transpose Expression Matrix" help="Use this if the matrix is cell x genes instead of genes x cells as expected"/>
42 <param name="method" type="select" label="Method">
43 <option value="genie3">GENIE3</option>
44 <option value="grnboost2" selected="true">GRNBoost2</option>
45 </param>
46 <param name="cell_id_attribute" type="text" optional="true" label="Cell ID Attribute"/>
47 <param name="gene_attribute" type="text" optional="true" label="Gene Attribute"/>
48 <param name="sparse" type="boolean" label="Sparse Matrix" truevalue="--sparse" falsevalue="" help="If set, load the expression data as a sparse matrix. Currently applies to the grn inference step only."/>
49 <param name="seed" type="integer" optional="true" label="Seed"/>
50 </inputs>
51 <outputs>
52 <data name="tf2targets" format="tabular" label="${tool.name} on ${on_string}: gene regulatory network"/>
53 </outputs>
54 <tests>
55 <test expect_num_outputs="1">
56 <param name="expression_mtx" value="expr_mat.loom"/>
57 <param name="tfs_fname" value="allTFs_hg38.txt"/>
58 <param name="seed" value="1"/>
59 <output name="tf2targets">
60 <assert_contents>
61 <has_n_lines n="1006973"/>
62 </assert_contents>
63 </output>
64 </test>
65 <test expect_num_outputs="1">
66 <param name="expression_mtx" value="expr_mat.loom"/>
67 <param name="tfs_fname" value="allTFs_hg38.txt"/>
68 <param name="use_arboretum" value="true"/>
69 <param name="seed" value="1"/>
70 <output name="tf2targets" ftype="tabular">
71 <assert_contents>
72 <has_n_lines n="1006973"/>
73 </assert_contents>
74 </output>
75 </test>
76 </tests>
77 <help><![CDATA[
78 This tool runs the `pyscenic grn` command to infer gene regulatory networks.
79
80 **Inputs:**
81
82 - Expression Matrix File: Loom file containing the expression matrix, (rows=genes x columns=cells)
83 - Transcription Factors File: TXT file with a list of transcription factors.
84
85 **Options:**
86
87 - Output File: Path to the output file (CSV format).
88 - Transpose Expression Matrix: If selected, transpose the expression matrix.
89 - Method: Algorithm for gene regulatory network reconstruction (default: GRNBoost2).
90 - Seed: Seed value for random state initialization.
91 - Number of Workers: Number of workers to use for computation.
92 - Client or Address: Client or IP address of the dask scheduler.
93 - Cell ID Attribute: Column attribute for cell identifiers in the loom file.
94 - Gene Attribute: Row attribute for gene symbols in the loom file.
95 - Load as Sparse Matrix: Load the expression data as a sparse matrix.
96 ]]></help>
97 <expand macro="citations"/>
98 </tool>