def importNewPairs(self, pairs, # csv containing information about new pairs to process paths # absolute paths to new genome fasta files referenced in pairs ): print "Importing new pairs from: %s" % pairs print "Import full contig file paths from: %s" % paths # get an interface to the file II = ImportInterface(self.dbFileName) # import paths first with open(paths, "r") as paths_fh: II.importGenomes(paths_fh) # import genomes next with open(pairs, "r") as pairs_fh: II.importPairs(pairs_fh)