Example #1
0
//{{{ void SV_BedpeReader:: process_input_chr_pos(string chr,
void
SV_BedpeReader::
process_input_chr_pos(string chr,
					  CHR_POS pos,
					  UCSCBins<SV_BreakPoint*> &r_bin)
{

	while ( ( bedpeStatus != BED_INVALID ) &&
			( chr.compare( get_curr_chr() ) == 0 ) &&
			( bedpeEntry.start1  < pos ) && 
			( bedpeEntry.start2  < pos ) ) {
			
		if (bedpeStatus == BED_VALID) {
			SV_Bedpe::process_bedpe(&bedpeEntry,
									r_bin,
									weight,
									id,
									sample_id,
									this);
			bedpeEntry = nullBedpe;
		}

		bedpeStatus = bedpe->GetNextBedPE(bedpeEntry, lineNum);
	}
}
Example #2
0
//{{{ void SV_BedpeReader:: process_input_chr(string chr,
void
SV_BedpeReader::
process_input_chr(string chr,
				  UCSCBins<SV_BreakPoint*> &l_bin,
				  UCSCBins<SV_BreakPoint*> &r_bin)
{

	while ( ( bedpeStatus != BED_INVALID ) &&
			( chr.compare( get_curr_chr() ) == 0 ) ) {
			

		if (bedpeStatus == BED_VALID) {
			SV_Bedpe::process_bedpe(&bedpeEntry,
									l_bin,
									r_bin,
									weight,
									id);
			bedpeEntry = nullBedpe;
		}

		bedpeStatus = bedpe->GetNextBedPE(bedpeEntry, lineNum);
	}
}