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

Sfitz add fastqc and switch to process_afterscript for logs #60

Merged
merged 10 commits into from
Jun 14, 2024

Conversation

sorelfitzgibbon
Copy link
Collaborator

Description

  • Added FastQC workflow
  • Updated NFTest for FastQC
  • Updated to use process_afterscript including for publication of logs.

Closes #45

Testing Results

output: /hot/software/pipeline/pipeline-generate-SQC-BAM/Nextflow/development/unreleased/sfitz-add-fastqc

nftest a_mini-all-tools

log: /hot/software/pipeline/pipeline-generate-SQC-BAM/Nextflow/development/unreleased/sfitz-add-fastqc/log-nftest-20240605T214738Z.log

nftest a_mini-all-tools-multiple-samples

log: /hot/software/pipeline/pipeline-generate-SQC-BAM/Nextflow/development/unreleased/sfitz-add-fastqc/log-nftest-20240605T221709Z.log

nftest a_mini-fastqc

log: /hot/software/pipeline/pipeline-generate-SQC-BAM/Nextflow/development/unreleased/sfitz-add-fastqc/log-nftest-20240605T222627Z.log

Checklist

  • I have read the code review guidelines and the code review best practice on GitHub check-list.

  • I have reviewed the Nextflow pipeline standards.

  • The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].

  • I have set up or verified the branch protection rule following the github standards before opening this pull request.

  • I have added my name to the contributors listings in the manifest block in the nextflow.config as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

  • I have added the changes included in this pull request to the CHANGELOG.md under the next release version or unreleased, and updated the date.

  • I have updated the version number in the metadata.yaml and manifest block of the nextflow.config file following semver, or the version number has already been updated. (Leave it unchecked if you are unsure about new version number and discuss it with the infrastructure team in this PR.)

  • I have tested the pipeline using NFTest, or I have justified why I did not need to run NFTest above.

@sorelfitzgibbon sorelfitzgibbon requested a review from a team as a code owner June 5, 2024 22:28
module/fastqc.nf Outdated
Comment on lines 26 to 35
output_filename = generate_standard_filename("FastQC-${params.fastqc_version}",
params.dataset_id,
id,
[:])

"""
set -euo pipefail
mkdir "${output_filename}"
fastqc \
--outdir "${output_filename}" \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • In this case I used generate_standard_filename to create an additional output directory with the dataset_id and the id extracted from the input BAM files.
  • An alternate possibility is to output to "./" and then rename the files within ${bam_prefix}_fastqc (i.e. the FastQC directory that is always created) to include the standard_filename components.

@sorelfitzgibbon
Copy link
Collaborator Author

After discussion with @yashpatel6 I will look into methods to get output separated by read-group.

@sorelfitzgibbon sorelfitzgibbon marked this pull request as draft June 12, 2024 04:35
@sorelfitzgibbon sorelfitzgibbon changed the title Sfitz add fastqc Sfitz add fastqc and switch to process_afterscript for logs Jun 12, 2024
@sorelfitzgibbon sorelfitzgibbon changed the base branch from main to sfitz-by-readgroup June 12, 2024 19:39
@sorelfitzgibbon sorelfitzgibbon merged commit 7727148 into sfitz-by-readgroup Jun 14, 2024
4 checks passed
@sorelfitzgibbon sorelfitzgibbon deleted the sfitz-add-fastqc branch July 23, 2024 19:41
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

Successfully merging this pull request may close these issues.

Add FASTQC (or something equivalent)
1 participant