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

Parsing error in : input: '{ds}.bam'.format(ds=ds) for ds in DATASETS #547

Open
iromeo opened this issue Oct 21, 2024 · 1 comment
Open

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 21, 2024

works in 8.20.6

image
# kate: syntax python;

DATASETS = '1 2 3'.split()

rule mapmature_all:
	input: '{ds}.bam'.format(ds=ds) for ds in DATASETS

rule gzip:
	output: '{file}.gz'
	input: '{file}'
	shell: 'gzip < {input} > {output}'

rule cutadapt:
	output: fastq=temp('{ds}.fastq')
	input: '{ds}.txt'
	shell:
		'echo hello > {output.fastq}'

rule bwa_mature:
	output: bam='{ds}.bam'
	input: reads='{ds}.fastq.gz'
	threads: 4
	shell:
		'echo starting with {threads} threads; sleep 10; touch {output.bam}'


@iromeo
Copy link
Contributor Author

iromeo commented Oct 22, 2024

Note: no parsing errors for:

rule mapmature_all:
	input: ('{ds}.bam'.format(ds=ds) for ds in DATASETS)

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

No branches or pull requests

1 participant