Sha256: 0dccaf797303144b16e952f4c8ee3ff0354fd22c5ecb1d42b29714b3aaae4158
Contents?: true
Size: 506 Bytes
Versions: 28
Compression:
Stored size: 506 Bytes
Contents
#!/usr/bin/env ruby require 'scbi_fastq' if ARGV.count < 2 puts "#{$0} FASTQ OUTPUT_NAME" exit end fastq = ARGV.shift output_name = ARGV.shift fasta = File.open(output_name+'.fasta','w') qual = File.open(output_name+'.fasta.qual','w') fqr=FastqFile.new(fastq) fqr.each do |seq_name,seq_fasta,seq_qual,comments| fasta.puts ">#{seq_name} #{comments}" fasta.puts seq_fasta qual.puts ">#{seq_name} #{comments}" qual.puts seq_qual.join(' ') end fasta.close qual.close fqr.close
Version data entries
28 entries across 28 versions & 1 rubygems