question for you: the intersection produces vcf fi...
# sarek_dev
r
question for you: the intersection produces vcf files that are named
0000.vcf
. If the files are annotated afterwards and using the
basename
as we currently have, we won't be able to distinguish them anymore: https://github.com/nf-core/sarek/blob/9b85c0f04b5d7f279f407125a8cad6bcc2d801f5/conf/modules/annotate.config#L22 but just switching to
meta.id
or whatever for all annotations won't be great either, cause we rely a bit on subsequent suffices to track which file was produced by which annotation tool and whether or not several annotation tools were applied at once. we could use the
copyTo
method, but in general it's a big no no to https://www.nextflow.io/docs/latest/reference/stdlib-types.html move files outside or processes. Other option I see would be to do much more involved ternaries in the config to make sure all the naming works. Preferences? Better ideas?
m
intersect_{number}.vcf
?
r
why number?
Let me propose the config solution in the PR and you can tell me if the logic is the ugliest thing on the planet
m
I was thinking number of files that are intersected or something
But I'm thinking that's the kind of info we could have in meta.id
basically what I'm interested is knowing how the file was created
but I think such meta data should not go in the filename
that's a very good question you're asking
r
no I don't want to track this in the file name. the tool itself provides a README that we publish that specifies how the run was done
party this 1
m
good to me then
should the filename be a hash then?
r
why?
it would be
<hash>_snpeff.vcf
.... pushed the proposal to the PR and running tests atm
m
that way the file is unique
r
it'll be unique based on the sample id that we use as uniqueness criterium elsewhere