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

Problem when defining SRA accession instead of fq1/fq2 hardfiles #52

Closed
plycrsk opened this issue Jan 13, 2022 · 0 comments · Fixed by #63
Closed

Problem when defining SRA accession instead of fq1/fq2 hardfiles #52

plycrsk opened this issue Jan 13, 2022 · 0 comments · Fixed by #63

Comments

@plycrsk
Copy link

plycrsk commented Jan 13, 2022

Hi,

Firstly, thanks so much for the workflow, it's mostly working fine.

However, I'm receiving the following error when providing SRA input instead of fq1/fq2 (hard-files):

InputFunctionException in line 1 of https://github.com/snakemake-workflows/rna-seq-star-deseq2/raw/v1.2.0/workflow/rules/align.smk:
Error:
KeyError: 'fq1'
Wildcards:
sample=SRR5344335
unit=lane1
Traceback:
File "https://github.com/snakemake-workflows/rna-seq-star-deseq2/raw/v1.2.0/workflow/rules/common.smk", line 109, in get_fq

This seems to correspond to the following code:

u = units.loc[(wildcards.sample, wildcards.unit), ["fq1", "fq2"]].dropna()
if pd.isna(u["fq1"]):

where the first line is dropping the columns fq1/fq2 as they are empty, and line 2 is then false, so the accession is not defined/throws an error.

Here are the two input files. Working fine with fq1/fq1 input, but not with SRR input.

SRR_input
fq1_fq2_input

Thanks!
Sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant