Skip to content

Commit

Permalink
remove glob in txp2gene
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Oct 30, 2024
1 parent 44d1cb7 commit 18cfdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/templates/mtx_to_h5ad_kallisto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 18cfdd7

Please sign in to comment.