Skip to content

Commit

Permalink
reorganise star template
Browse files Browse the repository at this point in the history
  • Loading branch information
zxBIB Almeida,Felipe (GCBDS) EXTERNAL committed Oct 7, 2024
1 parent 0ca1161 commit 28251b0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions modules/local/templates/mtx_to_h5ad_star.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ def input_to_adata(
adata.write_h5ad(f"{output}", compression="gzip")
print(f"Wrote h5ad file to {output}")

# dump versions
dump_versions()

return adata

#
# Run main script
#
Expand All @@ -85,8 +80,11 @@ def input_to_adata(
os.makedirs("${meta.id}", exist_ok=True)

# input_type comes from NF module
adata = input_to_adata(
input_to_adata(
input_data="${meta.input_type}",
output="${meta.id}/${meta.id}_${meta.input_type}_matrix.h5ad",
sample="${meta.id}"
)

# dump versions
dump_versions()

0 comments on commit 28251b0

Please sign in to comment.