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

Rule md5sum #2

Open
WolkeWS opened this issue Apr 14, 2023 · 2 comments
Open

Rule md5sum #2

WolkeWS opened this issue Apr 14, 2023 · 2 comments

Comments

@WolkeWS
Copy link

WolkeWS commented Apr 14, 2023

Breaks on testing due to subsampling being false but getting checked for true instead

@WolkeWS
Copy link
Author

WolkeWS commented Apr 16, 2023

Was a systems issue with osx using md5 instead of md5sum (and the function passing because it skipped over that part)

@WolkeWS
Copy link
Author

WolkeWS commented May 11, 2023

This should work for osx:

    """
    echo -e "{params.r1_checksum}  {input.r1_file}\n{params.r2_checksum}  {input.r2_file}" > {output.checksums}
    find {params.check_files}*.fastq.gz -type f | xargs openssl md5 | sed -e 's/^MD5(\(.*\))= \(.*\)/\\2  \\1/' > check.txt
    diff check.txt {output.checksums}
    ( [ "{params.subsampled}" = "True" ] && touch {output.validated}) || cp {output.checksums} {output.validated}
    """

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