-
Notifications
You must be signed in to change notification settings - Fork 1
Summarize command #64
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
Open
berndbohmeier
wants to merge
137
commits into
main
Choose a base branch
from
feature/summary
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
137 commits
Select commit
Hold shift + click to select a range
2127113
Fix example script
JasonAHendry c1bd5ea
Add functionality for cleaning sample_type column
JasonAHendry 1de3bea
Add first-draft of summarise command
JasonAHendry 995e836
Merge remote-tracking branch 'origin/main' into feature/summary
berndbohmeier 12dc6a5
Read in master metadata file
berndbohmeier b84a5d3
Make summarize work with new format and delve
berndbohmeier f075d69
Add sample summary statistic
berndbohmeier a892093
Add prevalence by region plot
berndbohmeier c608abb
Small improvements to summarize
berndbohmeier ccab72b
Add samples amplicons barplot
berndbohmeier 188d28f
Add prevalence per region/year plot
berndbohmeier 044d80c
Fix filtering of false positives
berndbohmeier b3d7ac1
Update wsaf false positive threashold
berndbohmeier 317bd91
Move some files to utils experiment
berndbohmeier 454da0b
Add some more docs and move code in summarize
berndbohmeier d8b8d75
Linter fixes and code structure
berndbohmeier a68b0d8
Make sample_type mandatory
berndbohmeier 12e5edf
Do not seperate mutations by alt alleles
berndbohmeier 6793b05
Limit prevalence to samples in master metadata file
berndbohmeier 29b0222
Ensure we handle sample ids that are number better
berndbohmeier 839b058
Store in inventory if samples are unknown
berndbohmeier 24bcf86
Show legend in Sample statistic pie
berndbohmeier 3d9d56b
Better text and labels for QC Summary
berndbohmeier 3f39f5c
New colorscales for QC summary
berndbohmeier 7e85cf5
Ensure prevalence is ordered by aa positions
berndbohmeier 5200e38
Always report contaminated when over abs. thresh.
berndbohmeier 3b1367e
Allow to group by all columns in metadata file
berndbohmeier 7a85fd5
Allow to start dashboard in debug mode via env
berndbohmeier 37e6f26
Don't check for depth files in summary
berndbohmeier a28b1a5
Add gene deletion detection
berndbohmeier 601e325
First version on map in summary
berndbohmeier 2891a7e
Sort drug resistance markers by prevalence
berndbohmeier 9a9a7db
Use read mapping file instead of fastq file
berndbohmeier 95c2412
Do not require vcf folder at the moment
berndbohmeier a9ac549
Fix error message of wrong exp meta data file
berndbohmeier b14c555
For gene deletion analysis, exclude contaminated samples
berndbohmeier 995902e
Add site markers to map and settings file
berndbohmeier d89efd5
Add missing files
berndbohmeier 77a0691
Add show neg control coverage in summary
berndbohmeier 705a6c9
Add option to create summary without master file
berndbohmeier 10a0d89
Improve messages for summarize
berndbohmeier e6f522a
Fix bug in error bars of summary
berndbohmeier 4eaa204
Remove problematic mutations again
berndbohmeier cdc5e30
Add warnings to help with finding the right region names
berndbohmeier b56081c
Add init file to summarize module
berndbohmeier c82f8b7
Apply wording change for summary from code review
berndbohmeier 4acbf6d
Clean up some things in summarize
berndbohmeier 506b5fd
Add pydantic to dependencies
berndbohmeier 3ec23f2
Rename missing to not_sequenced
berndbohmeier dedf24c
Use regex for matching of alt column names
berndbohmeier b389612
Also auto open browser after a delay for summary
berndbohmeier 2b9d189
Ensure dtype of throughput table is int
berndbohmeier 99fd811
Rename meta_data to metadata
berndbohmeier 6178046
Remove summary command structure comment
berndbohmeier 1dce302
Expose min coverage and max contamination values
berndbohmeier d9d70d8
Expose false-positive filter and consolidate prev calc
JasonAHendry f13d90b
Simplify experiment coapletion checks
JasonAHendry 2cacbd9
Remove ExperimentResultsChecker class
JasonAHendry ebe4be2
A few typing fixes
berndbohmeier 6a2a225
Remove fixing of leading zeros
berndbohmeier d69d5e2
Allow to only view with nomadic summarize command
berndbohmeier 9e7dc49
Make summary general
berndbohmeier 7b58bfd
Only plot data in summary if we have it
berndbohmeier d752536
Remove print statement
berndbohmeier 6aaa86f
Ensure to only include field samples in metadata
berndbohmeier 182ce36
Exit summary early if we have no field samples
berndbohmeier f5f0228
Ensure we print the experiment that has an metadata error
berndbohmeier 645c1e4
More detailed output of what summary is loaded
berndbohmeier 48136df
Ensure we set sample_id dtype when loading.
berndbohmeier 72c04ef
Don't remove int columns for grouping
berndbohmeier 25d41f4
Ensure master metadata file for summary has no dup
berndbohmeier 58a84be
Fix gene deletions component
berndbohmeier 22f410e
Merge remote-tracking branch 'origin/main' into feature/summary
berndbohmeier 30696be
Fix parser used for metadata
berndbohmeier db8a1d9
Make sample_type not required again
berndbohmeier 5ecbd6e
Merge remote-tracking branch 'origin/main' into feature/summary
berndbohmeier f468730
Update required version of bcftools
berndbohmeier 3c084e0
Use vcf files for amino acid change prevalence
berndbohmeier a2edb4a
Add option to switch between bubble map and region map
berndbohmeier d1d743f
Sort aa changes by aa_pos not pos
berndbohmeier 196cac6
Ensure we read sample id as str
berndbohmeier d5ad288
Formatter fixes
berndbohmeier 4840de8
Update how maps are loaded
berndbohmeier 0ce96b8
Ensure we only load experiment dirs we need
berndbohmeier 1c934e8
Take out wrong asserts in summarize
berndbohmeier 6f82c4e
Change default min coverage to 100
berndbohmeier c59cea1
Improve gene deletion code
berndbohmeier 8ad076b
Set min number of samples to plot map to 10
berndbohmeier 37c721d
Formating
berndbohmeier 2005099
Set filter false positive params for summarize
berndbohmeier 10246ba
Load shapeName for geojson from settings file
berndbohmeier 9d698e9
Merge remote-tracking branch 'origin/main' into feature/summary
berndbohmeier 0ea9550
Make ExperimentDirectories side effect free
berndbohmeier 3edf1f3
Add auto find port function like in realtime to summary
berndbohmeier 8d945d0
Refactored QC code of summarize
berndbohmeier 09757c5
Better handle master metadata columns
berndbohmeier 9167d62
Check common reference in summarize
berndbohmeier 20dc994
Move more code to use Path
berndbohmeier 0c467cd
Fix show map functionality with metadata col rename
berndbohmeier e5af0e2
New aa changes file format for summarize
berndbohmeier 98c08fd
Add pytest-snapshot to environment
berndbohmeier cbc0ad5
Remove profiling code
berndbohmeier 949ee8d
Apply various fixes from ruffs new default rules
berndbohmeier 565331b
Update time code
berndbohmeier c589358
Fix order of check for metadata
berndbohmeier ff3e85c
Fix don't report user warning sample types
berndbohmeier a8e8339
Fix generator in pytestest parametrize
berndbohmeier c0674d2
Add download of reference genome in github action
berndbohmeier d88f5e0
Skip csq test on CI for now
berndbohmeier 79a3458
Fix properly close the excel file
berndbohmeier ca86544
Fix use the right wsaf tag
berndbohmeier 2c0fb07
Update file format and dir structure for summarize
berndbohmeier 0b0feaf
Write nt changes file in realtime
berndbohmeier e945db0
Fix avoid devision by 0 in prevalence calc
berndbohmeier 199a1ac
Format
berndbohmeier 308bea3
Ensure all rows are present in throughput
berndbohmeier 4bf1cd4
Ensure correct column is cast to str in load metadata
berndbohmeier 3cb878d
Warnings if samples have different metadata
berndbohmeier 4254f16
Remove StrEnum, which needs python 3.11
berndbohmeier ecdc039
Split up coverage functions
berndbohmeier 8c92227
Only run check if any variant
berndbohmeier 46304f8
Move encode barcodes in own function next to decode
berndbohmeier 8b2f92c
Move sample seperator close to encode/decode function
berndbohmeier 689f193
Document variant code
berndbohmeier 89edc8e
Update tooltip of experiment qc
berndbohmeier 8bdc811
Render n values for experiment qc
berndbohmeier 354efd3
Add mixed, wt info to prevalence plot
berndbohmeier da9cfd1
Fix show only amplicons in bed file
berndbohmeier 9070d28
Small fixes
berndbohmeier 414a927
Remove unnessary print
berndbohmeier 364beb8
Add statsmodels to dependencies
berndbohmeier 7822f5b
Fix mapping code, handling of files and mutations
berndbohmeier f78dbcb
Add missing pydantic to dev environment
berndbohmeier 50cc526
Ensure nomadic summarize also works without a workspace
berndbohmeier b927fad
Improve user facing errors for summarize
berndbohmeier 0a699a5
Add missing __init__ file
berndbohmeier 7f69fa1
Fix import error
berndbohmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,10 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=42.0", "wheel"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.ruff.lint] | ||
| ignore = [ | ||
| "UP045", # To me, Optional seems shorter | ||
| "RUF012", # will fix this later | ||
| "C408", # Would need a lot of changes, fix maybe later | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| # Example of how to run nomadic realtime | ||
| # 2023/07/12, J.Hendry | ||
|
|
||
| nomadic realtime \ | ||
| -e 0000-00-00_example \ | ||
| nomadic realtime 0000-00-00_example \ | ||
| -f example_data/minknow/fastq_pass \ | ||
| -m example_data/metadata/sample_info.csv \ | ||
| -b example_data/beds/nomads8.amplicons.bed --call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import click | ||
|
|
||
| from .references import REFERENCE_COLLECTION | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.