1

RNA-seq パイプラインを作成するために snakemake を使用したいのですが、常に同じエラーが報告されます。

以下は、現在のフォルダにあるファイル全体を示しています。

|-- 01_raw
|   |-- epcr1_1.fastq
|   |-- epcr1_2.fastq
|   |-- epcr2_1.fastq
|   |-- epcr2_2.fastq
|   |-- wt1_1.fastq
|   |-- wt1_2.fastq
|   |-- wt2_1.fastq
|   `-- wt2_2.fastq
|-- 02_clean
|   `-- id.txt
|-- Snakefile
`-- Snakemake2.py

私のコンテンツ全体がSnakefileにあります

SBT=["wt1","wt2","epcr1","epcr2"]


rule all:
    input:
        expand("02_clean/{nico}_1.paired.fq.gz","02_clean/{nico}_2.paired.fq.gz",nico=SBT)

rule trim_galore:
    input:
        "01_raw/{nico}_1.fastq",
        "01_raw/{nico}_2.fastq"
    output:
        "02_clean/{nico}_1.paired.fq.gz",
        "02_clean/{nico}_1.unpaired.fq.gz",
        "02_clean/{nico}_2.paired.fq.gz",
        "02_clean/{nico}_2.unpaired.fq.gz",
    log:
        "02_clean/{nico}_qc.log"
    shell:
        "Trimmomatic PE -threads 16 {input[0]} {input[1]} {output[0]} {output[1]} {output[2]} {output[3]} ILLUMINACLIP:/software/Trimmomatic-0.36/adapters/TruSeq3-PE-2.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36 &"

コマンド「snakemake -np」を使用してdry_runすると、スムーズに実行できると思いますが、常に同じエラーが報告されます。

TypeError in line 6 of /root/s/r/snakemake/my_rnaseq_data/Snakefile:
'str' object is not callable
  File "/root/s/r/snakemake/my_rnaseq_data/Snakefile", line 6, in <module>

そしてline6は

expand("02_clean/{nico}_1.paired.fq.gz","02_clean/{nico}_2.paired.fq.gz",nico=SBT)

何が悪いのかわからない。一日中イライラします!誰かが私を助けてくれることを願っています。

4

1 に答える 1