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

Specifying input directory causes PeriodicWildcardError #110

Open
tnitka opened this issue May 30, 2023 · 2 comments
Open

Specifying input directory causes PeriodicWildcardError #110

tnitka opened this issue May 30, 2023 · 2 comments

Comments

@tnitka
Copy link
Collaborator

tnitka commented May 30, 2023

Running snekmer model while specifying the input directory in config.yaml with input_dir: ../../input or input_dir: ../input terminates while building the DAG of jobs with the error message:

PeriodicWildcardError in line 18 of /Users/nitk592/snekmer-dev/motif_test/Kchannel_small/src/snekmer/snekmer/rules/process.smk:
The value .gz in wildcard uz is periodically repeated (FLT1.fasta.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz.gz). This would lead to an infinite recursion. To avoid this, e.g. restrict the wildcards in this rule to certain values.

This error doesn't occur when running snekmer cluster or when running model in a directory containing an output directory generated by cluster. Although the error involves a wildcard used only to unzip input files, it occurs even when there are no zipped input files.

@tnitka
Copy link
Collaborator Author

tnitka commented Jun 1, 2023

I tried running this in a different conda environment with Snekmer installed from main, and the problem still occurs.

@christinehc
Copy link
Collaborator

Will revisit this in a future update, but for now, to clarify-- Snekmer assumes existence of a directory named "input" in the specified input directory. Thus, specifying the additional "input" is unnecessary.

e.g. For this file structure:

dirname/
└- input/
     ├ A.fasta
     └ B.fasta

The proper input_dir is dirname/, not dirname/input.

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