Input Data
.
├── barcode01
│ └── fastq_runid_6292747b0109c4fa5918c50eb8204bb715f19ad0_0.fastq
├── barcode02
│ └── fastq_runid_6292747b0109c4fa5918c50eb8204bb715f19ad0_0.fastq
├── barcode03
│ └── fastq_runid_6292747b0109c4fa5918c50eb8204bb715f19ad0_0.fastq
├── barcode04
│ └── fastq_runid_6292747b0109c4fa5918c50eb8204bb715f19ad0_0.fastq
Snakemake rule
rule symlink_results_demultiplex:
input:
inputdirectory+"/basecall/demultiplex/{sample_demultiplex}/{sample_runid}.fastq"
output:
outdirectory+"/mothur/{sample_demultiplex}.fastq"
threads: 1
shell:
"ln -s {input} {output}"
However this errors because the same wildcards aren't used. I would like to create a symlink with just the barcode01.fastq as output file. I want to remove the redundant "fastq_runid_6292747b0109c4fa5918c50eb8204bb715f19ad0_0" part.
What would be the best way to do this?