Hi all,
I am trying to use the function regex to filter my inputs in a step of my workflow. But when I run the script I get the following error:
Duplicate, conflicting or unrecognised arguments:
pipeline.transform(name = 'pipeline_b_step_0::Calling step 0', task_func = make_calling, input=None, filter=regex('INDELS_realigned.bam$| rq.bam$',), output='indels.snps.g_step_0.vcf', extras=['/usr/local/java/jdk1.8.0_45/bin/java', '/home/diego/Programs/GATK/GenomeAnalysisTK.jar', 'VariantDiscovery_pipeline/reference/reference_genome.fasta', LoggerProxy(), <AcquirerProxy object, typeid 'Lock' at 0x7f41c5e6eb90>, 1], ...
At the beginning I thought it was a problem with my regular expression, but no matter what regular expression I put , always I get the same error.
This is my line describing the task:
make_calling_task = sub_pipeline.transform( task_func = make_calling,
name = "Calling step "+str(step),
input = None,
filter =
regex(r"INDELS_realigned.bam$| rq.bam$"), output = "indels.snps.g_step_"+str(step)+".vcf",
output_dir = join(call_folder,"step_"+str(step)),
extras = [ self.JAVA, self.GATK,
self.ref_genome_project, self.logger,
self.logger_mutex, self.args.nct]
)
I am using ruffus version '2.6.3' and python version 2.7.6
I would appreciate if someone could help me with this problem
Thanks in advance