adansonia has asked for the wisdom of the Perl Monks concerning the following question:
@HWI-ST591:68:D0DBPABXX:5:1101:1197:2084 1:N:0:
GGTAGTTCGACCGTGGAT
+
B@@FFEFFHDHHFHIJJE
@HWI-ST591:68:D0DBPABXX:5:1101:1086:2085 1:N:0:
GCTGGAACTTGGCAAAGAAGAGAG
+
@@@FFEFFGHHHH@@FEHBEHJGG
I need to write a perl script to read the sequence lines and print their length which can vary between 0 and 100 positions. My main problem is that I don't know how to write in perl the command line to read each four lines and calculate the length of the second one. I would be very grateful if someone could help me! Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read nth lines in a text file
by toolic (Bishop) on Aug 30, 2011 at 21:05 UTC | |
by adansonia (Initiate) on Aug 30, 2011 at 21:14 UTC | |
|
Re: read nth lines in a text file
by BrowserUk (Patriarch) on Aug 30, 2011 at 21:01 UTC | |
|
Re: read nth lines in a text file
by JavaFan (Canon) on Aug 30, 2011 at 20:59 UTC |