Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use id column from samplesheet if specified #8

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion subworkflows/samplesheet_split.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ workflow SAMPLESHEET_SPLIT {
.map {
row ->
def meta = [:]
meta.id = file(row.image).simpleName
if (row.id ) {
meta.id = row.id

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this id a synapse id?

Copy link
Collaborator Author

@adamjtaylor adamjtaylor Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For HTAN we would use a Synapse ID, but this could be used any time you don't want the output directories to be named by the filename and want to provide a custom ID in their place

} else {
meta.id = file(row.image).simpleName

}
meta.ome = row.image ==~ /.+\.ome\.tif{1,2}$/
meta.convert = row.convert.toBoolean()
meta.he = row.he.toBoolean()
Expand Down