-
Notifications
You must be signed in to change notification settings - Fork 88
Bump DeDup for stats fix and DamageProfiler to latest version #565
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0311d4b
Get DeDup version with reporting bugfix
jfy133 b6549b2
Update CHANGELOG.md
jfy133 4025b3a
Update environment.yml
jfy133 d8d46c4
Reverting DamageProfiler version due to Java version incompatibility
jfy133 1445062
Added eigenstrat_snp_coverage process
TCLamnidis b04a619
Parsing version of eigenstrat_snp_coverage
TCLamnidis efb8422
Small script to make MQC custom-content JSON until eigenstratdatabase…
TCLamnidis 30ef521
Added eigenstrat_snp_coverage columns
TCLamnidis 108e447
Added eigenstratdatabasetools v1.0.2
TCLamnidis b728a6d
Update environment.yml
jfy133 e420339
Added eigenstrat_snp_coverage
TCLamnidis f90e5ba
Update README.md
TCLamnidis 6383d3f
Added info on eigenstrat_snp_coverage columns of GeneralStatsTable
TCLamnidis 2d289df
Added explanation of the extra code block in eigenstrat_snp_coverage …
TCLamnidis 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| #!/usr/bin/env python3 | ||
| import sys, json | ||
| from collections import OrderedDict | ||
|
|
||
| jsonOut = OrderedDict() | ||
| data = OrderedDict() | ||
|
|
||
|
|
||
| input = open(sys.argv[1], 'r') | ||
| for line in input: | ||
| fields = line.strip().split() | ||
| sample_id = fields[0] | ||
| covered_snps = fields[1] | ||
| total_snps = fields[2] | ||
| if sample_id[0] == "#": | ||
| continue | ||
|
|
||
| data[sample_id] = {"Covered_Snps":covered_snps, "Total_Snps":total_snps} | ||
|
|
||
| jsonOut = {"plot_type": "generalstats", "id": "snp_coverage", | ||
| "pconfig": { | ||
| "Covered_Snps" : {"title" : "#SNPs Covered"}, | ||
| "Total_Snps" : {"title": "#SNPs Total"} | ||
| }, | ||
| "data" : data | ||
| } | ||
|
|
||
| with open(sys.argv[1].rstrip('.txt')+'_mqc.json', 'w') as outfile: | ||
| json.dump(jsonOut, outfile) |
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
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.