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.38 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.36 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.35 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.33 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.32 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.31 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.30 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb
seqtrimnext-2.0.29 lib/seqtrimnext/utils/load_fasta_names_in_hash.rb