bio-grumpy 0.1.3__tar.gz → 0.1.5__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.
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/Cargo.lock +1 -1
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/Cargo.toml +1 -1
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/PKG-INFO +1 -1
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/difference.rs +11 -1
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/.github/workflows/release.yaml +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/.gitignore +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/LICENSE +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/README-python.md +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/README.md +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/pyproject.toml +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/reference/MN908947.3.gb +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/reference/NC_000962.3.gbk +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/common.rs +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/gene.rs +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/genome.rs +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/lib.rs +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/main.rs +0 -0
- {bio_grumpy-0.1.3 → bio_grumpy-0.1.5}/src/vcf.rs +0 -0
|
@@ -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());
|
|
@@ -503,7 +508,7 @@ impl GeneDifference{
|
|
|
503
508
|
let e = these_minor_indels[0];
|
|
504
509
|
// We have a single minor indel which is much easier
|
|
505
510
|
if e.alt_type == AltType::INS{
|
|
506
|
-
_mutation = alt_cd.
|
|
511
|
+
_mutation = alt_cd.nucleotide_number.to_string() + "_ins_" + &e.base;
|
|
507
512
|
indel_length = Some(e.base.len() as i64);
|
|
508
513
|
indel_nucleotides = Some(e.base.clone());
|
|
509
514
|
evidence = vec![e.evidence.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|