|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MJAbase | +--MJAgeneList
MAExplorer Open Java API class to access MJAgeneList methods and data structures. Access lists and sets of genes
List of methods available to Plugin-writers
getCurrentGeneClassIndex() - get index of current gene class in DB getNumbersOfGenesInGeneSubsets() - get list of # genes in all gene subsets getNbrSpecialGeneSubsets() - get # of special gene subsets in DB getNbrGeneSubsets() - get total # of gene subsets in DB getNbrGeneBitSubsets() - get total # of gene bit subsets in DB getGeneListNames() - get list of the names for all of the GeneLists getMIDindicesFromGeneList() - get list of GeneList MIDs by GeneList name. getMIDindicesForFilterGeneList() - get list MIDs for data Filter GeneList. getGeneFieldDataFromGeneList() - get String[] of Gene fields for gene list getListOfGeneFieldsForMID() - get list of Gene fields for a gene by MID getGeneListData() - get Hashtable list of GeneList data by GeneList name. setGeneListData() - set GeneList list of gene index data by GeneList name. makeNewGeneList() - create a new empty named gene list and gene bit set addGeneToGeneList() - add gene MID to GeneList removeGeneFromGeneList() - remove gene MID from GeneList isGeneInGeneList() - test if gene MID is GeneList setGeneListByStringList() - set GeneList by "," delimited list of MIDs clearGeneListBitSet() - clear the gene list bit set getGeneBitsetData() - get list of GeneBitSet data by GeneBitSet name. setGeneBitsetData() - set bitData for GeneBitSet by GeneBitSet name. addGeneToGeneBitset() - add gene MID to Gene bitset removeGeneFromGeneBitset() - remove gene MID from Gene bitset isGeneInGeneBitset() - add gene MID to Gene bitset clearGeneBitset() - clear the gene bit set findCountAndhighMIDinGeneBitset() - find count highest MID in GeneBitSet setUserFilterGeneList() - set the "User Filter Gene Set" by GeneList name. setUserNormalizeGeneList() - set "Normalize by 'User Gene set'" by GeneList name.
Static and dynamic gene sets
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Method Summary | |
boolean |
addGeneToGeneBitset(java.lang.String geneBitsetName,
int mid)
addGeneToGeneBitset() - add gene MID to Gene bitset, ignore if already there |
boolean |
addGeneToGeneList(java.lang.String geneListName,
int mid,
java.lang.String[] geneNames)
addGeneToGeneList() - add gene MID to GeneList, ignore if already there |
boolean |
clearGeneBitset(java.lang.String geneBitsetName)
clearGeneBitset() - clear the gene bit set |
boolean |
clearGeneListBitSet(java.lang.String geneListName,
int mid,
java.lang.String[] geneNames)
clearGeneListBitSet() - clear the gene list bit set |
boolean |
findCountAndhighMIDinGeneBitset(java.lang.String geneBitsetName)
findCountAndhighMIDinGeneBitset() - find count and highest MID in GeneBitSet |
int |
getCurrentGeneClassIndex()
getCurrentGeneClassIndex() - get index of current gene class in DB |
java.util.Hashtable |
getGeneBitsetData(java.lang.String geneBitsetName)
getGeneBitsetData() - get Hashtable list of GeneBitSet data by GeneBitSet name. |
java.lang.String[] |
getGeneFieldDataFromGeneList(java.lang.String geneListName,
java.lang.String dataFieldName)
getGeneFieldDataFromGeneList() - get String list of Gene fields for gene list. |
java.util.Hashtable |
getGeneListData(java.lang.String geneListName)
getGeneListData() - get Hashtable list of GeneList data by GeneList name. |
java.lang.String[] |
getGeneListNames()
getGeneListNames() - get list of the names for all of the GeneLists |
java.util.Hashtable |
getListOfGeneFieldsForMID(int mid)
getListOfGeneFieldsForMID() - get list of Gene fields for a gene by MID DataFieldNames: "GeneName", "GenBankID", "GenBank3ID", "GenBank5ID", "CloneID", "LocusID", "UniGeneID", "SwissProtID", "RefSeqID", "Master_ID", "MasterGeneName", "Generic_ID" |
java.lang.String |
getMasterGeneIDname()
getMasterGeneIDname() - get the type of name used for Master Gene ID |
java.lang.String |
getMasterGeneName()
getMasterGeneName() - get the type of name used for Master Gene Name |
int |
getMasterIDMode()
getMasterIDMode() - get the mode of name used for Master Gene ID It will be either MASTER_GENE_NAME or MASTER_UG_NAME |
int |
getMasterNameMode()
getMasterGeneName() - get the mode of name used for Master Gene Name It will be either MASTER_GENE_NAME or MASTER_UG_NAME |
int[] |
getMIDindicesForFilterGeneList()
getMIDindicesForFilterGeneList() - get list MIDs for data Filter GeneList. |
int[] |
getMIDindicesFromGeneList(java.lang.String geneListName)
getMIDindicesFromGeneList() - get list of GeneList MIDs by GeneList name. |
int |
getNbrGeneBitSubsets()
getNbrGeneBitSubsets() - get total # of gene list bit subsets in DB |
int |
getNbrGeneSubsets()
getNbrGeneSubsets() - get total # of gene subsets in DB |
int |
getNbrSpecialGeneSubsets()
getNbrSpecialGeneSubsets() - get # of special gene subsets in DB |
int[] |
getNumbersOfGenesInGeneSubsets()
getNumbersOfGenesInGeneSubsets() - get list of # genes in each of the gene subsets |
boolean |
isGeneInGeneBitset(java.lang.String geneBitsetName,
int mid)
isGeneInGeneBitset() - add gene MID to Gene bitset, ignore if already there |
boolean |
isGeneInGeneList(java.lang.String geneListName,
int mid,
java.lang.String[] geneNames)
isGeneInGeneList() - test if gene MID is GeneList |
boolean |
makeNewGeneList(java.lang.String geneListName,
boolean createOrderedListFlag)
makeNewGeneList() - create a new empty named gene list and gene bit set |
boolean |
removeGeneFromGeneBitset(java.lang.String geneBitsetName,
int mid)
removeGeneFromGeneBitset() - remove gene MID from Gene bitset, ignore if already there |
boolean |
removeGeneFromGeneList(java.lang.String geneListName,
int mid,
java.lang.String[] geneNames)
removeGeneFromGeneList() - remove gene MID from GeneList, ignore if not there |
boolean |
setGeneBitsetData(java.lang.String geneBitsetName,
long[] bitData,
int maxWords)
setGeneBitsetData() - set bitData for GeneBitSet by GeneBitSet name. |
boolean |
setGeneListByStringList(java.lang.String geneListName,
java.lang.String[] geneNames)
setGeneListByStringList() - set GeneList by "," delimited list of MID indices |
boolean |
setGeneListData(java.lang.String geneListName,
int[] listOfGenes)
setGeneListData() - set GeneList list of gene index data by existing GeneList name. |
boolean |
setGeneListData(java.lang.String geneListName,
int[] listOfGenes,
int lth)
setGeneListData() - set GeneList list of gene index data by existing GeneList name. |
boolean |
setUserFilterGeneList(java.lang.String geneListName,
boolean setFilterUseGeneSetFlag)
setUserFilterGeneList() - set the "User Filter Gene Set" by GeneList name. |
boolean |
setUserNormalizeGeneList(java.lang.String geneListName,
boolean setNormalizeByGeneSetFlag)
setUserNormalizeGeneList() - set the "Normalize by 'User Gene set'" by GeneList name. |
Methods inherited from class MJAbase |
cvtHashtable2SimpleTable, cvtTable2Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final java.lang.String getMasterGeneName()
null
if not found.public final int getMasterNameMode()
null
if not found.public final java.lang.String getMasterGeneIDname()
null
if not found.public final int getMasterIDMode()
null
if not found.public final int getCurrentGeneClassIndex()
public final int getNbrSpecialGeneSubsets()
public final int getNbrGeneSubsets()
public final int getNbrGeneBitSubsets()
public final java.lang.String[] getGeneListNames()
null
if problem.public final int[] getNumbersOfGenesInGeneSubsets()
public final int[] getMIDindicesFromGeneList(java.lang.String geneListName)
geneListName
- name of gene listnull
if not found or error,
else return integer list of MIDs.public final int[] getMIDindicesForFilterGeneList()
null
if not found or error,
else return integer list of MIDs.public final java.lang.String[] getGeneFieldDataFromGeneList(java.lang.String geneListName, java.lang.String dataFieldName)
geneListName
- is name of the gene listdataFieldName
- is one of the legal data fieldspublic final java.util.Hashtable getListOfGeneFieldsForMID(int mid)
geneListName
- is name of the gene listdataFieldName
- is one of the legal data fieldspublic final java.util.Hashtable getGeneListData(java.lang.String geneListName)
The Hashtable list returned is defined as: Name - Value "GeneListName" - String name of gene list (see list in this class description) "Length" - int number genes in gene list "ListOfGeneIndices" - int[0:Length-1] list of gene indices in Gene List
geneListName
- name of gene listnull
if error.public final boolean setGeneListData(java.lang.String geneListName, int[] listOfGenes)
geneListName
- name of gene list (see list in this class description)listOfGenes
- list of gene MID index values to put into the listgetGeneListData(java.lang.String)
,
makeNewGeneList(java.lang.String, boolean)
public final boolean setGeneListData(java.lang.String geneListName, int[] listOfGenes, int lth)
geneListName
- name of gene list (see list in this class description)listOfGenes
- list of gene MID index values to put into the listlth
- length of gene index list listOfGenes (lth could be less than
listOfGenes.length)getGeneListData(java.lang.String)
,
makeNewGeneList(java.lang.String, boolean)
public final boolean makeNewGeneList(java.lang.String geneListName, boolean createOrderedListFlag)
geneListName
- of the named gene list to createcreateOrderedListFlag
- to also create ordered gene list,
else just save as gene bit setgetGeneListData(java.lang.String)
,
setGeneListData(java.lang.String, int[])
public final boolean addGeneToGeneList(java.lang.String geneListName, int mid, java.lang.String[] geneNames)
geneListName
- name of gene listmid
- gene MID to add to named geneBitSetgeneNames
- (opt) array of gene names for setting by name, else nullpublic final boolean removeGeneFromGeneList(java.lang.String geneListName, int mid, java.lang.String[] geneNames)
geneListName
- name of gene listmid
- gene MID to add to named geneBitSetgeneNames
- (opt) array of gene names for setting by name, else nullpublic final boolean isGeneInGeneList(java.lang.String geneListName, int mid, java.lang.String[] geneNames)
geneListName
- name of gene listmid
- gene MID to add to named geneBitSetgeneNames
- (opt) array of gene names for setting by name,
else nullpublic final boolean setGeneListByStringList(java.lang.String geneListName, java.lang.String[] geneNames)
geneListName
- name of gene listgeneNames
- (opt) array of gene names for setting by name, else nullnull
if not found or error, else return true.public final boolean clearGeneListBitSet(java.lang.String geneListName, int mid, java.lang.String[] geneNames)
geneListName
- name of gene listmid
- gene MID to add to named geneBitSetgeneNames
- (opt) array of gene names for setting by name,
else nullnull
if not found or error, else return true.public final java.util.Hashtable getGeneBitsetData(java.lang.String geneBitsetName)
The Hashtable list returned is defined as: Name - Value "GeneBitsetName" - String name of gene list "MaxWords" - int number 64-bit words allocated in gene bit set "count" - int # of genes in gene bit set "highMID" - int highest MID gene in gene bit set "BitDataArray - long[0:MaxWords-1] 64-bit words representing gene bit set
geneBitsetName
- name of gene listnull
if errorpublic final boolean setGeneBitsetData(java.lang.String geneBitsetName, long[] bitData, int maxWords)
geneBitsetName
- name of gene listbitData
- bitset array data for the gene bit set [0:maxWords-1]maxWords
- # of words in bitDatanull
if not found or error, else return true list.public final boolean addGeneToGeneBitset(java.lang.String geneBitsetName, int mid)
geneBitsetName
- name of gene listmid
- gene MID to add to named geneBitSetpublic final boolean removeGeneFromGeneBitset(java.lang.String geneBitsetName, int mid)
geneBitsetName
- name of gene listmid
- gene MID to add to named geneBitSetpublic final boolean isGeneInGeneBitset(java.lang.String geneBitsetName, int mid)
geneBitsetName
- name of gene listmid
- gene MID to add to named geneBitSetpublic final boolean clearGeneBitset(java.lang.String geneBitsetName)
geneBitsetName
- name of gene listpublic final boolean findCountAndhighMIDinGeneBitset(java.lang.String geneBitsetName)
geneBitsetName
- name of gene listpublic final boolean setUserFilterGeneList(java.lang.String geneListName, boolean setFilterUseGeneSetFlag)
geneListName
- name of gene listsetFilterUseGeneSetFlag
- to also set the
(Analysis | Filter | "User Filter Gene Set") data filterpublic final boolean setUserNormalizeGeneList(java.lang.String geneListName, boolean setNormalizeByGeneSetFlag)
geneListName
- name of gene listsetNormalizeByGeneSetFlag
- to also set the
(Analyze | Normalization | "By 'User normalization gene set'")
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |