Skip to content

Commit

Permalink
Simplifying output structure to reflect the change of multiome pipeli…
Browse files Browse the repository at this point in the history
…ne's output name to secondary_analysis.h5mu
  • Loading branch information
Sean Donahue committed Jan 9, 2024
1 parent e6c9b63 commit f8a78bd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
4 changes: 0 additions & 4 deletions bin/azimuth/write_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ def main(orig_secondary_analysis_matrix:Path, secondary_analysis_h5ad: Path, ver
else:
ad.write("secondary_analysis.h5ad") # save final secondary analysis matrix

#Both outputs are optional now, throw an error if neither is written out so that the CWL workflow returns failure
if not orig_secondary_analysis_matrix.name.exists() and not Path("secondary_analysis.h5ad").exists():
raise ValueError(f"Neither {orig_secondary_analysis_matrix.name} nor secondary_analysis.h5ad written")


if __name__ == "__main__":
p = ArgumentParser()
Expand Down
7 changes: 1 addition & 6 deletions pipeline-manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
[
{
"pattern": "secondary_analysis\\.h5ad",
"pattern": "secondary_analysis\\.*",
"description": "Normalized gene expression with additional metadata, in HDF5 format, readable with the 'anndata' Python package",
"edam_ontology_term": "EDAM_1.24.format_3590"
},
{
"pattern": "multiome_normalized\\.h5mu",
"description": "Normalized gene expression and chromatin accessibility with additional metadata, in HDF5 format, readable with the 'muon' Python package",
"edam_ontology_term": "EDAM_1.24.format_3590"
}
]
2 changes: 1 addition & 1 deletion pipeline.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ steps:
version_metadata:
source: azimuth/version_metadata
out:
- annotated_matrix
- annotated_matrix
6 changes: 1 addition & 5 deletions steps/write-metadata.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ outputs:
annotated_matrix:
type: File?
outputBinding:
glob: "secondary_analysis.h5ad"
annotated_multiome_matrix:
type: File?
outputBinding:
glob: "multiome_normalized.h5ad"
glob: "secondary_analysis*"

0 comments on commit f8a78bd

Please sign in to comment.