Run the classify metagenome of the CLARK package on the samples

def classifymetagenome(self):
        """Run the classify metagenome of the CLARK package on the samples"""
        logging.info('Classifying metagenomes')
        # Define the system call
        self.classifycall = 'cd {} && ./classify_metagenome.sh -O {} -R {} -n {} --light'\
            .format(self.clarkpath,
                    self.filelist,
                    self.reportlist,
                    self.cpus)
        # Variable to store classification state
        classify = True
        for sample in self.runmetadata.samples:
            try:
                # Define the name of the .csv classification file
                sample.general.classification = sample.general.combined.split('.')[0] + '.csv'
                # If the file exists, then set classify to False
                if os.path.isfile(sample.general.classification):
                    classify = False
            except KeyError:
                pass
        # Run the system call if the samples have not been classified
        if classify:
            # Run the call
            subprocess.call(self.classifycall, shell=True, stdout=self.devnull, stderr=self.devnull)