Sha256: b9aa1202ef006800c85101f31822a8fecf622f1342e63410fe930ee95708b446

Contents?: true

Size: 722 Bytes

Versions: 28

Compression:

Stored size: 722 Bytes

Contents

#================================================
# SCBI - dariogf <soporte@scbi.uma.es>
#------------------------------------------------
#
# Version: 0.1 - 04/2009
#
# Usage: require "utils/fasta_utils"
#
# Fasta utilities
#
# 
#
#================================================

require File.dirname(__FILE__) +"/fasta_reader.rb"

	######################################
	# Define a subclass to override events
	######################################
class LoadFastaNamesInHash< FastaReader

	attr_reader :names

	#override begin processing
	def on_begin_process()
		@names = {}
	end

	def on_process_sequence(seq_name,seq_fasta)
		@names[seq_name]=true
	end

	#override end processing
	def on_end_process()
	end

end

Version data entries

28 entries across 28 versions & 1 rubygems

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