Example #1
0
 def it_handles_cut_at_end():
     # end cut is 2nd protease
     df = _proteolyze(_pro_seq_df("TBKCDP"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["TBK", "CDP"]
     # end cut is 1st protease
     df = _proteolyze(_pro_seq_df("TBPCDK"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["TBP", "CDK"]
Example #2
0
 def it_cleaves_without_protease():
     df = _proteolyze(_pro_seq_df("ABKCD"), None)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["ABKCD"]
Example #3
0
 def it_handles_no_cut():
     df = _proteolyze(_pro_seq_df("TBCD"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["TBCD"]
Example #4
0
 def _before():
     nonlocal df, seqstrs
     df = _proteolyze(_pro_seq_df("TBKCDPEF"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
Example #5
0
 def it_handles_cut_at_end():
     df = _proteolyze(_pro_seq_df("ABKCDK"), protease)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["ABK", "CDK"]
Example #6
0
 def _before():
     nonlocal df, seqstrs
     df = _proteolyze(_pro_seq_df("ABKCD"), protease)
     seqstrs = seqstrs_from_proteolyze(df)