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

recover: When file inputs are wrong, error is not graceful #238

Open
wwood opened this issue Dec 7, 2024 · 0 comments
Open

recover: When file inputs are wrong, error is not graceful #238

wwood opened this issue Dec 7, 2024 · 0 comments

Comments

@wwood
Copy link
Collaborator

wwood commented Dec 7, 2024

I hazily tried to run aviary where I'd not tab completed one of the input files. Took me a bit of time to work out what was going wrong - be good if there was a check in place to make sure input files are real, and not leave it to snakemake:

(poor formatting below, but you get the idea)

(aviary-dev)cl5n006:20241208:~/git/singlem/test/data/appraise_example_with_base_data$ aviary recover -1 SRR5040536_1 -2 SRR5040536_2.fastq.gz -o aviary_out                   12/08/2024 07:02:17 AM INFO: Time - 07:02:17 08-12-2024
12/08/2024 07:02:17 AM INFO: Command - /home/woodcrob/e/aviary-dev/bin/aviary recover -1 SRR5040536_1 -2 SRR5040536_2.fastq.gz -o aviary_out                                  12/08/2024 07:02:17 AM INFO: Version - 0.10.0
12/08/2024 07:02:17 AM WARNING: No assembly provided, assembly will be created using available reads...                                                                       12/08/2024 07:02:17 AM INFO: Configuration file written to /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/aviary_out/config.yaml            12/08/2024 07:02:17 AM INFO: Executing: snakemake --snakefile /mnt/hpccs01/home/woodcrob/git/aviary/aviary/modules/Snakefile --directory /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/aviary_out --cores 16 --rerun-incomplete --keep-going  --rerun-triggers mtime --configfile /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/aviary_out/config.yaml --nolock  --retries 0 --conda-frontend mamba --resources mem_mb=256000   --use-conda --conda-prefix /work/microbiome/conda/_aviary_envs/0.9.2   recover_mags

... (snip)

Assuming unrestricted shared filesystem usage.
host: cl5n006
Building DAG of jobs...
WorkflowError:
MissingInputException: Missing input files for rule qc_short_reads:                                                                                                               output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_short_reads:                                                                                                               output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         WorkflowError:                                                                                                                                                                    MissingInputException: Missing input files for rule qc_short_reads:
        output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_short_reads:
        output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:
            /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_long_reads:
        output: data/long_reads.fastq.gz
        affected files:
            none
    MissingInputException: Missing input files for rule qc_short_reads:
        output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:
            /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_long_reads:                                                                                                                output: data/long_reads.fastq.gz                                                                                                                                              affected files:                                                                                                                                                                   none
WorkflowError:                                                                                                                                                                    MissingInputException: Missing input files for rule qc_short_reads:                                                                                                               output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_short_reads:                                                                                                               output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_long_reads:                                                                                                                output: data/long_reads.fastq.gz                                                                                                                                              affected files:                                                                                                                                                                   none                                                                                                                                                                  MissingInputException: Missing input files for rule qc_short_reads:                                                                                                               output: data/short_unmapped_ref.bam, data/short_reads.fastq.gz, data/short_filter.done                                                                                        affected files:                                                                                                                                                                   /mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/SRR5040536_1                                                                         MissingInputException: Missing input files for rule qc_long_reads:                                                                                                                output: data/long_reads.fastq.gz                                                                                                                                              affected files:                                                                                                                                                                   none                                                                                                                                                              12/08/2024 07:02:18 AM 
CRITICAL: Command '['snakemake', '--snakefile', '/mnt/hpccs01/home/woodcrob/git/aviary/aviary/modules/Snakefile', '--directory', '/mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/aviary_out', '--cores', '16', '--rerun-incomplete', '--keep-going', '--rerun-triggers', 'mtime', '--configfile', '/mnt/hpccs01/home/woodcrob/git/singlem/test/data/appraise_example_with_base_data/aviary_out/config.yaml', '--nolock', '--retries', '0', '--conda-frontend', 'mamba', '--resources', 'mem_mb=256000', '--use-conda', '--conda-prefix', '/work/microbiome/conda/_aviary_envs/0.9.2', 'recover_mags']' returned non-zero exit status 1.
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

1 participant