Created
November 3, 2011 08:43
-
-
Save fstrozzi/1336062 to your computer and use it in GitHub Desktop.
Simple append for FastQ IDs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARGF.each do |line| | |
line.chomp! | |
if line.start_with? "@HISEQ" | |
a = line.split("\s") | |
a[0] += "_1" | |
puts a.join("\s") | |
else | |
puts line | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment