agentsclimarketplace

Tab delimited export formatting for metabolomics

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/tab-delimited-export-formatting-for-metabolomics

Use when after completing batch normalization and quality control filtering on a Metaboprep object, when you need to share processed metabolomics data with collaborators, import into other statistical packages, or archive results in a platform-independent format.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill tab-delimited-export-formatting-for-metabolomics

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.7 KB, 923 tokens by cl100k_base, as published. Nobody here has run it

tab-delimited-export-formatting-for-metabolomics

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Export processed metabolite data, sample metadata, and feature metadata from a Metaboprep object into tab-delimited text files (.txt/.tsv) for downstream analysis in external tools. This skill enables interoperability by converting in-memory R objects into portable, standard tabular formats.

When to use

After completing batch normalization and quality control filtering on a Metaboprep object, when you need to share processed metabolomics data with collaborators, import into other statistical packages, or archive results in a platform-independent format. Trigger: you have a post-QC Metaboprep object and require tab-delimited outputs.

When NOT to use

  • Input is already in tab-delimited format and requires no further conversion
  • You need to preserve intermediate QC layers (use export with format='all' or other multi-layer options instead)
  • Downstream analysis requires native R Metaboprep object methods (e.g. feature_summary, sample_summary with tree_cut_height)

Inputs

  • Metaboprep object (post-quality_control)
  • Output directory path (string)

Outputs

  • Tab-delimited processed data matrix (.txt or .tsv)
  • Tab-delimited sample metadata (.txt or .tsv)
  • Tab-delimited feature metadata (.txt or .tsv)

How to apply

Load a quality-controlled Metaboprep object (post-batch_normalise and post-quality_control). Call the export() function with format='metaboprep' and specify an output directory; this writes three tab-delimited files: the processed data matrix, sample metadata (with exclusion flags and annotations), and feature metadata (with biochemical identifiers and exclusion codes). Verify file creation and check that row/column counts match expected sample and feature counts post-filtering. The export captures the final 'qc' data layer and all associated metadata, making it suitable for external validation, visualization, or statistical modeling.

Related tools

  • metaboprep (R package containing export() function and Metaboprep class definition) — https://github.com/MRCIEU/metaboprep
  • R (Host language for Metaboprep object manipulation and export execution)

Examples

export(mydata, directory = output_dir, format = "metaboprep")

Evaluation signals

  • Three tab-delimited files are created in the specified output directory with expected naming convention
  • File row counts match number of retained samples (post-exclusion) and feature counts (post-exclusion)
  • Sample metadata includes exclusion-related columns (reason_excluded, excluded flag)
  • Feature metadata includes biochemical annotation columns (metabolite_id, pathway, kegg, group_hmdb) and exclusion codes
  • Tab-delimited format can be successfully read into external tools (e.g., pandas, base R read.table, spreadsheet software) without parsing errors

Limitations

  • Export does not include visualization outputs (dendrogram trees, PCA plots); generate_report() should be used for HTML report and plots
  • Floating-point precision may be affected by tab-delimited serialization; verify precision matches original data layer if needed for very strict comparisons
  • No built-in version tracking or provenance metadata in the exported files; document Metaboprep version and QC parameters separately

Evidence

  • [methods] Call export() with format='metaboprep' to write processed data, sample metadata, and feature metadata as tab-delimited text files: "Call export() with format='metaboprep' to write processed data, sample metadata, and feature metadata as tab-delimited text files to the specified output directory."
  • [readme] metaboprep generates tab-delimited text file outputs suitable for use elsewhere: "Read in and processes (un)targeted metabolite data, saving datasets in tab-delimited format for use elsewhere"
  • [methods] Verify that tab-delimited exports exist after export function call: "Verify that the HTML report file (project_name_metaboprep_qc_report.html) and associated tab-delimited exports (.txt/.tsv) exist in the output directory."
  • [readme] metaboprep provides tab-delimited text file and HTML report as summary outputs: "Provide useful summary data in the form of tab-delimited text file and a html report"

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.