Internet of Science reviewed · under review · unreviewed · retracted · hub

FASTA statistics

table · content hash b249a7d72db9d90f6d14f999296ebff08c821192b3a61e8adbb301421db8e538 · pid local:b249a7d72db9d90f

statisticvalue
number_of_elements10
total_sequence_length9,618
avg_seq_len961.8
min_seq_len610
max_seq_len1,570
residue:A2,486
residue:C2,259
residue:G2,205
residue:T2,668
FASTA statistics Record count, length summary and residue counts of the input file.

Methods

Data were processed with the IoSCore components FileSource 0.2.0 (filePath = data/experimental/fasta/00010.fasta, chunkSize = 65536; 1 out), then FASTAReader 0.2.0 (strict = true; 1 in, 10 out), then FASTAStatistics 0.3.0 (perSection = true; 10 in, 19 out), then TableArtefact 0.1.0 (title = FASTA statistics, caption = Record count, length summary and residue counts of the input file.; 9 in), then TableArtefact 0.1.0 (title = Per-record statistics, caption = Length and residue counts of every record.; 10 in), then FigureArtefact 0.1.0 (title = Length distribution, caption = Histogram of the record lengths., type = histogram, x = length, bins = 8, width = 640, height = 400; 10 in), using IoSCore 0.3.0 on Node v20.19.1 (darwin arm64), run on 2026-10-25T17:02:17.517Z. Input: data/experimental/fasta/00010.fasta. Element types were validated at every component boundary (sample, 5 elements).

Inputs

Credits

Data curation
Jens Allmer
Software
Jens Allmer

Reproduce

Workflow FASTA statistics: summary table, per-record table and length histogram · document hash 102407c83aa9… · endpoint summary · open workflow

Workflow document
{
  "description": "Reads a FASTA file, computes its statistics once and ends in three endpoints: the summary (record count, length summary, residue counts) as a table, the per-record lengths and residue counts as a table, and the length distribution as a histogram. Run with: node bin/ios.js run-workflow src/workflows/examples/fasta-stats-report.workflow.json --set in.filePath=data/experimental/fasta/00010.fasta --artefacts <dir>",
  "edges": [
    {
      "from": "in",
      "to": "parse"
    },
    {
      "from": "parse",
      "to": "stats"
    },
    {
      "from": "stats",
      "fromPort": "summary",
      "to": "summary"
    },
    {
      "from": "stats",
      "fromPort": "records",
      "to": "records"
    },
    {
      "from": "stats",
      "fromPort": "records",
      "to": "lengths"
    }
  ],
  "name": "FASTA statistics: summary table, per-record table and length histogram",
  "nodes": [
    {
      "id": "in",
      "params": {
        "filePath": "data/experimental/fasta/00010.fasta"
      },
      "type": "FileSource"
    },
    {
      "id": "parse",
      "type": "FASTAReader"
    },
    {
      "id": "stats",
      "type": "FASTAStatistics"
    },
    {
      "id": "summary",
      "params": {
        "caption": "Record count, length summary and residue counts of the input file.",
        "title": "FASTA statistics"
      },
      "type": "TableArtefact"
    },
    {
      "id": "records",
      "params": {
        "caption": "Length and residue counts of every record.",
        "title": "Per-record statistics"
      },
      "type": "TableArtefact"
    },
    {
      "id": "lengths",
      "params": {
        "bins": 8,
        "caption": "Histogram of the record lengths.",
        "title": "Length distribution",
        "type": "histogram",
        "x": "length"
      },
      "type": "FigureArtefact"
    }
  ],
  "schema": "ioscore/workflow/1"
}
Execution record (JSON)
{
  "schema": "ioscore/execution-record/1",
  "name": "FASTA statistics: summary table, per-record table and length histogram",
  "ioscore": "0.3.0",
  "node": "v20.19.1",
  "platform": "darwin arm64",
  "startedAt": "2026-10-25T17:02:17.517Z",
  "finishedAt": "2026-10-25T17:02:17.525Z",
  "inputs": [
    "data/experimental/fasta/00010.fasta"
  ],
  "steps": [
    {
      "type": "FileSource",
      "version": "0.2.0",
      "params": {
        "filePath": "data/experimental/fasta/00010.fasta",
        "chunkSize": 65536
      },
      "stats": {
        "out": 1
      },
      "origin": "core"
    },
    {
      "type": "FASTAReader",
      "version": "0.2.0",
      "params": {
        "strict": true
      },
      "stats": {
        "in": 1,
        "out": 10,
        "dropped": 0
      },
      "origin": "core"
    },
    {
      "type": "FASTAStatistics",
      "version": "0.3.0",
      "params": {
        "perSection": true
      },
      "stats": {
        "in": 10,
        "out": 19,
        "dropped": 0
      },
      "origin": "core"
    },
    {
      "type": "TableArtefact",
      "version": "0.1.0",
      "params": {
        "title": "FASTA statistics",
        "caption": "Record count, length summary and residue counts of the input file.",
        "columns": []
      },
      "stats": {
        "in": 9
      },
      "origin": "core"
    },
    {
      "type": "TableArtefact",
      "version": "0.1.0",
      "params": {
        "title": "Per-record statistics",
        "caption": "Length and residue counts of every record.",
        "columns": []
      },
      "stats": {
        "in": 10
      },
      "origin": "core"
    },
    {
      "type": "FigureArtefact",
      "version": "0.1.0",
      "params": {
        "title": "Length distribution",
        "caption": "Histogram of the record lengths.",
        "type": "histogram",
        "x": "length",
        "y": "",
        "bins": 8,
        "width": 640,
        "height": 400
      },
      "stats": {
        "in": 10
      },
      "origin": "core"
    }
  ],
  "qc": {
    "level": "sample",
    "sample": 100,
    "checked": 5,
    "violations": [],
    "edges": 5
  }
}