Skip to content

Commit

Permalink
fix (splitFasta): variant peptide not split correclty if derived from…
Browse files Browse the repository at this point in the history
… fusion within the same gene
  • Loading branch information
zhuchcn committed Feb 19, 2025
1 parent bc73cfd commit fed5113
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions moPepGen/aa/VariantPeptideLabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ def from_variant_peptide(peptide:AminoAcidSeqRecord,
var_ids = {
first_gene_id: variant_id.first_variants
+ [variant_id.fusion_id] \
+ variant_id.peptide_variants,
second_gene_id: variant_id.second_variants
+ variant_id.peptide_variants
}
if second_gene_id != first_gene_id:
var_ids[second_gene_id] = variant_id.second_variants
tx_id = first_tx_id

elif isinstance(variant_id, pi.BaseVariantPeptideIdentifier):
Expand Down

0 comments on commit fed5113

Please sign in to comment.