Code documentation¶
scripts.defineAndCountClades module¶
- scripts.defineAndCountClades.annotateNwk_nextstrain(t, j_d, trait, sampDate_d, sampPangolin_d, geneToIndex, indexToGene)[source]¶
- scripts.defineAndCountClades.annotateNwk_treetime(t, nodeTraits_d, trait, geneBoundry_d, sampDate_d, sampPangolin_d, geneToIndex, indexToGene)[source]¶
- scripts.defineAndCountClades.assignCladeToLin(assignment_old_d, heiarchy_old_d, clade_old_s)[source]¶
mode of Pangolin linage of tips withen clade are appended to clade names
- scripts.defineAndCountClades.assignToNucMut(t, mutList, logNotes_open)[source]¶
input: annotated tree (t) and list of nucliotide mut (mutList) to look for output: assignment_d: key: leaf node name; value: clade heierarchy (heiarchy_d: key:child clade; value:parent clade )
- scripts.defineAndCountClades.assignToSpecAA(t, mutList, logNotes_open, geneToIndex)[source]¶
input: annotated tree (t) and aa mut (mutList) to look for output: assignment_d: key: leaf node name; value: clade heierarchy (heiarchy_d: key:child clade; value:parent clade )
- scripts.defineAndCountClades.assignToTraits(t, ofInterst_l=[])[source]¶
input: annotated tree (t) Not currntly functional: if ofInterst_l is not empty only initialize when node has trait in least output: assignment_d: key: leaf node name; value: clade heierarchy (heiarchy_d: key:child clade; value:parent clade )
- scripts.defineAndCountClades.countAbudanceFromNames_byWeek(assignment_d, clade_s, startDate, endDate, delta, tipLog_name)[source]¶
counts total number of tips withen each clade, for each time interval (delta) between startDate and endDate
scripts.drawMuller module¶
- scripts.drawMuller.defineChildBoundries(time, scaleFactor, parentCladeSnap, y1_parent, y2_parent)[source]¶
time is the number defining the time of interest parentCladeSnap is pointer to snapshotClade object which has boundries of” y1_parent is top of clade boundries, y1_parent is bottom of clade boundries
updates
- scripts.drawMuller.drawWrapper(outFolder, outPrefix, root_clades_l, scaleTime, times_l, maxY, minTime, labelPosition, xlabel, timeToDate_d)[source]¶
- scripts.drawMuller.extractCord_draw(clades_l, img, scaleTime, x_labelCord_l, y_labelCord_l, label_l, times_l, minTime, labelPosition)[source]¶