Beispiel #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
Beispiel #2
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)
Beispiel #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)
Beispiel #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
Beispiel #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
Beispiel #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