The civic module¶
CIViCpy is primarily designed to enable exploration of the content of CIViC through Python CivicRecord objects.
While these record objects can be initialized independently, the civic module also provides several routines for
Getting Records directly from CIViC. Use of these routines is recommended.
The civic module may be imported from civicpy at the top level:
>>>from civicpy import civic
CIViC Records¶
The primary CIViC records are found on the sidebar menu on CIViC, and are fully-formed.
Gene¶
Factor¶
Fusion¶
Region¶
Variant¶
GeneVariant¶
FactorVariant¶
FusionVariant¶
RegionVariant¶
MolecularProfile¶
Evidence¶
Assertion¶
Source¶
Disease¶
Therapy¶
Phenotype¶
Organization¶
Approval¶
CIViC Attributes¶
The CivicAttribute class is a special type of CivicRecord that is not indexed, and is used as a base
class for additional complex records beyond those mentioned above (e.g. diseases, therapies). CivicAttributes are not cached
except as attached objects to non-CivicAttribute CivicRecord objects, and cannot be retrieved
independently.
Some complex records are: