QA Python Tools: Difference between revisions
From Genecats
Jump to navigationJump to search
No edit summary |
|||
Line 6: | Line 6: | ||
</span> | </span> | ||
'''def getLabels(db, track, labelType):''' | :'''def getLabels(db, track, labelType):''' | ||
:<pre>Returns labels of specified 'type' (shortLabel or longLabel) for a single track, its parent, and its superTrack. Excludes 'view' labels.</pre> | |||
:*Depends on '''getAttributeForTrack''' within tables/trackUtils.py | |||
Depends on '''getAttributeForTrack''' within tables/trackUtils.py | |||
:'''def getAttributeForTrack(attribute, db, track):''' | |||
:<pre>Uses tdbQuery to get an attribute where track or table == 'track' and removes label.</pre> | |||
:*Depeneds on '''runCommand''' within qaUtils.py |
Revision as of 23:46, 5 February 2019
This page contains information about the different python modules and functions. The QA python scripts live in the following directory:
~/kent/python/lib/ucscGb/qa/
tables/trackUtils.py
- def getLabels(db, track, labelType):
Returns labels of specified 'type' (shortLabel or longLabel) for a single track, its parent, and its superTrack. Excludes 'view' labels.
- Depends on getAttributeForTrack within tables/trackUtils.py
- def getAttributeForTrack(attribute, db, track):
Uses tdbQuery to get an attribute where track or table == 'track' and removes label.
- Depeneds on runCommand within qaUtils.py