This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate multimap; | |
extern crate rayon; | |
use multimap::MultiMap; | |
use rayon::prelude::*; | |
use std::cmp::Ordering; | |
use std::env; | |
use std::fs::File; | |
use std::io::{Read, Write}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
class Line(object): | |
def __init__(self, line): | |
self.fields = line.split('\t') | |
self.chrom = self.fields[0] | |
self.start = int(self.fields[1]) | |
self.end = int(self.fields[2]) | |
self.depth = int(self.fields[3]) |