Skip to content

Conversation

@nathanthorpe
Copy link
Contributor

@nathanthorpe nathanthorpe commented Sep 5, 2025

Allow updating the samplesheet of a dataset (after it has been created)

Example:

samplesheet = pd.DataFrame.from_records([
    {
        'sample': 'HG00138',
         'fastq_1': 'HG00138_R1.fastq.gz',
         'fastq_2': 'HG00138_R2.fastq.gz',
         'status': 'Normal'
    }
])
csv = samplesheet.to_csv(index=False)
dataset.update_samplesheet(
    contents=csv
)

# OR

dataset.update_samplesheet(
    file_path=Path('~/samplesheet.csv')
)

@nathanthorpe nathanthorpe requested a review from a team September 5, 2025 18:35
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2025

@nathanthorpe nathanthorpe merged commit ee3dbf7 into main Sep 9, 2025
9 checks passed
@nathanthorpe nathanthorpe deleted the samplesheet-update branch September 9, 2025 18:35
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.

3 participants