Changeset 6093


Ignore:
Timestamp:
Aug 27, 2012, 12:42:05 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #1707: Make it possible for a derived bioassay to have multiple physical bioassays as parents

Fixed the Illumina raw bioassay importer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/IlluminaRawDataImporter.java

    r5692 r6093  
    5555import net.sf.basedb.core.Job;
    5656import net.sf.basedb.core.Permission;
     57import net.sf.basedb.core.PhysicalBioAssay;
    5758import net.sf.basedb.core.Platform;
    5859import net.sf.basedb.core.PluginParameter;
     
    689690                bioAssay = DerivedBioAssay.getById(dc, bioAssay.getId());
    690691                // Find extract on the given array position.
    691                 List<BioMaterialEventSource> sources = bioAssay.getPhysicalBioAssay().getCreationEvent().getEventSources(dc, arrayPosition);
    692                 // There must be exactly one source
    693                 if (sources.size() == 1) extract = (Extract)sources.get(0).getBioMaterial();
     692                List<PhysicalBioAssay> physicalBioAssays = bioAssay.getPhysicalBioAssays().list(dc);
     693                if (physicalBioAssays.size() == 1)
     694                {
     695                  List<BioMaterialEventSource> sources = physicalBioAssays.get(0).getCreationEvent().getEventSources(dc, arrayPosition);
     696                  // There must be exactly one source
     697                  if (sources.size() == 1) extract = (Extract)sources.get(0).getBioMaterial();
     698                }
    694699              }
    695700            }
Note: See TracChangeset for help on using the changeset viewer.