Sha256: 9f791ad8367fe709bc670da03c0f02341464609a6cd738b36b868726bcaa5f8a

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

#!/usr/bin/env ruby
#
#  untitled
#
#  Created by Dan MacLean (TSL) on 2012-03-01.
#  Copyright (c)  . All rights reserved.
###################################################

require 'bio'

file = Bio::FastaFormat.open(ARGV[0])
file.each do |entry|
  section = entry.seq[ARGV[1].to_i..ARGV[2].to_i]
  puts ">#{entry.entry_id}:#{ARGV[1]}..#{ARGV[2]}"
  puts section
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bio-gngm-0.2.1 scripts/get_subseq.rb
bio-gngm-0.2.0 scripts/get_subseq.rb
bio-gngm-0.1.0 scripts/get_subseq.rb