From 18cfdd7571ddb80234ff7e6ed2c58f6360605292 Mon Sep 17 00:00:00 2001 From: Felipe Marques de Almeida Date: Wed, 30 Oct 2024 11:04:53 +0000 Subject: [PATCH] remove glob in txp2gene --- modules/local/templates/mtx_to_h5ad_kallisto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/local/templates/mtx_to_h5ad_kallisto.py b/modules/local/templates/mtx_to_h5ad_kallisto.py index 37f66c5f..8d0f0909 100755 --- a/modules/local/templates/mtx_to_h5ad_kallisto.py +++ b/modules/local/templates/mtx_to_h5ad_kallisto.py @@ -25,7 +25,7 @@ def _mtx_to_adata( adata.var_names = pd.read_csv(features, header=None, sep="\\t")[0].values adata.obs["sample"] = sample - txp2gene = pd.read_table(glob.glob(f"{t2g}")[0], header=None, names=["gene_id", "gene_symbol"], usecols=[1, 2]) + txp2gene = pd.read_table(f"{t2g}", header=None, names=["gene_id", "gene_symbol"], usecols=[1, 2]) txp2gene = txp2gene.drop_duplicates(subset="gene_id").set_index("gene_id") adata.var = adata.var.join(txp2gene, how="left")