예제 #1
0
 def test_MutationSyntax(self):
     new_line = '001\tGGTGCCGGT\tGGGAGCCU'
     rna_lib_item = Library(new_line)
     base_sequence_string = 'GGGCGCCU'
     assert rna_lib_item.generate_mutation_syntax(
         base_sequence_string) == '4CtoA'
     base_sequence_string_2 = 'GGGCGACU'
     assert rna_lib_item.generate_mutation_syntax(
         base_sequence_string_2) == '4CtoA,6AtoC'
예제 #2
0
 def test_SequenceTypeCheck(self):
     rna_lib_item = Library(self.rna_lib_line)
     assert rna_lib_item.get_dna_sequence(
     ) == 'GGGAGCCTGCCCTCTGATCTCTGCCTGTTC'
     assert rna_lib_item.get_rna_sequence(
     ) == 'GGGAGCCUGCCCUCUGAUCUCUGCCUGUUC'
예제 #3
0
 def test_RNASequence(self):
     new_line = '001\tGGTGCCGGT\tGGGAGCCU'
     rna_lib_item = Library(new_line)
     assert rna_lib_item.get_dna_sequence() == 'GGGAGCCT'
     assert rna_lib_item.get_rna_sequence() == 'GGGAGCCU'
예제 #4
0
 def test_RNALibItemPropertyOfSequence(self):
     rna_lib_item = Library(self.rna_lib_line)
     assert str(rna_lib_item.barcode) == 'GGTGCCGGT'
예제 #5
0
 def test_RNALibItemProperty(self):
     rna_lib_item = Library(self.rna_lib_line)
     assert rna_lib_item.id == '001'
예제 #6
0
 def test_RNALibItemInitWithError(self):
     with pytest.raises(ValueError) as excepton_info:
         Library(self.rna_lib_line_with_error)
예제 #7
0
 def test_RNALibItemInitWithMissingAttributes(self):
     rna_lib_item = Library(self.rna_lib_line_missing_attribute)
     assert rna_lib_item is not None
예제 #8
0
 def test_RNALibItemInit(self):
     rna_lib_item = Library(self.rna_lib_line)
     assert rna_lib_item is not None