Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Running SnpEff and VEP at once, also fixing CLI for annotators #555

Merged
merged 11 commits into from
Apr 4, 2018
Merged

Running SnpEff and VEP at once, also fixing CLI for annotators #555

merged 11 commits into from
Apr 4, 2018

Conversation

szilvajuhos
Copy link
Collaborator

Resolving #547

Copy link
Member

@maxulysse maxulysse left a comment

Choose a reason for hiding this comment

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

Seems safe enough, I approve

annotate.nf Outdated

def defineStepList() {
return [
'annotate'
Copy link
Member

Choose a reason for hiding this comment

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

We don't need this defineStepList function anymore.
Only one step is available at this point.

annotate.nf Outdated
'bcftoolsStats' : 'Reports/BCFToolsStats',
'snpeff' : 'Annotation/SnpEff',
'vep' : 'Annotation/VEP',
'merge' : 'Annotation/merged'
Copy link
Member

Choose a reason for hiding this comment

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

I believe that there is a merging error here.
The definition of the directory map happens once here, and once in the defineStepList.

@@ -222,7 +241,8 @@ def defineDirectoryMap() {
def defineToolList() {
return [
'snpeff',
'vep'
'vep',
'merge'
Copy link
Member

Choose a reason for hiding this comment

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

I prefer lists to be sorted, but that's not really important here ;-)

@@ -1165,3 +1160,307 @@ chrY 1187549 1212750 CRLF2
chrY 1268800 1310381 CSF2RA
chrY 1462572 1537107 P2RY8
chrY 2691179 2741309 CD99
chr1 1785285 1891117 GNB1
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have so many changes in this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Long story short: it is a quasi-panel, ever-expanding list of genes related to cancers.

// we have to exchange the channels

if('merge' in tools) {
vcfForVep = snpEffOutputVCFs
Copy link
Member

Choose a reason for hiding this comment

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

So if I want to have snpEFF, VEP and merged VCF it's not possible?
Can't we use that?

vcfForVep = vcfForVep.mix(snpEffOutputVCFs)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That will be a new feature if it is going to be needed at all. Testing takes time and I do not want to add stuff that is never going to be used or relatively easy to do with some scripting.

@maxulysse maxulysse merged commit d912b01 into SciLifeLab:master Apr 4, 2018
@maxulysse maxulysse changed the title Running SnpEff an VEP at once, also fixing CLI for annotators Running SnpEff and VEP at once, also fixing CLI for annotators Apr 4, 2018
jherrero referenced this pull request in UCL-BLIC/Sarek_v2.2.1 Apr 11, 2019
Running SnpEff an VEP at once, also fixing CLI for annotators
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants