Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if len(split_roi) <= 2:
if not kwargs['until_eof']:
warnings.warn('Fetching till end of contig. Potentially large region', RuntimeWarning )
if yes_no():
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
else:
raise ValueError('User declined action')
else:
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
elif len(split_roi) == 3:
return Roi(split_roi[0], int(split_roi[1]), int(split_roi[2]))
else:
return None
for i, arg in enumerate(split_roi[1:]):
split_roi[i+1] = int(arg)
if len(split_roi) <= 2:
if not kwargs['until_eof']:
warnings.warn('Fetching till end of contig. Potentially large region', RuntimeWarning )
if yes_no():
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
else:
raise ValueError('User declined action')
else:
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
elif len(split_roi) == 3:
return Roi(split_roi[0], int(split_roi[1]), int(split_roi[2]))
else:
return None
if not kwargs['until_eof']:
warnings.warn('Fetching till end of contig. Potentially large region', RuntimeWarning )
if yes_no():
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
else:
raise ValueError('User declined action')
else:
if len(split_roi) == 2:
return Roi(split_roi[0], int(split_roi[1]))
else:
return Roi(split_roi[0])
elif len(split_roi) == 3:
return Roi(split_roi[0], int(split_roi[1]), int(split_roi[2]))
else:
return None