Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
chr1 14750216 15119039 0.945945945945946
chr1 18102157 19080189 0.895174708818636
chr1 29491029 30934636 0.892526250772082
chr1 33716472 35395979 0.911901081916538
chr1 36712462 37685238 0.95655951346655
chr1 37838094 38031209 0.944206008583691
chr1 38272060 39078902 0.940932642487047
chr1 42197905 42388954 0.759162303664921
chr1 42583551 42913605 0.801857585139319
chr1 45281207 45416320 0.885714285714286
chr1 46974417 47547260 0.91701244813278
chr1 51234626 51418366 0.83453237410072
chr1 56953387 57050584 0.91304347826087"""
df = pd.read_table(StringIO(c), sep="\s+", header=0)
return GRanges(df)
def expected_result_intersect_simple_granges():
c = """Chromosome Start End
chr1 3 6
chr1 5 7"""
df = pd.read_table(StringIO(c), sep="\s+", header=0)
return GRanges(df)
def simple_gr1():
c = """Chromosome Start End
chr1 3 6
chr1 5 7
chr1 8 9"""
df = pd.read_table(StringIO(c), sep="\s+", header=0)
return GRanges(df)
def simple_gr2():
c = """Chromosome Start End
chr1 1 2
chr1 6 6"""
df = pd.read_table(StringIO(c), sep="\s+", header=0)
return GRanges(df)
def expected_result_subtract_simple_granges():
c = """Chromosome Start End
chr1 8 9"""
df = pd.read_table(StringIO(c), sep="\s+", header=0)
return GRanges(df)