-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add base modification (methylation) QC * Add POD5 + dorado basecalled BAM QC
- Loading branch information
1 parent
5353ed2
commit 612d5cc
Showing
19 changed files
with
1,454 additions
and
254 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
uses: dsaltares/[email protected] | ||
with: | ||
repo: 'WGLab/LongReadSum' | ||
version: 'tags/v0.1.0' | ||
version: 'tags/v1.3.1' | ||
file: 'SampleData.zip' | ||
|
||
- name: Unzip assets | ||
|
This file contains 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 |
---|---|---|
|
@@ -29,3 +29,5 @@ SampleData | |
|
||
# Testing scripts | ||
linktoscripts | ||
single_mod.summary.txt | ||
single_mod.tin.xls |
This file contains 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 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 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 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 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,52 @@ | ||
// RefQuery: A class for querying a reference genome in FASTA format | ||
|
||
#ifndef REF_QUERY_H | ||
#define REF_QUERY_H | ||
|
||
#include <string> | ||
#include <map> | ||
#include <unordered_map> | ||
#include <unordered_set> | ||
#include <vector> | ||
|
||
class RefQuery { | ||
private: | ||
std::string fasta_filepath; | ||
std::vector<std::string> chromosomes; | ||
std::unordered_map<std::string, std::string> chr_to_seq; | ||
// uint32_t cpg_site_count = 0; | ||
uint64_t cpg_modified_count = 0; | ||
uint64_t cpg_total_count = 0; | ||
uint64_t test_count = 0; | ||
|
||
// Map of reference position (0-indexed) to CpG site (true/false) on the | ||
// forward strand for each chromosome | ||
// std::map<std::string, std::map<int64_t, bool>> chr_pos_to_cpg; | ||
|
||
// Map of reference position (0-indexed) to CpG site (true/false) on the | ||
// reverse strand for each chromosome | ||
// std::map<std::string, std::map<int64_t, bool>> chr_pos_to_cpg_rev; | ||
|
||
// Map of reference position (0-indexed) to CpG site (true/false) for | ||
// all chromosomes | ||
// std::map<std::string, std::map<int64_t, bool>> chr_pos_to_cpg; | ||
|
||
// Map of chromosome to CpG site positions | ||
std::unordered_map<std::string, std::unordered_set<int64_t>> chr_to_cpg; | ||
|
||
// Map of chromosome to CpG site positions with modifications | ||
std::unordered_map<std::string, std::unordered_set<int64_t>> chr_to_cpg_mod; | ||
|
||
// Reverse strand CpG site map | ||
// std::map<std::string, std::map<int64_t, bool>> chr_pos_to_cpg_rev; | ||
|
||
public: | ||
int setFilepath(std::string fasta_filepath); | ||
std::string getFilepath(); | ||
std::string getBase(std::string chr, int64_t pos); | ||
void generateCpGMap(); | ||
void addCpGSiteModification(std::string chr, int64_t pos, int strand); | ||
std::pair<uint64_t, uint64_t> getCpGModificationCounts(int strand); | ||
}; | ||
|
||
#endif // REF_QUERY_H |
Oops, something went wrong.