コード例 #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"]
コード例 #2
0
 def it_cleaves_without_protease():
     df = _proteolyze(_pro_seq_df("ABKCD"), None)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["ABKCD"]
コード例 #3
0
 def it_handles_no_cut():
     df = _proteolyze(_pro_seq_df("TBCD"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["TBCD"]
コード例 #4
0
 def _before():
     nonlocal df, seqstrs
     df = _proteolyze(_pro_seq_df("TBKCDPEF"), protease_list)
     seqstrs = seqstrs_from_proteolyze(df)
コード例 #5
0
 def it_handles_cut_at_end():
     df = _proteolyze(_pro_seq_df("ABKCDK"), protease)
     seqstrs = seqstrs_from_proteolyze(df)
     assert seqstrs == ["ABK", "CDK"]
コード例 #6
0
 def _before():
     nonlocal df, seqstrs
     df = _proteolyze(_pro_seq_df("ABKCD"), protease)
     seqstrs = seqstrs_from_proteolyze(df)