comparison squidpy_spatial.py @ 3:d30ef0613122 draft

planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/squidpy commit 3c79b731a6c4379bfb0491ceebf767789c8b79c4
author goeckslab
date Tue, 14 May 2024 21:54:05 +0000
parents be0e7952e229
children
comparison
equal deleted inserted replaced
2:4a058bd23a12 3:d30ef0613122
49 49
50 if k == 'genes': # for spatial_autocorr and sepal 50 if k == 'genes': # for spatial_autocorr and sepal
51 options[k] = [e.strip() for e in v.split(',')] 51 options[k] = [e.strip() for e in v.split(',')]
52 elif k == 'radius': # for spatial_neighbors 52 elif k == 'radius': # for spatial_neighbors
53 options[k] = ast.literal_eval(v) 53 options[k] = ast.literal_eval(v)
54 elif k == 'numba_parallel': # for nhood_enrichment and ligrec
55 if v == 'false':
56 options[k] = False
57 elif v == 'true':
58 options[k] = True
59 elif k == 'interactions': # for ligrec 54 elif k == 'interactions': # for ligrec
60 options[k] = pd.read_csv(v, sep="\t") 55 options[k] = pd.read_csv(v, sep="\t")
61 elif k == 'max_neighs': 56 elif k == 'max_neighs':
62 options[k] = int(v) # for sepal 57 options[k] = int(v) # for sepal
63 58