|go ahead... be a heretic|
Re: Deconvolutinng FastQ filesby ww (Bishop)
|on Aug 06, 2012 at 08:02 UTC||Need Help??|
If production is your goal, frozenwithjoy's suggestion may be just what you need.
If this is (as it appears) schoolwork (homework?), then you need to understand that this is NOT 'code-a-matic.'
We'll be pleased to help you learn; you need merely show that you've made a good faith effort to solve your problem. In this case, means, post your code and tell us how it fails or post an algorithm (or pseudo-code) where you can't work out the syntax.
You've outlined a fairly ambitious project for a 'complete newbie in perl,' so -- in case you're stuck on which of Perl's capabilities will help you here, consider
My suspicion is that working out an appropriate set of regular expressions (there's a broad hint in the word "set" and a part of one of many possible solutions next) will be your biggest challenge, so...
There may be a way around this line-by-line approach. If you can absolutely count on "+" as the entire content of the third line of each record, you could use that fact as part of an approach to reading your "main file" record-by-record -- but that would be an additional complexity. Your addendum does, however, suggest an approach.
So, my suggestion is -- try this, if you're working on homework... and come back when you get stuck, with code, and details about the shortcomings of that codeAnd BTW, welcome to the Monastery.