Lists represent stored collections of data and saved result sets in
an InterMine data warehouse. This class is an abstraction of this
information, and provides mechanisms for managing the data.
Lists are created from a webservice, and can be manipulated in
various ways. The operations are:
Lists can also be created from a query's result with the exact
same syntax. In the case of queries, the type is not required, but
the query should have just one view, and it should be an id.
|
|
|
get_name(self)
The name of the list used to access it programmatically |
source code
|
|
|
set_name(self,
new_name)
Setting the list's name causes the list's name to be updated on the
server. |
source code
|
|
|
del_name(self)
Raises an error - lists must always have a name |
source code
|
|
|
__len__(self)
Returns the number of elements in the object |
source code
|
|
|
|
|
|
|
|
intermine.query.Query
|
to_query(self)
Return a new query constrained to the objects in this list, and with
a single view column of the objects ids. |
source code
|
|
|
make_list_constraint(self,
path,
op)
Implementation of trait that allows use of these objects in list
constraints |
source code
|
|
|
__iter__(self)
Return an iterator over the objects in this list, with all attributes
selected for output |
source code
|
|
|
__getitem__(self,
index)
Get a member of this list by index |
source code
|
|
|
__and__(self,
other)
Intersect this list and another |
source code
|
|
|
__iand__(self,
other)
Intersect this list and another, and replace this list with the
result of the intersection |
source code
|
|
|
__or__(self,
other)
Return the union of this list and another |
source code
|
|
|
__add__(self,
other)
Return the union of this list and another |
source code
|
|
|
__iadd__(self,
other)
Append other to this list. |
source code
|
|
|
|
|
append(self,
appendix)
Append the arguments to this list |
source code
|
|
|
calculate_enrichment(self,
widget,
background=None,
correction=' Holm-Bonferroni ' ,
maxp=0.05,
filter='
' )
Perform an enrichment calculation on this list
============================================== |
source code
|
|
|
__xor__(self,
other)
Calculate the symmetric difference of this list and another |
source code
|
|
|
__ixor__(self,
other)
Calculate the symmetric difference of this list and another and
replace this list with the result |
source code
|
|
|
__sub__(self,
other)
Subtract the other from this list |
source code
|
|
|
__isub__(self,
other)
Replace this list with the subtraction of the other from this list |
source code
|
|
|
add_tags(self,
*tags)
Calls the server to add these tags, and updates this lists tags. |
source code
|
|
|
remove_tags(self,
*tags)
Calls the server to remove these tags, and updates this lists tags. |
source code
|
|
|
update_tags(self,
*tags)
Calls the server to remove these tags, and updates this lists tags. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
date_created
When this list was originally created
|
|
tags
The tags associated with this list
|
|
description
The human readable description of this list
|
|
title
The fixed title of this list
|
|
status
The upgrade status of this list
|
|
is_authorized
Whether or not the current user is authorised to make changes to this
list
|
|
list_type
The type of the InterMine objects this list can contain
|
|
size
Return the number of elements in the list.
|
|
count
Alias for obj.size.
|
|
name
The name of this list
|
Inherited from object :
__class__
|