phac-nml/irida-next

Data Export - manifest.txt

Closed this issue · 0 comments

Summary

Non technical users find it hard to understand manifest.json so we want to provide them an alternative manifest.txt. This should look similar to manifest preview but additionally it should show the details contained in the manifest.json.

Example:
image

{
  "type": "Samples Export",
  "date": "2024-08-09",
  "children": [
    {
      "name": "INXT_PRJ_AYIJBKDPRH",
      "type": "folder",
      "irida-next-type": "project",
      "irida-next-name": "Outbreak 2022",
      "children": [
        {
          "name": "INXT_SAM_AYIJBKDTXV",
          "type": "folder",
          "irida-next-type": "sample",
          "irida-next-name": "Bartonella henselae/Outbreak 2022 Sample 10",
          "children": [
            {
              "name": "INXT_ATT_AYIJAYRD6E",
              "type": "folder",
              "irida-next-type": "attachment",
              "children": [
                {
                  "name": "08-5578-small_S1_L001_R1_001.fastq.gz",
                  "type": "file",
                  "metadata": {
                    "format": "fastq",
                    "direction": "forward",
                    "type": "illumina_pe"
                  }
                },
                {
                  "name": "08-5578-small_S1_L001_R2_001.fastq.gz",
                  "type": "file",
                  "metadata": {
                    "format": "fastq",
                    "direction": "reverse",
                    "type": "illumina_pe"
                  }
                }
              ]
            },
            {
              "name": "INXT_ATT_AYIJBKDT57",
              "type": "folder",
              "irida-next-type": "attachment",
              "children": [
                {
                  "name": "reference.fasta",
                  "type": "file",
                  "metadata": {
                    "format": "fasta",
                    "type": "assembly"
                  }
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
type: Samples Export
date: 2024-08-09

contents:
b5a78c8b-f5bc-460e-bcdd-d94a3390e0f1/
├─ manifest.json
├─ manifest.txt
├─ INXT_PRJ_AYIJBKDPRH/ (Outbreak 2022)
│  ├─ INXT_SAM_AYIJBKDTXV/ (Bartonella henselae/Outbreak 2022 Sample 10)
│  │  ├─ INXT_ATT_AYIJAYRD6E/
│  │  │  ├─ 08-5578-small_S1_L001_R1_001.fastq.gz
│  │  │  ├─ 08-5578-small_S1_L001_R2_001.fastq.gz
│  │  ├─ INXT_ATT_AYIJBKDT57/
│  │  │  ├─ reference.fasta