Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not executed fastqc for specified inputs #27

Open
nkimoto opened this issue Jun 21, 2020 · 1 comment
Open

Not executed fastqc for specified inputs #27

nkimoto opened this issue Jun 21, 2020 · 1 comment

Comments

@nkimoto
Copy link

nkimoto commented Jun 21, 2020

hi. I recently executed this pipeline for my job.
But after I ran this pipeline and removed the output of the fastqc, I can't reproduce the output of fastqc (qc/fastqc/A-1.html for example).

After some experiment, I find this is because only first line is recognized as "inputs" by snakemake.
So I fixed under the lines from

expand(["qc/samtools-stats/{u.sample}-{u.unit}.txt",
"qc/fastqc/{u.sample}-{u.unit}.zip",
"qc/dedup/{u.sample}-{u.unit}.metrics.txt"],
u=units.itertuples())

to

    expand("qc/samtools-stats/{u.sample}-{u.unit}.txt", u=units.itertuples())
    expand("qc/fastqc/{u.sample}-{u.unit}.zip", u=units.itertuples())
    expand("qc/dedup/{u.sample}-{u.unit}.metrics.txt", u=units.itertuples())

I can get the expected results.
Is this bug of expand module? Please explain what is happend.

@tdido
Copy link

tdido commented Feb 22, 2021

Not sure if it's a bug, I've asked in the issue I just opened.

For the time being, the easiest solution is to convert the input to a list:

 expand(["qc/samtools-stats/{u.sample}-{u.unit}.txt", 
         "qc/fastqc/{u.sample}-{u.unit}.zip", 
         "qc/dedup/{u.sample}-{u.unit}.metrics.txt"], 
        u=list(units.itertuples())

knokknok pushed a commit to knokknok/dna-seq-gatk-variant-calling that referenced this issue May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants