agentsclimarketplace

Stream trajectory data formatting

Skill HolobiomicsLab/asb-skill-collections/collections/epigenomics/v1/skills/stream-trajectory-data-formatting

Use when you have completed peak calling and cell annotation in ArchR and want to perform trajectory inference or visualization in STREAM. Apply it specifically when your analysis goal requires STREAM's specialized trajectory reconstruction methods (e.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill stream-trajectory-data-formatting

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.9 KB, 975 tokens by cl100k_base, as published. Nobody here has run it

Reconstruct peak matrix export for STREAM compatibility via exportPeakMatrixForSTREAM

Summary

Export a peak-by-cell matrix from ArchR in a format compatible with STREAM trajectory analysis tool. This skill enables interoperability between ArchR's scATAC-seq processing and STREAM's trajectory inference, allowing users to leverage STREAM's visualization and analysis capabilities on ArchR-processed peak data.

When to use

Use this skill when you have completed peak calling and cell annotation in ArchR and want to perform trajectory inference or visualization in STREAM. Apply it specifically when your analysis goal requires STREAM's specialized trajectory reconstruction methods (e.g., elastic principal graphs, branching structure inference) on single-cell ATAC-seq peak data.

When NOT to use

  • If your downstream trajectory tool is monocle3 or Slingshot — ArchR directly supports these via getMonocleTrajectories and addSlingShotTrajectories, without export overhead.
  • If you need to preserve full dimensionality reduction or embedding information — STREAM export focuses only on the peak matrix; trajectory-specific embeddings from ArchR are not exported.
  • If your peak matrix is already in a STREAM-compatible format from another source — re-exporting introduces redundant processing.

Inputs

  • ArchR project object (processed with peak calls and cell annotations)
  • Peak-by-cell accessibility matrix (internal ArchR representation)

Outputs

  • Peak-by-cell matrix in CSV or TSV format compatible with STREAM
  • Matrix with peaks as rows and cells as columns

How to apply

Load a processed ArchR project object containing peak calls and cell annotations. Call the exportPeakMatrixForSTREAM function on the ArchR project to generate a peak-by-cell matrix formatted for STREAM compatibility. The function produces output in CSV or TSV format that conforms to STREAM's expected matrix structure (peaks as rows, cells as columns, binary or accessibility values as matrix entries). Write the resulting matrix to a file and validate that the output dimensions match your peak and cell counts before importing into STREAM. The export preserves the peak-level and cell-level metadata necessary for downstream trajectory analysis.

Related tools

  • ArchR (Generates processed peak-by-cell matrix from scATAC-seq data and exports via exportPeakMatrixForSTREAM function) — https://github.com/GreenleafLab/ArchR
  • STREAM (Downstream trajectory analysis tool that accepts the exported peak matrix for elastic principal graph inference and trajectory visualization)
  • R (Environment in which ArchR and exportPeakMatrixForSTREAM are executed)

Examples

exportPeakMatrixForSTREAM(ArchRProj = proj, outputFile = "./peak_matrix_for_stream.csv")

Evaluation signals

  • Output file exists and is readable in CSV or TSV format with expected dimensions (number of peaks × number of cells).
  • Matrix values are consistent with peak accessibility representation (binary or numeric accessibility scores); no missing or NaN values in core data.
  • Cell and peak identifiers in the matrix match those in the original ArchR project object.
  • File can be successfully imported into STREAM without parse errors or format mismatches.
  • Row and column counts in exported matrix align with peak call and cell annotation counts from the ArchR project.

Limitations

  • Export focuses on peak-by-cell matrix only; trajectory-aware metadata, cell-type annotations, and dimensionality reductions computed in ArchR are not automatically exported.
  • STREAM export is a one-way conversion; modifications made in STREAM cannot be re-imported into ArchR.
  • Large projects (millions of peaks or cells) may produce very large CSV/TSV files; memory and disk constraints may apply.
  • The function assumes a standard ArchR project structure; non-standard or corrupted projects may fail export silently or produce malformed output.

Evidence

  • [intro] ArchR enables export of a peak matrix that is compatible with STREAM through the exportPeakMatrixForSTREAM function.: "ArchR enables export of a peak matrix that is compatible with STREAM through the exportPeakMatrixForSTREAM function"
  • [intro] Workflow steps for the skill include loading ArchR project, calling exportPeakMatrixForSTREAM, and writing to STREAM-compatible format.: "Load a processed ArchR project object containing peak calls and cell annotations. 2. Call exportPeakMatrixForSTREAM on the ArchR project to generate a peak-by-cell matrix formatted for STREAM"
  • [readme] ArchR is a full-featured R package for processing and analyzing single-cell ATAC-seq data.: "ArchR is a full-featured R package for processing and analyzing single-cell ATAC-seq data"
  • [readme] ArchR now enables export of a peak matrix compatible with STREAM.: "ArchR now enables export of a peak matrix that is compatible with STREAM! See updates with exportPeakMatrixForSTREAM"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.