def METHOD_NAME(self, *args, **options):
    """Main function for this command.
    Basically does what is described at the top of this file.
    """
    # Create working dir
    LOCAL_ROOT_DIR = get_env_variable("LOCAL_ROOT_DIR", "/home/user/data_store")
    work_dir = LOCAL_ROOT_DIR + "/affy_correction/"
    os.makedirs(work_dir, exist_ok=True)
    for sample in Sample.objects.filter(technology="RNA-SEQ", source_database="GEO"):
        for original_file in sample.original_files.all():
            if original_file.is_affy_data():
                input_file_path = work_dir + original_file.source_filename
                download_success = _download_file(original_file.source_url, input_file_path)
                if download_success:
                    try:
                        brainarray_package = _determine_brainarray_package(input_file_path)
                        if brainarray_package:
                            logger.info(
                                "Determined the package for sample %d is: "
                                + brainarray_package,
                                sample.id,
                            )
                            # If we've detected the platform using affy, then this
                            # is the best source of truth we'll be able to get, so
                            # update the sample to match it.
                            platform_name = get_readable_affymetrix_names()[brainarray_package]
                            sample.platform_accession_code = brainarray_package
                            sample.platform_name = platform_name
                    except Exception:
                        logger.exception(
                            "Failed to detect platform from downloaded file %s.",
                            input_file_path,
                        )
                # Regardless of whether we could detect the
                # platform successfully or not, we definitely know
                # it's an Affymetrix Microarray because that's the
                # only one that makes .CEL files.
                sample.technology = "MICROARRAY"
                sample.manufacturer = "AFFYMETRIX"
                sample.save()
                # If there's other original files associated with
                # this sample, we don't need them because we
                # already corrected the platform.
                break
    # Cleanup after ourselves:
    shutil.rmtree(work_dir)