Target rules may not contain wildcards

You asked for a rule by name, but that rule only makes sense per-sample

why

Running snakemake myrule asks for a rule directly, but a rule with wildcards has no meaning without concrete values — Snakemake cannot know which sample you meant.

what to do

Ask for the concrete files instead (snakemake results/sampleA.bam), or define an all rule whose input lists every final file you want and run that.

Snakemake documented behaviour
This is one entry from BioErrors, a catalogue of bioinformatics error messages that point at the wrong thing. Every entry was traced to its real cause before it was written down.
If your error is not in it, paste it there and it gets traced and added.