Im new using snakemake, I'm trying to align paired-end reads using bowtie2, I have already indexed my fasta files, with bowtie-build, and i dont know how to reference the index that i previously made in my snakefile,
the index files generated by bowtie-build are:
- xylella_fastidiosa.1.bt2
- xylella_fastidiosa.2.bt2
- xylella_fastidiosa.3.bt2
- xylella_fastidiosa.4.bt2
- xylella_fastidiosa.rev.1.bt2
- xylella_fastidiosa.rev.2.bt2
my code is :
N_THREADS = 12
SAMPLES = ['M1', 'M2', 'M3', 'M4', 'M5', 'M6', 'M7', 'M8', 'M9', 'M10']
rule all:
input:
expand('Xylella_fastidiosa/index_bowtie2', id = SAMPLES)
rule bowtie:
input:
'INSECTOS/{id}/trimmed/{id}_val_1.fq.gz',
'INSECTOS/{id}/trimmed/{id}_val_2.fq.gz'
output:
"{id}_bowtie.sam"
threads: N_THREADS
shell:
'bowtie2 -p {threads} '
'-x xylella fastidiosa '
'-1 {input[0]} '
'-2 {input[1]} '
'-S {output}'
the output is
Building DAG of jobs...
Nothing to be done.
is there any advices ? Thanks.
Thank you so much for the answer, it works perfectly, i will use this from now on
Well done Daniel... good initiative