Repository revision
30:22bd5861706d

Repository 'scanpy_compute_graph'
hg clone https://toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph

Scanpy ComputeGraph tool metadata
Miscellaneous
to derive kNN graph
scanpy_compute_graph
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.9.3+galaxy0
1.9.3+galaxy0
None
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.9.3+galaxy0 (this tool)
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+galaxy93
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+galaxy9
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+3+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+2+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+1+galaxy1
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+galaxy1
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.8.1+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.7.2+galaxy1
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.7.2+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.6.0+galaxy4
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.6.0+galaxy3
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.6.0+galaxy2
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.6.0+galaxy1
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.6.0+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.3+galaxy11
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.3+galaxy10
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.3+galaxy9
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.3+galaxy8
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.3+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.4.2+galaxy0
toolshed.g2.bx.psu.edu/repos/ebi-gxa/scanpy_compute_graph/scanpy_compute_graph/1.3.2+galaxy1
scanpy_compute_graph
Requirements (dependencies defined in the <requirements> tag set)
name version type
scanpy-scripts 1.9.301 package
Additional information about this tool
ln -s '${input_obj_file}' input.h5 &&
PYTHONIOENCODING=utf-8 scanpy-neighbors
#if $settings.default == "false"
    #if $settings.n_neighbors_file
        #set f = open($settings.n_neighbors_file.__str__)
        #set n_neighbors = f.read().strip()
        #silent f.close
    #elif $settings.n_neighbors
        #set n_neighbors = $settings.n_neighbors.__str__.strip()
    #end if

    #if $n_neighbors
        --n-neighbors $n_neighbors
    #end if
    #if $settings.key_added
        #set key_added = $settings.key_added
        #if $n_neighbors
            #set key_added = $key_added.replace('N_NEIGHBORS', $n_neighbors.__str__)
        #end if
        --key-added '${key_added}'
    #end if

    --method '${settings.method}'
    --metric '${settings.metric}'
    --random-state '${settings.random_seed}'
    #if $settings.use_rep
        --use-rep '${settings.use_rep}'
    #end if
    #if $settings.n_pcs
        --n-pcs '${settings.n_pcs}'
    #end if
    ${settings.knn}
#end if
    
    --input-format '${input_format}' input.h5
  
    
#if str($output_format).startswith('anndata')
    --show-obj stdout --output-format anndata output.h5
#else
    --show-obj stdout --output-format loom output.h5
#end if
  
None
False
Functional tests
name inputs outputs required files
Test-1 input_obj_file: run_pca.h5
input_format: anndata
output_format: anndata
settings|n_neighbors_file: n_neighbors.txt
settings|n_pcs: 50
settings|knn: True
settings|method: umap
settings|random_seed: 0
settings|default: False
name: value
run_pca.h5
n_neighbors.txt
value
Test-2 input_obj_file: run_pca.h5
input_format: anndata
output_format: anndata
settings|n_neighbors: 15
settings|n_pcs: 50
settings|knn: True
settings|method: umap
settings|random_seed: 0
settings|default: False
name: value
run_pca.h5
value