@@ -284,7 +284,7 @@ def write_phase_tagged_bam_output(phased_read, phased_output_bam,
284
284
else :
285
285
# Haplotag score does not pass threshold. Treat as unphased.
286
286
phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
287
- elif phased_read .is_Unphased :
287
+ elif phased_read .is_Untagged :
288
288
phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
289
289
else : # Nonphasable
290
290
phased_read .write_to_bam (output_bam_pysam = nonphasable_output_bam )
@@ -307,7 +307,7 @@ def write_full_bam_output(phased_read, maternal_output_bam, paternal_output_bam,
307
307
else :
308
308
# Haplotag score does not pass threshold. Label as unphased and handle accordingly.
309
309
phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
310
- elif phased_read .is_Unphased :
310
+ elif phased_read .is_Untagged :
311
311
phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
312
312
else : # Nonphasable
313
313
phased_read .write_to_bam (output_bam_pysam = nonphasable_output_bam )
@@ -802,11 +802,11 @@ def parse_simulated_data(input_data, args):
802
802
# To-Do: Work in ability to select/ignore specific samples
803
803
for alignment in phasable_sample :
804
804
phased_read = PhasedRead (alignment , vcf_file = phasable_sample .vcf_file_path , sample = 'HG001' , evaluate_true_alignment = True )
805
- if phased_read .alignment_is_mapped and phased_read .matches_true_alignment and phased_read .is_phased and int (phased_read .aligned_segment .get_tag ('HS' )) > 1 :
805
+ if phased_read .alignment_is_mapped and phased_read .matches_true_alignment and phased_read .is_tagged and int (phased_read .aligned_segment .get_tag ('HS' )) > 1 :
806
806
log_ratios .append (phased_read .log_likelihood_ratio )
807
- is_phased_correctly .append (phased_read .is_phased_correctly )
808
- if not phased_read .is_phased_correctly :
809
- #sys.stderr.write("%s\n%s\n" % (phased_read, phased_read.is_phased_correctly ))
807
+ is_phased_correctly .append (phased_read .is_tagged_correctly )
808
+ if not phased_read .is_tagged_correctly :
809
+ #sys.stderr.write("%s\n%s\n" % (phased_read, phased_read.is_tagged_correctly ))
810
810
error_lr_list .append (phased_read .log_likelihood_ratio )
811
811
error_read_list .append (phased_read )
812
812
0 commit comments