Repository revision
11:a7b951572609

Repository 'modify_loom'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/modify_loom

Loom operations tool metadata
Miscellaneous
Manipulate, export and import loom data
modify_loom
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.10.9+galaxy1
0.10.9+galaxy1
python -c "import anndata as ad;print('anndata version: %s' % ad.__version__); import loompy;print('\nloompy version: %s' % loompy.__version__)"
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.10.9+galaxy1 (this tool)
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.10.9+galaxy0
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.10.3+galaxy1
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.7.5+galaxy1
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.7.5+galaxy0
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.7.4+galaxy1
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.6.22.post1+galaxy4
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.6.22.post1+galaxy3
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.6.22.post1+galaxy2
toolshed.g2.bx.psu.edu/repos/iuc/modify_loom/modify_loom/0.6.22.post1+galaxy1
modify_loom
Requirements (dependencies defined in the <requirements> tag set)
name version type
anndata 0.10.9 package
loompy 3.0.6 package
numpy 1.26.4 package
Additional information about this tool
#if $operation.to_perform == 'manipulate'
cp '${operation.loom}' converted.loom &&
python '$__tool_directory__/modify_loom.py' -f 'converted.loom'
    #if $operation.which_add.add_type == "cols":
    -a cols -c '${operation.which_add.cols}'
    #else if $operation.which_add.add_type == "rows":
    -a rows -r '${operation.which_add.rows}'
    #else if $operation.which_add.add_type == "layers":
    -a layers -l '${operation.which_add.layers}'
    #end if

#else if $operation.to_perform == 'export'
mkdir ./output &&
mkdir ./attributes &&
python '$__tool_directory__/loompy_to_tsv.py' -f '$operation.loom'

#else if $operation.to_perform == 'import'
    #if $operation.from.file_type == 'ad'

cat '$script_file' &&
python '$script_file'
    
    
    #else if $operation.from.file_type == 'tab'
python '$__tool_directory__/tsv_to_loompy.py'
    -c '${operation.coldata}'
    -r '${operation.rowdata}'
    -f '${operation.mainmatrix}'
        #if $operation.other_files
    '${operation.other_files}'
        #end if
    #end if
#end if
      
None
False
Functional tests
name inputs outputs required files
Test-1 operation|loom: addtest.loom
operation|which_add|cols: cols.tsv
operation|which_add|add_type: cols
operation|to_perform: manipulate
name: value
addtest.loom
cols.tsv
value
Test-2 operation|loom: addtest.loom
operation|which_add|rows: rows.tsv
operation|which_add|add_type: rows
operation|to_perform: manipulate
name: value
addtest.loom
rows.tsv
value
Test-3 operation|loom: addtest.loom
operation|which_add|layers: addlayer1.tsv
operation|which_add|add_type: layers
operation|to_perform: manipulate
name: value
addtest.loom
addlayer1.tsv
value
Test-4 operation|loom: loomtest.loom
operation|to_perform: export
loomtest.loom
Test-5 operation|from|anndata: krumsiek11.h5ad
operation|from|file_type: ad
operation|to_perform: import
name: value
krumsiek11.h5ad
value
Test-6 operation|from|mainmatrix: firstlayer.tsv
operation|from|other_files: secondlayer.tsv
operation|from|coldata: cols.tsv
operation|from|rowdata: rows.tsv
operation|from|file_type: tab
operation|to_perform: import
name: value
firstlayer.tsv
secondlayer.tsv
cols.tsv
rows.tsv
value