Skip to content
Agentmart
Submit a tool

wgcna-power-threshold

Given a dataset name, find its expression matrix on the VEuPathDB workflow server, rsync it locally, and determine the WGCNA soft-threshold power.

Skill by VEuPathDB

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying wgcna-power-threshold?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/veupathdb-wgcna-power-threshold

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Given a dataset name, find its expression matrix on the VEuPathDB workflow server, rsync it locally, and determine the WGCNA soft-threshold power.

Use cases: backend, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/wgcna-power-threshold

Tools it pre-approves 1

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash

What's inside

Skill name
wgcna-power-threshold
Description
Given a dataset name, find its expression matrix on the VEuPathDB workflow server, rsync it locally, and determine the WGCNA soft-threshold power.
License
Apache-2.0
Allowed tools
Bash
Instructions
175 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves any shell command

Files (1)

  • SKILL.md

SKILL.md (first lines)

!`cat ${CLAUDE_SKILL_DIR}/../../shared/sync-dataset-steps.md`

Substitute every occurrence of `DATASET_NAME` above with: **$ARGUMENTS**

After completing the steps above you have `remotePath` — the full path to the dataset directory on yew. Continue:

---

## Step 4 — Determine data type from the remote path

Inspect `remotePath` for "rnaseq" or "microarray" (case-insensitive).

- If it contains **rnaseq** → proceed to Step 5.
- If it contains **microarray** → skip to Step 6.
- If neither is clear, stop and ask the user to clarify the data type.

---

## Step 5 — RNAseq: find the expression matrix

Search for WGCNA input files under `remotePath`:

```bash
ssh yew "find <remotePath> -type f -name 'wgcnaInput*.txt'"
```

**Case A — only `wgcnaInput_unstranded.txt` found:**
Capture its full path as `remoteInputFile`. Skip to Step 7.

**Case B — both `wgcnaInput_firststrand.txt` and `wgcnaInput_secondstrand.txt` found:**
Rsync both files locally to decide which is sense:

```bash
mkdir -p /tmp/$ARGUMENTS
rsync -aL yew:<path/to/wgcnaInput_firststrand.txt> /tmp/$ARGUMENTS/
rsync -aL yew:<path/to/wgcnaInput_secondstrand.txt> /tmp/$ARGUMENTS/
```

Run R to compare column means:

```bash
Rscript ${CLAUDE_SKILL_DIR}/../../bin/select-strand.R $ARGUMENTS
```

- If output is `AMBIGUOUS`, stop and tell the user the strand could not be determined (report both means).
- Otherwise set `remoteInputFile` to the remote path of the selected strand file. Skip to Step 7.

**Case C — no `wgcnaInput*.txt` files found:**
Stop and tell the user no WGCNA input files were found under `remotePath`.

---

## Step 6 — Microarray: find the expression matrix

```bash
ssh yew "find <remotePath> -type f -name 'profiles.txt'"
```

If exactly one file is found, capture it as `remoteInputFile`. Continue to Step 7.  
If zero files are found, stop and tell the user no `profiles.txt` was found — list all `.txt` files under `remotePath` and ask the user to pick one.  
If more than one is found, show the list and ask the user to pick one.

---

## Step 7 — Locate analysisConfig.xml via manual delivery path

!`cat ${CLAUDE_SKILL_DIR}/../../shared/manual-delivery-path.md`

Substitute every occurrence of `DATASET_NAME` above with: **$ARGUMENTS**

`technologyType` was determined in Step 4 (`RNASeq` or `Microarray`).

After completing the steps above you have `manualDeliveryPath`. The `analysisConfig.xml` lives at:

```
<manualDeliveryPath>/analysisConfig.xml
```

Rsync it along with the chosen input file:

```bash
mkdir -p /tmp/$ARGUMENTS
rsync -aL yew:<remoteInputFile> /tmp/$ARGUMENTS/
rsync -aL yew:<manualDeliveryPath>/analysisConfig.xml /tmp/$ARGUMENTS/
```

If `analysisConfig.xml` is not found on the remote (rsync exits non-zero or the file is absent), stop and tell the user it was not found at `<manualDeliveryPath>/analysisConfig.xml`.

Write a `paths.txt` file recording the key remote paths found during this run:

```bash
cat > /tmp/$ARGUMENTS/paths.txt <<EOF
datasetName:         $ARGUMENTS
remoteInputFile:     <remoteInputFile>
manualDeliveryPath:  <manualDeliveryPath>
analysisConfig:      <manualDeliveryPath>/analysisConfig.xml
EOF
```

---

## Step 8 — Determine WGCNA soft-threshold power and save plot

```bash
Rscript ${CLAUDE_SKILL_DIR}/../../bin/wgcna-power-threshold.R $ARGUMENTS
```

Capture the recommended power as `softThresholdPower`. If it is `NA`, stop and tell the user no clear threshold was found and show the fit table.

---

## Step 9 — Write per-dataset output directory

By this point you have captured:
- `datasetName` = `$ARGUMENTS`
- `softThresholdPower` from Step 8
- `organismAbbrev` from Step 2
- `inputFileBasename` = basename of `remoteInputFile`
- `strandType` = one of: `firststrand`, `secondstrand`, `unstranded`, or `microarray`

From VEuPathDB/dataset-cleaner, Apache-2.0.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Apr 3, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from VEuPathDB

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get wgcna-power-threshold running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying wgcna-power-threshold?

CallGet help
Cite this page

wgcna-power-threshold skill. Agent Mart. https://agentmart.dev/skills/veupathdb-wgcna-power-threshold (last updated 2026-10-24)