Skip to content

Instantly share code, notes, and snippets.

@fstrozzi
Created November 3, 2011 08:43
Show Gist options
  • Save fstrozzi/1336062 to your computer and use it in GitHub Desktop.
Save fstrozzi/1336062 to your computer and use it in GitHub Desktop.
Simple append for FastQ IDs
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