-
Notifications
You must be signed in to change notification settings - Fork 67
add krakenuniq summary kmer filter #998
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
tomkinsc
wants to merge
14
commits into
master
Choose a base branch
from
ct-krakenuniq-summary-kmer-filter
base: master
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
14 commits
Select commit
Hold shift + click to select a range
bc5abd7
initial commit of metagenomics.py::krakenuniq_report_filter
tomkinsc 63fc075
update read counts and percentages in metagenomics.py::krakenuniq_rep…
tomkinsc 4a4072c
parser_krakenuniq_report_filter help typo fix
tomkinsc da7f6ea
cruft removal
tomkinsc 82dac27
consistent util.fil.open_or_gzopen calls
tomkinsc c7a5270
Merge branch 'master' into ct-krakenuniq-summary-kmer-filter
tomkinsc f153b0e
add new test type: assertApproxEqualValuesInDelimitedFiles
tomkinsc 1f3377e
pad each level with single space since we aren't collapsing doubles
tomkinsc f1bbad2
add test class TestKrakenUniqSummaryFilter
tomkinsc 3742438
add test TestKrakenUniqSummaryFilter::test_leaves_trimmed
tomkinsc e94a745
extend assertApproxEqualValuesInDelimitedFiles
tomkinsc 5e8238c
Merge branch 'master' into ct-krakenuniq-summary-kmer-filter
tomkinsc bb7fb48
regex raw string
tomkinsc 016ff03
Merge branch 'master' into ct-krakenuniq-summary-kmer-filter
tomkinsc 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
37 changes: 37 additions & 0 deletions
37
test/input/TestKrakenUniqSummaryFilter/expected/should_be_unchanged.txt
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# KrakenUniq v0.5.7 DATE:2019-11-21T16:03:15Z DB:/tmp/tmp.ohQ3jTMIQh/krakenuniq DB_SIZE:198130386856 WD:/home/dnanexus | ||
# CL:perl /opt/miniconda/envs/viral-ngs-env/bin/krakenuniq --db /tmp/tmp.ohQ3jTMIQh/krakenuniq --threads 32 --fastq-input --gzip-compressed --preload --report-file E023.l16.dedup.krakenuniq-summary_report.txt --paired --output E023.l16.dedup.krakenuniq-reads.txt.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmp0eg_wsp4.1.fastq.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmpx686dhd3.2.fastq.gz | ||
|
||
% reads taxReads kmers dup cov taxID rank taxName | ||
8.134 1788 1788 1193206 1.69 NA 0 no rank unclassified | ||
91.87 20195 4 356763 3 NA 1 no rank root | ||
71.38 15692 709 346092 2.29 NA 131567 no rank cellular organisms | ||
31.42 6906 0 153473 1.68 NA 2759 superkingdom Eukaryota | ||
31.42 6906 0 153473 1.68 NA 33154 no rank Opisthokonta | ||
31.42 6906 0 153473 1.68 NA 33208 kingdom Metazoa | ||
31.42 6906 0 153473 1.68 NA 6072 no rank Eumetazoa | ||
31.42 6906 0 153473 1.68 NA 33213 no rank Bilateria | ||
31.42 6906 0 153473 1.68 NA 33511 no rank Deuterostomia | ||
31.42 6906 0 153473 1.68 NA 7711 phylum Chordata | ||
31.42 6906 0 153473 1.68 NA 89593 subphylum Craniata | ||
31.42 6906 0 153473 1.68 NA 7742 no rank Vertebrata | ||
31.42 6906 0 153473 1.68 NA 7776 no rank Gnathostomata | ||
31.42 6906 0 153473 1.68 NA 117570 no rank Teleostomi | ||
31.42 6906 0 153473 1.68 NA 117571 no rank Euteleostomi | ||
31.42 6906 0 153473 1.68 NA 8287 superclass Sarcopterygii | ||
31.42 6906 0 153473 1.68 NA 1338369 no rank Dipnotetrapodomorpha | ||
31.42 6906 0 153473 1.68 NA 32523 no rank Tetrapoda | ||
31.42 6906 0 153473 1.68 NA 32524 no rank Amniota | ||
31.42 6906 0 153473 1.68 NA 40674 class Mammalia | ||
31.42 6906 0 153473 1.68 NA 32525 no rank Theria | ||
31.42 6906 0 153473 1.68 NA 9347 no rank Eutheria | ||
31.42 6906 0 153473 1.68 NA 1437010 no rank Boreoeutheria | ||
31.42 6906 0 153473 1.68 NA 314146 superorder Euarchontoglires | ||
31.42 6906 0 153473 1.68 NA 9443 order Primates | ||
31.42 6906 0 153473 1.68 NA 376913 suborder Haplorrhini | ||
31.42 6906 0 153473 1.68 NA 314293 infraorder Simiiformes | ||
31.42 6906 0 153473 1.68 NA 9526 parvorder Catarrhini | ||
31.42 6906 0 153473 1.68 NA 314295 superfamily Hominoidea | ||
31.42 6906 0 153473 1.68 NA 9604 family Hominidae | ||
31.42 6906 0 153473 1.68 NA 207598 subfamily Homininae | ||
31.42 6906 0 153473 1.68 NA 9605 genus Homo | ||
31.42 6906 6906 153473 1.68 NA 9606 species Homo sapiens |
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions
13
test/input/TestKrakenUniqSummaryFilter/expected/should_have_leaves_trimmed.txt
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# KrakenUniq v0.5.7 DATE:2019-11-21T16:03:15Z DB:/tmp/tmp.ohQ3jTMIQh/krakenuniq DB_SIZE:198130386856 WD:/home/dnanexus | ||
# CL:perl /opt/miniconda/envs/viral-ngs-env/bin/krakenuniq --db /tmp/tmp.ohQ3jTMIQh/krakenuniq --threads 32 --fastq-input --gzip-compressed --preload --report-file E023.l16.dedup.krakenuniq-summary_report.txt --paired --output E023.l16.dedup.krakenuniq-reads.txt.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmp0eg_wsp4.1.fastq.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmpx686dhd3.2.fastq.gz | ||
|
||
% reads taxReads kmers dup cov taxID rank taxName | ||
27.810893206534104 6112 6112 1193206 1.69 NA 0 no rank unclassified | ||
72.1891067934659 15865 11368 349850 3 NA 1 no rank root | ||
20.46230149701961 4497 0 7949 31.5 NA 10239 superkingdom Viruses | ||
20.46230149701961 4497 0 7930 32 NA 439488 no rank ssRNA viruses | ||
20.46230149701961 4497 0 7930 32 NA 35301 no rank ssRNA negative-strand viruses | ||
20.46230149701961 4497 0 7930 32 NA 11157 order Mononegavirales | ||
20.46230149701961 4497 0 7930 32 NA 11266 family Filoviridae | ||
20.46230149701961 4497 0 7930 32 NA 186536 genus Ebolavirus | ||
20.46230149701961 4497 4497 7916 32 NA 186538 species Zaire ebolavirus |
37 changes: 37 additions & 0 deletions
37
test/input/TestKrakenUniqSummaryFilter/input/should_be_unchanged.txt
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# KrakenUniq v0.5.7 DATE:2019-11-21T16:03:15Z DB:/tmp/tmp.ohQ3jTMIQh/krakenuniq DB_SIZE:198130386856 WD:/home/dnanexus | ||
# CL:perl /opt/miniconda/envs/viral-ngs-env/bin/krakenuniq --db /tmp/tmp.ohQ3jTMIQh/krakenuniq --threads 32 --fastq-input --gzip-compressed --preload --report-file E023.l16.dedup.krakenuniq-summary_report.txt --paired --output E023.l16.dedup.krakenuniq-reads.txt.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmp0eg_wsp4.1.fastq.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmpx686dhd3.2.fastq.gz | ||
|
||
% reads taxReads kmers dup cov taxID rank taxName | ||
8.134 1788 1788 1193206 1.69 NA 0 no rank unclassified | ||
91.87 20195 4 356763 3 NA 1 no rank root | ||
71.38 15692 709 346092 2.29 NA 131567 no rank cellular organisms | ||
31.42 6906 0 153473 1.68 NA 2759 superkingdom Eukaryota | ||
31.42 6906 0 153473 1.68 NA 33154 no rank Opisthokonta | ||
31.42 6906 0 153473 1.68 NA 33208 kingdom Metazoa | ||
31.42 6906 0 153473 1.68 NA 6072 no rank Eumetazoa | ||
31.42 6906 0 153473 1.68 NA 33213 no rank Bilateria | ||
31.42 6906 0 153473 1.68 NA 33511 no rank Deuterostomia | ||
31.42 6906 0 153473 1.68 NA 7711 phylum Chordata | ||
31.42 6906 0 153473 1.68 NA 89593 subphylum Craniata | ||
31.42 6906 0 153473 1.68 NA 7742 no rank Vertebrata | ||
31.42 6906 0 153473 1.68 NA 7776 no rank Gnathostomata | ||
31.42 6906 0 153473 1.68 NA 117570 no rank Teleostomi | ||
31.42 6906 0 153473 1.68 NA 117571 no rank Euteleostomi | ||
31.42 6906 0 153473 1.68 NA 8287 superclass Sarcopterygii | ||
31.42 6906 0 153473 1.68 NA 1338369 no rank Dipnotetrapodomorpha | ||
31.42 6906 0 153473 1.68 NA 32523 no rank Tetrapoda | ||
31.42 6906 0 153473 1.68 NA 32524 no rank Amniota | ||
31.42 6906 0 153473 1.68 NA 40674 class Mammalia | ||
31.42 6906 0 153473 1.68 NA 32525 no rank Theria | ||
31.42 6906 0 153473 1.68 NA 9347 no rank Eutheria | ||
31.42 6906 0 153473 1.68 NA 1437010 no rank Boreoeutheria | ||
31.42 6906 0 153473 1.68 NA 314146 superorder Euarchontoglires | ||
31.42 6906 0 153473 1.68 NA 9443 order Primates | ||
31.42 6906 0 153473 1.68 NA 376913 suborder Haplorrhini | ||
31.42 6906 0 153473 1.68 NA 314293 infraorder Simiiformes | ||
31.42 6906 0 153473 1.68 NA 9526 parvorder Catarrhini | ||
31.42 6906 0 153473 1.68 NA 314295 superfamily Hominoidea | ||
31.42 6906 0 153473 1.68 NA 9604 family Hominidae | ||
31.42 6906 0 153473 1.68 NA 207598 subfamily Homininae | ||
31.42 6906 0 153473 1.68 NA 9605 genus Homo | ||
31.42 6906 6906 153473 1.68 NA 9606 species Homo sapiens |
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions
19
test/input/TestKrakenUniqSummaryFilter/input/should_have_leaves_trimmed.txt
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# KrakenUniq v0.5.7 DATE:2019-11-21T16:03:15Z DB:/tmp/tmp.ohQ3jTMIQh/krakenuniq DB_SIZE:198130386856 WD:/home/dnanexus | ||
# CL:perl /opt/miniconda/envs/viral-ngs-env/bin/krakenuniq --db /tmp/tmp.ohQ3jTMIQh/krakenuniq --threads 32 --fastq-input --gzip-compressed --preload --report-file E023.l16.dedup.krakenuniq-summary_report.txt --paired --output E023.l16.dedup.krakenuniq-reads.txt.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmp0eg_wsp4.1.fastq.gz /tmp/tmp-metagenomics-krakenuniq-jfekrm6y/tmpx686dhd3.2.fastq.gz | ||
|
||
% reads taxReads kmers dup cov taxID rank taxName | ||
27.81 6112 6112 1193206 1.69 NA 0 no rank unclassified | ||
72.19 15867 11368 349960 3 NA 1 no rank root | ||
20.47 4499 0 8059 31.5 NA 10239 superkingdom Viruses | ||
20.46 4497 0 7930 32 NA 439488 no rank ssRNA viruses | ||
20.46 4497 0 7930 32 NA 35301 no rank ssRNA negative-strand viruses | ||
20.46 4497 0 7930 32 NA 11157 order Mononegavirales | ||
20.46 4497 0 7930 32 NA 11266 family Filoviridae | ||
20.46 4497 0 7930 32 NA 186536 genus Ebolavirus | ||
20.46 4497 4497 7916 32 NA 186538 species Zaire ebolavirus | ||
0.009098 2 0 110 1.71 NA 35237 no rank dsDNA viruses, no RNA stage | ||
0.009098 2 0 100 1.6 NA 28883 order Caudovirales | ||
0.009098 2 0 93 1.65 NA 10699 family Siphoviridae | ||
0.009098 2 0 11 1.73 NA 1982251 genus Pa6virus | ||
0.009098 2 0 8 1.62 NA 1982272 species Propionibacterium virus PAS50 | ||
0.009098 2 2 8 1.62 NA 504553 no rank Propionibacterium phage PAS50 |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything wrong with these tests at the moment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing wrong--they're just not implemented yet (have to make the synthetic input/output).