@@ -284,7 +284,7 @@ def write_phase_tagged_bam_output(phased_read, phased_output_bam,
284284 else :
285285 # Haplotag score does not pass threshold. Treat as unphased.
286286 phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
287- elif phased_read .is_Unphased :
287+ elif phased_read .is_Untagged :
288288 phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
289289 else : # Nonphasable
290290 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,
307307 else :
308308 # Haplotag score does not pass threshold. Label as unphased and handle accordingly.
309309 phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
310- elif phased_read .is_Unphased :
310+ elif phased_read .is_Untagged :
311311 phased_read .write_to_bam (output_bam_pysam = unphased_output_bam )
312312 else : # Nonphasable
313313 phased_read .write_to_bam (output_bam_pysam = nonphasable_output_bam )
@@ -802,11 +802,11 @@ def parse_simulated_data(input_data, args):
802802 # To-Do: Work in ability to select/ignore specific samples
803803 for alignment in phasable_sample :
804804 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 :
806806 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 ))
810810 error_lr_list .append (phased_read .log_likelihood_ratio )
811811 error_read_list .append (phased_read )
812812
0 commit comments