Python code to extract specific lines in a textfile in Computer Science Posted August 27, 2015 Hey Guys: For my research project, I would need a python code that will enable me to extract specific lines from a textfile. The textfile has the following format: fixedStep chrom=chr3 start=56424 step=1 0.000 0.001 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.007 fixedStep chrom=chr3 start=56425 step=1 Etc.... In fact, I would like to obtain an other textfile without the numerical lines, in the following format: fixedStep chrom=chr3 start=56424 step=1 fixedStep chrom=chr3 start=56425 step=1 Etc.... Looking forward to hearing from you soon, Best, JEFF O. 0
Python code to extract specific lines in a textfile
in Computer Science
Posted
Hey Guys:
For my research project, I would need a python code that will enable me to extract specific lines from a textfile.
The textfile has the following format:
fixedStep chrom=chr3 start=56424 step=1