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

FEAT: add CNVKIT + base skeleton #5

Merged
merged 20 commits into from Jul 10, 2023
Merged

FEAT: add CNVKIT + base skeleton #5

merged 20 commits into from Jul 10, 2023

Conversation

maxulysse
Copy link
Member

Close #3

@maxulysse maxulysse marked this pull request as draft July 8, 2023 10:24
@maxulysse maxulysse marked this pull request as ready for review July 8, 2023 16:54
Copy link

@nvnieuwk nvnieuwk left a comment

Choose a reason for hiding this comment

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

Some pointers, but overall LGTM :)

Comment on lines +17 to +26
"anyOf": [
{
"type": "string",
"pattern": "^\\S+\\.bam$"
},
{
"type": "string",
"maxLength": 0
}
],

Choose a reason for hiding this comment

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

Suggested change
"anyOf": [
{
"type": "string",
"pattern": "^\\S+\\.bam$"
},
{
"type": "string",
"maxLength": 0
}
],
"type": "string",
"pattern": "^\\S+\\.bam$",

You don't need to specify empty fields in the schema, nf-validation automatically skips validation of empty fields, if they are not required :). And I think anyOf doesn't work for the conversion to a channel (I've not tested it though).

Copy link
Member Author

Choose a reason for hiding this comment

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

I copy paste code from another PR, if it's ok with you, I'd rather fix this part in a dedicated PR

Choose a reason for hiding this comment

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

Yeah that's okay! :)

Comment on lines +20 to +31
"anyOf": [
{
"type": "string",
"format": "file-path",
"exists": true,
"mimetype": "text/csv",
"pattern": "^\\S+\\.csv$"
},
{
"type": "string",
"maxLength": 0
}

Choose a reason for hiding this comment

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

Same here :)

Copy link
Member Author

Choose a reason for hiding this comment

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

same here ;-)

)
ch_versions = ch_versions.mix(FASTQC.out.versions.first())
if (params.tools && params.tools.split(',').contains('cnvkit')) {
CNVKIT_BATCH ( ch_input.bam.map{meta, bam -> [ meta, [], bam ]}, ch_fasta, [], [], [], true )

Choose a reason for hiding this comment

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

Why don't you also convert the CRAM files to BAM and add them here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's do that in a separate PR.
I'd love to have the basic skeleton included that way I can add more tools and work on more features separately

Choose a reason for hiding this comment

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

Allright fine by me :)

@maxulysse maxulysse merged commit bb3949b into nf-core:dev Jul 10, 2023
9 checks passed
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.

panel of normals creation for cnvkit
2 participants