f55c645373b2057a5c1c7861cdb6c717585cf0b7,foreman/data_refinery_foreman/surveyor/geo.py,GeoSurveyor,create_experiment_and_samples_from_api,#GeoSurveyor#Any#,59

Before Change


            experiment_object.description = gse.metadata.get("summary", [""])[0]
            
            // TODO: Lookup GEO-GPL - Related: https://github.com/AlexsLemonade/refinebio/issues/222
            experiment_object.platform_name = gse.metadata.get("platform_id", [""])[0]
            experiment_object.platform_accession_code = gse.metadata.get("platform_id", [""])[0]

            // Source doesn"t provide time information, assume midnight.
            experiment_object.source_first_published = dateutil.parser.parse(gse.metadata["submission_date"][0] + " 00:00:00 UTC")

After Change


                    sample_object.platform_name = UNKNOWN
                else:
                    platform_accession_code = UNKNOWN
                    for platform in get_supported_microarray_platforms():
                        if platform["external_accession"] == external_accession:
                            platform_accession_code = platform["platform_accession"]

                    sample_object.platform_accession_code = platform_accession_code
                    if sample_object.platform_accession_code == UNKNOWN:
                        sample_object.platform_name = UNKNOWN
                    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: f55c645373b2057a5c1c7861cdb6c717585cf0b7
Time: 2018-05-29
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/geo.py
Class Name: GeoSurveyor
Method Name: create_experiment_and_samples_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: f55c645373b2057a5c1c7861cdb6c717585cf0b7
Time: 2018-05-29
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_experiment_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: 851a4d3df459e36fb500828815cd6840860d3467
Time: 2018-06-07
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_experiment_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: f55c645373b2057a5c1c7861cdb6c717585cf0b7
Time: 2018-05-29
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/geo.py
Class Name: GeoSurveyor
Method Name: create_experiment_and_samples_from_api