7636a32728d1d6205d4f6ceeea8e6f2d6967b81f,foreman/data_refinery_foreman/surveyor/array_express.py,ArrayExpressSurveyor,create_samples_from_api,#ArrayExpressSurveyor#Any#,245

Before Change


            association.save()

            // Create associations if they don"t already exist
            try:
                assocation = ExperimentSampleAssociation.objects.get(experiment=experiment, sample=sample_object)
            except ExperimentSampleAssociation.DoesNotExist:
                association = ExperimentSampleAssociation()
                association.experiment = experiment
                association.sample = sample_object
                association.save()

            try:
                assocation = ExperimentOrganismAssociation.objects.get(experiment=experiment, organism=organism)
            except ExperimentOrganismAssociation.DoesNotExist:
                association = ExperimentOrganismAssociation()

After Change


                original_file_sample_association.save()

            // Create associations if they don"t already exist
            ExperimentSampleAssociation.objects.get_or_create(
                experiment=experiment, sample=sample_object)

            ExperimentOrganismAssociation.objects.get_or_create(
                experiment=experiment, organism=organism)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: 7636a32728d1d6205d4f6ceeea8e6f2d6967b81f
Time: 2018-06-06
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_samples_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: 7636a32728d1d6205d4f6ceeea8e6f2d6967b81f
Time: 2018-06-06
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/array_express.py
Class Name: ArrayExpressSurveyor
Method Name: create_samples_from_api


Project Name: AlexsLemonade/refinebio
Commit Name: 7636a32728d1d6205d4f6ceeea8e6f2d6967b81f
Time: 2018-06-06
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: 7636a32728d1d6205d4f6ceeea8e6f2d6967b81f
Time: 2018-06-06
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/sra.py
Class Name: SraSurveyor
Method Name: _generate_experiment_and_samples