bio-grumpy 0.1.3__tar.gz → 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,7 @@ dependencies = [
76
76
 
77
77
  [[package]]
78
78
  name = "grumpy"
79
- version = "0.1.3"
79
+ version = "0.1.4"
80
80
  dependencies = [
81
81
  "gb-io",
82
82
  "ordered-float",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "grumpy"
3
- version = "0.1.3"
3
+ version = "0.1.4"
4
4
  edition = "2021"
5
5
  description = "Genetic analysis in Rust."
6
6
  license-file = "LICENSE"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bio-grumpy
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -156,6 +156,11 @@ impl GenomeDifference{
156
156
  let mut gene_position = None;
157
157
  let mut codon_idx = None;
158
158
 
159
+ if alt.alt_type == AltType::REF{
160
+ // Skip ref calls
161
+ continue;
162
+ }
163
+
159
164
  // Only annotate with gene information if there is a single gene at this position
160
165
  if alt_pos.genes.len() == 1{
161
166
  gene_name = Some(alt_pos.genes[0].clone());
@@ -638,6 +643,11 @@ impl GeneDifference{
638
643
  let amino_acid_number = None;
639
644
  let amino_acid_sequence = None;
640
645
 
646
+ if alt.alt_type == AltType::REF{
647
+ // Skip ref calls
648
+ continue;
649
+ }
650
+
641
651
  if alt.alt_type == AltType::SNP || alt.alt_type == AltType::HET || alt.alt_type == AltType::NULL{
642
652
  mutation = ref_nc.reference.to_string() + &ref_nc.nucleotide_number.to_string() + &alt.base;
643
653
  ref_nucleotides = Some(ref_nc.reference.to_string());
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes