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

Create SampleQC and Batching notebooks #744

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

kjaisingh
Copy link
Collaborator

This PR introduces the initial set of SampleQC and Batching notebooks part of the featured workspace into the GATK-SV repository to enable fine-grained source control. They have been added to the newly-created scripts/notebooks/ directory.

@kjaisingh kjaisingh added the enhancement New feature or request label Nov 5, 2024
@kjaisingh kjaisingh self-assigned this Nov 5, 2024
Copy link
Collaborator

@mwalker174 mwalker174 left a comment

Choose a reason for hiding this comment

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

This is looking great! I've only had a chance to go through the QC notebook so far and my only broad comment is to document the figures so they are all clearly explained.

scripts/notebooks/SampleQC.ipynb Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
Copy link
Collaborator

@mwalker174 mwalker174 left a comment

Choose a reason for hiding this comment

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

Thanks for your updates. I moved on to the Batching notebook but ran into a problem, see below.

scripts/notebooks/Batching.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/Batching.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/SampleQC.ipynb Outdated Show resolved Hide resolved
"source": [
"# Display metadata table, which was generated as part of EvidenceQC\n",
"PASS_METADATA = os.path.join(WS_BUCKET, \"evidence_qc/filtering/passed_samples_qc_metadata.tsv\")\n",
"pass_df = pd.read_table(PASS_METADATA)\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is breaking on me:

FileNotFoundError: b/fc-41a63557-9ddf-41ba-b5d0-807be90ddb87/o/evidence_qc%2Ffiltering%2Fpassed_samples_qc_metadata.tsv

Does pandas support reading directly from buckets?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it does - you need to use gs:// as a prefix though.

Copy link
Collaborator Author

@kjaisingh kjaisingh Nov 27, 2024

Choose a reason for hiding this comment

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

Sorry, on closer inspection I realized that this is automatically set based on WS_BUCKET, which is pulled from os.environ['WORKSPACE_BUCKET']. Strange to me that this does not automatically prepend gs:// in this case though, as it does for me...do you mind sharing the value of WS_BUCKET in your notebook?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated accordingly - file path now matches what is generated in the QC notebook.

scripts/notebooks/Batching.ipynb Outdated Show resolved Hide resolved
scripts/notebooks/Batching.ipynb Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants