Skip to content

Commit

Permalink
Merge pull request #677 from uclahs-cds/czhu-fix-filter-fasta
Browse files Browse the repository at this point in the history
fix (filterFasta): noncoding peptide ID updated
  • Loading branch information
zhuchcn authored Feb 8, 2023
2 parents b46d1d2 + ae33dce commit 675f269
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
2 changes: 2 additions & 0 deletions moPepGen/aa/VariantPeptideLabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def get_transcript_ids(self) -> List[str]:
return [variant_id.first_tx_id, variant_id.second_tx_id]
if isinstance(variant_id, pi.BaseVariantPeptideIdentifier):
return [variant_id.transcript_id]
if isinstance(variant_id, pi.NoncodingPeptideIdentifier):
return [variant_id.transcript_id]
raise ValueError('Variant ID unrecognized')

def __str__(self) -> str:
Expand Down
56 changes: 28 additions & 28 deletions test/files/peptides/noncoding.fasta
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
>ENST00000624155.2|16
KEESPVVSWRLEPEDGTAL
>ENST00000624155.2|4
AAGAVFLALSAQLLQARLMK
>ENST00000624155.2|3
>ENST00000624155.2|ENSG00000279973.2|ORF2|5
MKEESPVVSWRLEPEDGTAL
>ENST00000624155.2|ENSG00000279973.2|ORF4|2
METAAQQEQ
>ENST00000624155.2|ENSG00000279973.2|ORF1|4
MAAGAVFLALSAQLLQARLMK
>ENST00000624155.2|10
>ENST00000624155.2|ENSG00000279973.2|ORF1|2
LMKEESPVVSWR
>ENST00000624155.2|ENSG00000279973.2|ORF4|1
ETAAQQEQ
>ENST00000624155.2|1
MAAGAVFLALSAQLLQAR
>ENST00000624155.2|22
EESPVVSWR
>ENST00000624155.2|23
EESPVVSWRLEPEDGTAL
>ENST00000624155.2|21
>ENST00000624155.2|ENSG00000279973.2|ORF1|1
LMKEESPVVSWRLEPEDGTAL
>ENST00000624155.2|14
>ENST00000624155.2|ENSG00000279973.2|ORF2|6
KEESPVVSWR
>ENST00000624155.2|7
MAQLCDSSSAVVAATVMETAAQQEQ
>ENST00000624155.2|13
>ENST00000624155.2|ENSG00000279973.2|ORF2|1
LEPEDGTAL
>ENST00000624155.2|ENSG00000279973.2|ORF2|3
EESPVVSWR
>ENST00000624155.2|ENSG00000279973.2|ORF2|4
KEESPVVSWRLEPEDGTAL
>ENST00000624155.2|ENSG00000279973.2|ORF2|7
MKEESPVVSWR
>ENST00000624155.2|9
METAAQQEQ
>ENST00000624155.2|8
AQLCDSSSAVVAATVMETAAQQEQ
>ENST00000624155.2|20
LMKEESPVVSWR
>ENST00000624155.2|15
MKEESPVVSWRLEPEDGTAL
>ENST00000624155.2|2
>ENST00000624155.2|ENSG00000279973.2|ORF1|3
AAGAVFLALSAQLLQARLMK
>ENST00000624155.2|ENSG00000279973.2|ORF1|5
AAGAVFLALSAQLLQAR
>ENST00000624155.2|24
LEPEDGTAL
>ENST00000624155.2|ENSG00000279973.2|ORF1|6
MAAGAVFLALSAQLLQAR
>ENST00000624155.2|ENSG00000279973.2|ORF2|2
EESPVVSWRLEPEDGTAL
>ENST00000624155.2|ENSG00000279973.2|ORF3|2
MAQLCDSSSAVVAATVMETAAQQEQ
>ENST00000624155.2|ENSG00000279973.2|ORF3|1
AQLCDSSSAVVAATVMETAAQQEQ

0 comments on commit 675f269

Please sign in to comment.