John Blischak Shorten long line of code in clean.py.  over 8 years ago

Commit id: 3b97f098ad6df61c4f70f3cca8a32542af6e1e6d

deletions | additions      

       

epithelial = epithelial.filter(filter_fold_change, fc = fc_cutoff).saveas()  proximal_tube = proximal_tube.filter(filter_fold_change, fc = fc_cutoff).saveas()  kidney = kidney.filter(filter_fold_change, fc = fc_cutoff).saveas()  # Identify only those sites that are peaks in all three tissue types  combined = pybedtools.BedTool().multi_intersect(i pybedtools.BedTool().multi_intersect(  i  = [epithelial.fn, proximal_tube.fn, kidney.fn]) union = combined.filter(lambda x: int(x[3]) == 3).saveas()  union.cut(range(3)).saveas(data + "/sites-union.bed")         

epithelial = epithelial.filter(filter_fold_change, fc = fc_cutoff).saveas()  proximal_tube = proximal_tube.filter(filter_fold_change, fc = fc_cutoff).saveas()  kidney = kidney.filter(filter_fold_change, fc = fc_cutoff).saveas()  # Identify only those sites that are peaks in all three tissue types  combined = pybedtools.BedTool().multi_intersect(i pybedtools.BedTool().multi_intersect(  i  = [epithelial.fn, proximal_tube.fn, kidney.fn]) union = combined.filter(lambda x: int(x[3]) == 3).saveas()  union.cut(range(3)).saveas(data + "/sites-union.bed")  \end{verbatim} 

epithelial = epithelial.filter(filter_fold_change, fc = fc_cutoff).saveas()  proximal_tube = proximal_tube.filter(filter_fold_change, fc = fc_cutoff).saveas()  kidney = kidney.filter(filter_fold_change, fc = fc_cutoff).saveas()  # Identify only those sites that are peaks in all three tissue types  combined = pybedtools.BedTool().multi_intersect(i pybedtools.BedTool().multi_intersect(  i  = [epithelial.fn, proximal_tube.fn, kidney.fn]) union = combined.filter(lambda x: int(x[3]) == 3).saveas()  union.cut(range(3)).saveas(data + "/sites-union.bed")  \end{verbatim}