# Parallel sample processing
# Tests multiple jobs running in parallel with wildcards

SAMPLES = ["sample_A", "sample_B", "sample_C", "sample_D"]

rule all:
    input:
        expand("output/{sample}.processed.txt", sample=SAMPLES)

rule process_sample:
    output:
        "output/{sample}.processed.txt"
    shell:
        """
        echo "Processing {wildcards.sample}" > {output}
        sleep 0.1
        echo "Done processing {wildcards.sample}" >> {output}
        """
