Skip to content
  • View menu
  • View sidebar

bioinfo core

Index & solution of bioInfo utilities

  • Home
  • All entries
  • Blogs
  • Contact
  • About

Categories

  • Between languages (7)
  • Blogs (8)
  • Python (35)
  • R (1)
  • Unix (37)

Tags

bedfile Blogs conda Excel html numpy Pandas Python R slurm Unix
08/12/202002/01/2023 by bioinfocore

Python compare two file line by line

  • Python
  • Python
with open('file1.txt','r') as f1, open('file2.txt','r') as f2:
    for line1, line2 in zip(f1, f2):
        if line1 != line2:
            print(line1,'\n',line2)

Source:
encodeproject.org/atac-seq/#overview

Post navigation

← Previous Post R set memory limit on Mac for Rstudio
Next Post → Jupyter Notebook check and stop all running servers/kernels
Copyright 2022 | by bioinfocore