# Complex wildcard patterns
# Tests multiple wildcards with different combinations

SAMPLES = ["sampleA", "sampleB"]
TREATMENTS = ["control", "treated"]
REPLICATES = ["rep1", "rep2"]

rule all:
    input:
        expand("output/{sample}/{treatment}/{replicate}/result.txt",
               sample=SAMPLES, treatment=TREATMENTS, replicate=REPLICATES)

rule process:
    output:
        "output/{sample}/{treatment}/{replicate}/result.txt"
    shell:
        """
        mkdir -p $(dirname {output})
        echo "Sample: {wildcards.sample}" > {output}
        echo "Treatment: {wildcards.treatment}" >> {output}
        echo "Replicate: {wildcards.replicate}" >> {output}
        """
