741a954562bf99d23078b54eeb617f601a81f2af,workers/data_refinery_workers/processors/management/commands/queue_processor.py,Command,handle,#Command#,26

Before Change


    def handle(self, *args, **options):
        // Create all the dummy data that would have been created
        // before a processor job could have been generated.
        survey_job = SurveyJob(
            source_type="SRA"
        )
        survey_job.save()

        batch = Batch(
            survey_job=survey_job,
            source_type="SRA",
            size_in_bytes=2214725074,
            raw_format="fastq",
            processed_format="sf",
            pipeline_required="SALMON",
            platform_accession_code="IlluminaHiSeq2500",
            experiment_accession_code="PRJEB5018",
            experiment_title="It doesn"t really matter.",
            name="ERR1680082_1.fastq",
            internal_location="IlluminaHiSeq2500/SALMON",
            organism_id=10090,
            organism_name="MUS MUSCULUS",
            release_date="2014-03-25",
            last_uploaded_date="2016-05-20",
            status=BatchStatuses.NEW.value,
            download_url="ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR168/002/ERR1680082/ERR1680082_1.fastq.gz"  // noqa
        )
        batch.save()

        batch2 = Batch(
            survey_job=survey_job,
            source_type="SRA",

After Change


            return 0
        elif options["processor-type"] == "TRANSCRIPTOME_INDEX":
            self.run_trasnscriptome_processor()
            return 0
        else:
            logger.error("Unrecognized processor-type.")
            return 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: 741a954562bf99d23078b54eeb617f601a81f2af
Time: 2017-12-11
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/processors/management/commands/queue_processor.py
Class Name: Command
Method Name: handle


Project Name: matthewwithanm/django-imagekit
Commit Name: 310fd86c21f2ce0000d8023b95385d895c0f01bd
Time: 2012-02-17
Author: matthew@exanimo.com
File Name: tests/core/tests.py
Class Name:
Method Name: create_photo


Project Name: AlexsLemonade/refinebio
Commit Name: 261d057ac69e0e731e747918406c9f395a91cc12
Time: 2018-03-26
Author: rich@anomos.info
File Name: workers/data_refinery_workers/downloaders/test_sra.py
Class Name: DownloadSraTestCase
Method Name: insert_objects