Sha256: ec643d291e209bc5369cecd3ebd49374d555770740255ab8968ab0ac538ee7e1

Contents?: true

Size: 208 Bytes

Versions: 9

Compression:

Stored size: 208 Bytes

Contents

#!/usr/bin/env ruby
require 'faraday'
ARGV.each do |arg|
  resp = Faraday.get("http://www.uniprot.org/uniprot/#{arg}.fasta")
  if resp.success?
    puts resp.body.lines.map(&:chomp)[1..-1].join("")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
unipept-0.3.2 bin/uniprot
unipept-0.3.1 bin/uniprot
unipept-0.3.0 bin/uniprot
unipept-0.2.10 bin/uniprot
unipept-0.2.8 bin/uniprot
unipept-0.2.7 bin/uniprot
unipept-0.2.6 bin/uniprot
unipept-0.2.5 bin/uniprot
unipept-0.2.4 bin/uniprot