Changeset 2130


Ignore:
Timestamp:
Mar 30, 2006, 11:44:07 AM (17 years ago)
Author:
Nicklas Nordborg
Message:

New bioassays now get the same name as their parent bioassay or raw bioassay

File:
1 edited

Legend:

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

    r1795 r2130  
    495495    Set<RawBioAssayData> rawBioAssays = ba.getData().getRawParents();
    496496    Set<RawBioAssayData> transformationRawSources = getData().getTransformation().getRawSources();
     497    String baName = null;
    497498    for (RawBioAssay rba : rawParents)
    498499    {
     
    502503      }
    503504      rawBioAssays.add(rba.getData());
    504     }
     505      baName = rba.getName();
     506    }
     507    if (rawParents.size() == 1) ba.setName(baName);
    505508    return ba;
    506509  }
     
    554557   
    555558    // Everyting is ok, create the new bioassay
    556     return newBioAssay(parent.getDataCubeColumn(), Collections.singleton(parent));
     559    BioAssay ba = newBioAssay(parent.getDataCubeColumn(), Collections.singleton(parent));
     560    ba.setName(parent.getName());
     561    return ba;
    557562  }
    558563 
Note: See TracChangeset for help on using the changeset viewer.