-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added option for extra call_only iteration. Added check for duplicated sample names. * Added coverage filter in the 'genotype_sv' subcommand. It is possible to turn the filter off with a new '--no_filter_on_coverage' command. * Another fix for a very rare bug in graph construction. Only affects very large-scale genotyping runs. WIP streamlined discovery. * Write CSI instead of TBI with the --csi option. * Added several per alt QC metrics to VCF output when calling genotype * optimization for vcf_merge * Added no_variant_overlapping option in force calling mode * updated how QD and QDalt are calculated * AAScore added in SNP/indel genotyping * bugfix: In very large genotyping runs some INFO fields can get larger than INT_MAX so I needed to change them to be strings instead, otherwise bcftools is not happy with me.
- Loading branch information
1 parent
d8d0167
commit d68b484
Showing
50 changed files
with
4,686 additions
and
1,110 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
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
namespace gyper | ||
{ | ||
|
||
class Contig; | ||
struct Contig; | ||
|
||
class AbsolutePosition | ||
{ | ||
|
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,67 @@ | ||
#pragma once | ||
|
||
#include <parallel_hashmap/phmap_fwd_decl.h> | ||
|
||
#include <graphtyper/typer/event.hpp> | ||
#include <graphtyper/typer/read.hpp> | ||
|
||
|
||
namespace gyper | ||
{ | ||
|
||
class BucketFirstPass | ||
{ | ||
public: | ||
int32_t global_max_pos_end{-1};// Max pos end of alignments in this bucket and all previous buckets | ||
int32_t max_pos_end{-1}; // Max pos end of alignments in this bucket | ||
|
||
std::map<SnpEvent, SnpEventInfo> snps; | ||
Tindel_events indel_events; // type is std::map<IndelEvent, EventInfo> | ||
}; | ||
|
||
|
||
class Bucket | ||
{ | ||
public: | ||
int32_t global_max_pos_end{-1};// Max pos end of alignments in this bucket and all previous buckets | ||
int32_t max_pos_end{-1}; // Max pos end of alignments in this bucket | ||
|
||
Tindel_events indel_events; // type is std::map<IndelEvent, EventInfo> | ||
std::vector<Read> reads; | ||
|
||
std::string to_string() const; | ||
}; | ||
|
||
|
||
bool | ||
is_indel_in_bucket(std::vector<Bucket> const & buckets, | ||
IndelEvent const & indel_event, | ||
long const region_begin, | ||
long const BUCKET_SIZE); | ||
|
||
|
||
std::map<SnpEvent, SnpEventInfo>::iterator | ||
add_snp_event_to_bucket(std::vector<BucketFirstPass> & buckets, | ||
SnpEvent && event, | ||
long const region_begin, | ||
long const BUCKET_SIZE); | ||
|
||
|
||
template <typename TBucket> | ||
Tindel_events::iterator | ||
add_indel_event_to_bucket(std::vector<TBucket> & buckets, | ||
IndelEvent && event, | ||
long const region_begin, | ||
long const BUCKET_SIZE, | ||
std::vector<char> const & reference_sequence, | ||
long ref_offset); | ||
|
||
//void | ||
//add_base_to_bucket(std::vector<Bucket> & buckets, | ||
// int32_t pos, | ||
// char seq, | ||
// char qual, | ||
// long const region_begin, | ||
// long const BUCKET_SIZE); | ||
|
||
} // namespace gyper |
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
Oops, something went wrong.