Sha256: a2f121a4bc0a5732b9620771f3c2550e0e57fbb648451b952466e41001a93dfb
Contents?: true
Size: 413 Bytes
Versions: 5
Compression:
Stored size: 413 Bytes
Contents
#!/usr/bin/env ruby # # na2aa.rb - translate any NA input into AA FASTA format # # Copyright:: Copyright (C) 2019 BioRuby Project # License:: The Ruby License # require 'bio' ARGV.each do |fn| Bio::FlatFile.open(fn) do |ff| ff.each do |entry| next if /\A\s*\z/ =~ ff.entry_raw.to_s na = entry.naseq aa = na.translate print aa.to_fasta(entry.definition, 70) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bio-2.0.5 | sample/na2aa.rb |
bio-2.0.4 | sample/na2aa.rb |
bio-2.0.3 | sample/na2aa.rb |
bio-2.0.2 | sample/na2aa.rb |
bio-2.0.1 | sample/na2aa.rb |