Skip to content

CI-1982 - Add structured inputs to SDK - #242

Open
nathanthorpe wants to merge 10 commits into
mainfrom
structured-inputs
Open

nathanthorpe wants to merge 10 commits into
mainfrom
structured-inputs

Conversation

@nathanthorpe

@nathanthorpe nathanthorpe commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Add syntax to run analysis with structured inputs

        process.run_analysis(
            name="Output",
            project_id=dataset.project_id,
            structured_inputs={
                "samplesheet": [
                    {
                        "sample": "sample1",
                        "fastq_1": files.get_by_id("data/sample1_R1.fastq.gz").cirro_uri,
                        "fastq_2": files.get_by_id("data/sample1_R2.fastq.gz").cirro_uri,
                    },
                ]
            }
        )

Or a sheet

sheet = project.get_sheet_by_name("Samples").to_dataframe()
process.run_analysis(
            name="Output",
            project_id=project.id,
            structured_inputs={"samplesheet": samplesheet}
        )

Modify to_dataframe on sheet to use _row_id as an index and not include sys_* columns unless asked for explicitly (to make sheet to structured input work better)

@nathanthorpe
nathanthorpe marked this pull request as draft October 29, 2026 23:23
@nathanthorpe
nathanthorpe marked this pull request as ready for review October 29, 2026 23:45
@nathanthorpe
nathanthorpe requested a review from a team October 29, 2026 23:55
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant