Description Usage Arguments Value See Also
Get indices of the specified samples. Samples can be specified at one of the following levels: sample, strain, or tetrad. If none are specified, all sample indices are returned.
1 2 3 4 5 6 | getSampleIndices(cross.info, samples = NULL, strains = NULL,
tetrads = NULL, simplify = FALSE)
## S4 method for signature 'CrossInfo'
getSampleIndices(cross.info, samples = NULL,
strains = NULL, tetrads = NULL, simplify = FALSE)
|
cross.info |
A |
samples |
Vector indicating samples to consider. This may be a logical vector of samples, an integer vector of sample indices, or a character vector that contains sample IDs or their equivalent syntactically valid name. |
strains |
Vector indicating strains to consider. This may be a logical vector of strains, an integer vector of strain indices, or a character vector that contains strain IDs or their equivalent syntactically valid name. |
tetrads |
Vector indicating tetrads to consider. This may be a logical vector of tetrads, or an integer vector of tetrad indices. |
simplify |
Simplify list return value to a vector. |
If samples are specified by strain or tetrad, and if the option
simplify
is not TRUE
, this method returns a list of integer
vectors, each containing the sample indices corresponding to a given
strain/tetrad. Otherwise, a vector of sample indices is returned.
Other CrossInfo methods: getAlleles
,
getCrosstype
, getGenotypes
,
getMarkerIndices
,
getMarkerNames
,
getMarkerSeqs
, getMarkers
,
getNumMarkers
,
getNumPhenotypes
,
getNumSamples
, getNumSeqs
,
getPhenotypeIndices
,
getPhenotypeNames
,
getPhenotypes
,
getSampleNames
, getSamples
,
getSeqIndices
, getSeqMarkers
,
getSeqNames
, getSequences
,
getStrainIndices
,
getTetradIndices
,
hasMarkerSeqs
, hasSampleIDs
,
hasStrainIndices
,
hasTetradIndices
, setAlleles
,
setCrosstype
, setGenotypes
,
setMarkerSeqs
, setMarkers
,
setPhenotypes
, setSamples
,
setSequences
,
setStrainIndices
,
setTetradIndices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.