{
  "a_galaxy_workflow": "true",
  "annotation": "Train an Image Learner tissue classifier from prepared GTEx v11 expression images and metadata.",
  "comments": [],
  "creator": [
    {
      "class": "Person",
      "identifier": "https://orcid.org/0000-0002-4403-6684",
      "name": "Paulo Cilas Morais Lyra Junior"
    },
    {
      "class": "Person",
      "identifier": "https://orcid.org/0000-0002-4583-5226",
      "name": "Jeremy Goecks"
    }
  ],
  "format-version": "0.1",
  "license": "AGPL-3.0-or-later",
  "name": "Image Learner - GTEx Tissue Modeling",
  "report": {
    "markdown": "\n# Workflow Execution Report\n\n## Workflow Inputs\n```galaxy\ninvocation_inputs()\n```\n\n## Workflow Outputs\n```galaxy\ninvocation_outputs()\n```\n\n## Workflow\n```galaxy\nworkflow_display()\n```\n"
  },
  "steps": {
    "0": {
      "annotation": "Prepared metadata CSV with image_path and label columns. The label column is derived from SMTSD in GTEx_Analysis_v11_Annotations_SampleAttributesDS.txt.",
      "content_id": null,
      "errors": null,
      "id": 0,
      "input_connections": {},
      "inputs": [
        {
          "description": "Prepared metadata CSV with image_path and label columns.",
          "name": "selected_gtex_v11_tpm_image_tissue_labels.csv"
        }
      ],
      "label": "selected_gtex_v11_tpm_image_tissue_labels.csv",
      "name": "Input dataset",
      "outputs": [],
      "position": {
        "left": 0,
        "top": 0
      },
      "tool_id": null,
      "tool_state": "{\"optional\": false, \"format\": [\"csv\"], \"tag\": null}",
      "tool_version": null,
      "type": "data_input",
      "uuid": "6c2bd197-c7fa-4b55-b1ca-57be7ffae4ae",
      "when": null,
      "workflow_outputs": []
    },
    "1": {
      "annotation": "ZIP archive containing one grayscale expression image per selected GTEx sample.",
      "content_id": null,
      "errors": null,
      "id": 1,
      "input_connections": {},
      "inputs": [
        {
          "description": "GTEx expression images generated from log-transformed TPM vectors.",
          "name": "selected_gtex_v11_tpm_image_tissue_dataset.zip"
        }
      ],
      "label": "selected_gtex_v11_tpm_image_tissue_dataset.zip",
      "name": "Input dataset",
      "outputs": [],
      "position": {
        "left": 0,
        "top": 140
      },
      "tool_id": null,
      "tool_state": "{\"optional\": false, \"format\": [\"zip\"], \"tag\": null}",
      "tool_version": null,
      "type": "data_input",
      "uuid": "7f9a41fd-c1d0-4f30-be9a-f9cdc865fda0",
      "when": null,
      "workflow_outputs": []
    },
    "2": {
      "annotation": "Image Learner tissue classification using the metadata table's `image_path` column as the image file and `label` column derived from GTEx `SMTSD` labels.",
      "content_id": "toolshed.g2.bx.psu.edu/repos/goeckslab/image_learner/image_learner/0.1.5",
      "errors": null,
      "id": 2,
      "input_connections": {
        "image_zip": {
          "id": 1,
          "output_name": "output"
        },
        "input_csv": {
          "id": 0,
          "output_name": "output"
        }
      },
      "inputs": [
        {
          "description": "runtime parameter for tool Image Learner",
          "name": "image_zip"
        },
        {
          "description": "runtime parameter for tool Image Learner",
          "name": "input_csv"
        }
      ],
      "label": null,
      "name": "Image Learner",
      "outputs": [
        {
          "name": "output_pred_csv",
          "type": "input"
        },
        {
          "name": "output_model",
          "type": "ludwig_model"
        },
        {
          "name": "output_report",
          "type": "html"
        }
      ],
      "position": {
        "left": 430,
        "top": 70
      },
      "post_job_actions": {},
      "tool_id": "toolshed.g2.bx.psu.edu/repos/goeckslab/image_learner/image_learner/0.1.5",
      "tool_shed_repository": {
        "changeset_revision": "d5c582cf74bc",
        "name": "image_learner",
        "owner": "goeckslab",
        "tool_shed": "toolshed.g2.bx.psu.edu"
      },
      "tool_state": "{\"advanced_settings\": {\"customize_defaults\": \"true\", \"__current_case__\": 0, \"epochs\": \"20\", \"early_stop\": \"10\", \"learning_rate_condition\": {\"learning_rate_define\": \"false\", \"__current_case__\": 1}, \"batch_size_condition\": {\"batch_size_define\": \"false\", \"__current_case__\": 1}, \"train_split\": \"0.7\", \"val_split\": \"0.1\", \"test_split\": \"0.2\", \"threshold\": \"0.5\"}, \"augmentation\": [], \"column_override\": {\"override_columns\": \"true\", \"__current_case__\": 0, \"target_column\": \"2\", \"image_column\": \"1\"}, \"image_resize\": \"original\", \"image_zip\": {\"__class__\": \"RuntimeValue\"}, \"input_csv\": {\"__class__\": \"RuntimeValue\"}, \"model_name\": \"caformer_s18_384\", \"random_seed\": \"42\", \"sample_id_column\": null, \"scratch_fine_tune\": {\"use_pretrained\": \"true\", \"__current_case__\": 0, \"fine_tune\": \"true\"}, \"task_selection\": {\"task\": \"classification\", \"__current_case__\": 1, \"validation_metric_multiclass\": \"\"}, \"__page__\": 0, \"__rerun_remap_job_id__\": null}",
      "tool_uuid": null,
      "tool_version": "0.1.5",
      "type": "tool",
      "uuid": "f928b66a-95c6-4fb2-8b3b-f41abc3e9c4e",
      "when": null,
      "workflow_outputs": [
        {
          "label": "predictions",
          "output_name": "output_pred_csv"
        },
        {
          "label": "model",
          "output_name": "output_model"
        },
        {
          "label": "report",
          "output_name": "output_report"
        }
      ]
    }
  },
  "tags": [
    "GTEx",
    "Tissue_Classification",
    "Gene_Expression",
    "Image_Learner"
  ],
  "uuid": "33c0f1fc-d6b7-4248-beca-2b63ad471977",
  "version": 2
}
