Example #1
0
def load_indexed_gff_chrom(indexed_gff_chrom_filename):
    """
    Load indexed representation of a GFF chromosome.
    """
    indexed_gff_chrom = pickle_utils.load_pickled_file(
        indexed_gff_chrom_filename)
    return indexed_gff_chrom
 def load_from_pickle_file(self, pickle_filename):
     print "Called on: ", pickle_filename
     # clear currently loaded events, if any
     self.clear_events()
     # Modify events directly
     t1 = time.time()
     self.events = pickle_utils.load_pickled_file(pickle_filename)
     t2 = time.time()
     print "Loading from Pickle file took %.2f seconds." % (float(t2 - t1))
     self.num_events = len(self.events)
Example #3
0
    def load_from_pickle_file(self, pickle_filename):
        print "Called on: ", pickle_filename
	# clear currently loaded events, if any
	self.clear_events()
	# Modify events directly
	t1 = time.time()
	self.events = pickle_utils.load_pickled_file(pickle_filename)
	t2 = time.time()
	print "Loading from Pickle file took %.2f seconds." %(float(t2 - t1))
	self.num_events = len(self.events)
Example #4
0
def load_indexed_gff_file(indexed_gff_filename):
    """
    Load indexed representation of a set of genes.
    """
    indexed_gff = pickle_utils.load_pickled_file(indexed_gff_filename)
    return indexed_gff
Example #5
0
def load_indexed_gff_chrom(indexed_gff_chrom_filename):
    """
    Load indexed representation of a GFF chromosome.
    """
    indexed_gff_chrom = pickle_utils.load_pickled_file(indexed_gff_chrom_filename)
    return indexed_gff_chrom
Example #6
0
def load_indexed_gff_file(indexed_gff_filename):
    """
    Load indexed representation of a set of genes.
    """
    indexed_gff = pickle_utils.load_pickled_file(indexed_gff_filename)
    return indexed_gff