Class GeoSample
- java.lang.Object
-
- ubic.gemma.core.loader.expression.geo.model.GeoData
-
- ubic.gemma.core.loader.expression.geo.model.GeoSample
-
- All Implemented Interfaces:
Serializable
,Comparable<GeoData>
public class GeoSample extends GeoData implements Comparable<GeoData>
Represents a sample (GSM) in GEO. The channels correspond to BioMaterials; the sample itself corresponds to a BioAssay in Gemma. Some fields are only relevant for SAGE.- Author:
- pavlidis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoSample.LibraryStrategy
-
Field Summary
-
Fields inherited from class ubic.gemma.core.loader.expression.geo.model.GeoData
contact, geoAccession
-
-
Constructor Summary
Constructors Constructor Description GeoSample()
-
Method Summary
-
Methods inherited from class ubic.gemma.core.loader.expression.geo.model.GeoData
addColumnName, equals, getColumnDescriptions, getColumnNames, getContact, getGeoAccession, getTitle, hashCode, setGeoAccession, setTitle
-
-
-
-
Method Detail
-
addChannel
public void addChannel()
-
addPlatform
public void addPlatform(GeoPlatform platform)
-
addReplication
public void addReplication(GeoReplication replication)
-
addSeriesAppearsIn
public void addSeriesAppearsIn(String value)
-
addToDataProcessing
public void addToDataProcessing(String s)
-
addToDescription
public void addToDescription(String s)
-
addToHybProtocol
public void addToHybProtocol(String s)
-
addToScanProtocol
public void addToScanProtocol(String s)
-
addVariable
public void addVariable(GeoVariable variable)
-
appearsInMultipleSeries
public boolean appearsInMultipleSeries()
- Returns:
- true if this sample appears in more than one GEO Series.
-
compareTo
public int compareTo(GeoData o)
- Specified by:
compareTo
in interfaceComparable<GeoData>
-
getId
public String getId()
-
setId
public void setId(String id)
-
getStatus
public String getStatus()
-
setStatus
public void setStatus(String status)
-
getSubmissionDate
public String getSubmissionDate()
-
setSubmissionDate
public void setSubmissionDate(String submissionDate)
-
setChannelCount
public void setChannelCount(int channelCount)
-
setGenePix
public void setGenePix(boolean genePix)
-
setPlatforms
public void setPlatforms(Collection<GeoPlatform> platforms)
-
isWarnedAboutGenePix
public boolean isWarnedAboutGenePix()
-
setWarnedAboutGenePix
public void setWarnedAboutGenePix(boolean warnedAboutGenePix)
-
getAnchor
public String getAnchor()
- Returns:
- Returns the anchor. (SAGE)
-
getChannel
public GeoChannel getChannel(int i)
-
getChannelCount
public int getChannelCount()
- Returns:
- Returns the channelCount.
-
getChannels
public List<GeoChannel> getChannels()
- Returns:
- Returns the channels.
-
getDataProcessing
public String getDataProcessing()
- Returns:
- Returns the dataProcessing.
-
getDescription
public String getDescription()
- Returns:
- Returns the description.
-
getHybProtocol
public String getHybProtocol()
- Returns:
- Returns the hybProtocol.
-
getLastUpdateDate
public String getLastUpdateDate()
- Returns:
- String
-
getNthQuantitationType
public String getNthQuantitationType(int n)
Given a column number (count starts from zero) get the name of the corresponding quantitation type for this sample.- Parameters:
n
- column number- Returns:
- column name.
-
getOrganism
public String getOrganism()
- Returns:
- organism name. This is obtained from the 'channels'.
- Throws:
IllegalArgumentException
- if there are two different organisms. This is kind of temporary, it's not nice.
-
getPlatforms
public Collection<GeoPlatform> getPlatforms()
-
getReplicates
public Collection<GeoReplication> getReplicates()
- Returns:
- Returns the replicates.
-
getScanProtocol
public String getScanProtocol()
- Returns:
- Returns the scanProtocol.
-
getSeriesAppearsIn
public Collection<String> getSeriesAppearsIn()
-
getSupplementaryFile
public String getSupplementaryFile()
- Returns:
- String
-
getTagCount
public int getTagCount()
- Returns:
- Returns the tagCount. (SAGE)
-
getTagLength
public int getTagLength()
- Returns:
- Returns the tagLength. (SAGE)
-
getTitleInDataset
public String getTitleInDataset()
-
getType
public String getType()
Returns the sample type (ie. DNA, RNA, etc.)- Returns:
- String
-
getVariables
public Collection<GeoVariable> getVariables()
- Returns:
- Returns the variables.
-
hasUsableData
public boolean hasUsableData()
- Returns:
- true if the data uses a platform that, generally, we can use the data from. Will be false for MPSS, SAGE and Exon array data.
-
isGenePix
public boolean isGenePix()
-
isMightNotHaveDataInFile
public boolean isMightNotHaveDataInFile()
- Returns:
- true if the data might be separate, as for some RNA-seq studies.
-
setAnchor
public void setAnchor(String anchor)
- Parameters:
anchor
- The anchor to set. (SAGE)
-
setChannels
public void setChannels(List<GeoChannel> channelData)
-
setDataProcessing
public void setDataProcessing(String dataProcessing)
- Parameters:
dataProcessing
- The dataProcessing to set.
-
setDescription
public void setDescription(String description)
- Parameters:
description
- The description to set.
-
setHybProtocol
public void setHybProtocol(String hybProtocol)
- Parameters:
hybProtocol
- The hybProtocol to set.
-
setLastUpdateDate
public void setLastUpdateDate(String lastUpdateDate)
-
setMightNotHaveDataInFile
public void setMightNotHaveDataInFile(boolean mightNotHaveDataInFile)
-
setScanProtocol
public void setScanProtocol(String scanProtocol)
- Parameters:
scanProtocol
- The scanProtocol to set.
-
setSeriesAppearsIn
public void setSeriesAppearsIn(Collection<String> otherSeriesAppearsIn)
-
setSupplementaryFile
public void setSupplementaryFile(String supplementaryFile)
-
setTagCount
public void setTagCount(int tagCount)
- Parameters:
tagCount
- The tagCount to set. (SAGE)
-
setTagLength
public void setTagLength(int tagLength)
- Parameters:
tagLength
- The tagLength to set. (SAGE)
-
setTitleInDataset
public void setTitleInDataset(String titleInDataset)
-
setType
public void setType(String type)
Sets the sample type (ie. DNA, RNA, etc.)- Parameters:
type
- new type
-
-