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

Version Path
seqtrimnext-2.0.68 bin/fastq2fasta.rb
seqtrimnext-2.0.66 bin/fastq2fasta.rb
seqtrimnext-2.0.62 bin/fastq2fasta.rb
seqtrimnext-2.0.61 bin/fastq2fasta.rb
seqtrimnext-2.0.60 bin/fastq2fasta.rb
seqtrimnext-2.0.59 bin/fastq2fasta.rb
seqtrimnext-2.0.57 bin/fastq2fasta.rb
seqtrimnext-2.0.56 bin/fastq2fasta.rb
seqtrimnext-2.0.55 bin/fastq2fasta.rb
seqtrimnext-2.0.54 bin/fastq2fasta.rb
seqtrimnext-2.0.52 bin/fastq2fasta.rb
seqtrimnext-2.0.51 bin/fastq2fasta.rb
seqtrimnext-2.0.50 bin/fastq2fasta.rb
seqtrimnext-2.0.49 bin/fastq2fasta.rb
seqtrimnext-2.0.48 bin/fastq2fasta.rb
seqtrimnext-2.0.46 bin/fastq2fasta.rb
seqtrimnext-2.0.45 bin/fastq2fasta.rb
seqtrimnext-2.0.42 bin/fastq2fasta.rb
seqtrimnext-2.0.41 bin/fastq2fasta.rb
seqtrimnext-2.0.39 bin/fastq2fasta.rb