Skip to content

Instantly share code, notes, and snippets.

@audy
Forked from yannickwurm/mergePairedReads.rb
Created August 22, 2012 16:19
Show Gist options
  • Save audy/3427165 to your computer and use it in GitHub Desktop.
Save audy/3427165 to your computer and use it in GitHub Desktop.
Paste left read and right read from Illumina into a single megaread
#!/usr/bin/env ruby
require 'dna' # gem install dna
left, right = ARGV[0], ARGV[1]
left_handle = File.open(left)
right_handle = File.open(right)
left_records = Dna.new(left_handle)
right_records = Dna.new(right_handle)
left_records.zip(right_records).each do |l, r|
end
@audy
Copy link
Author

audy commented Aug 22, 2012

Are you doing this before or after quality trimming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment