Package org.snpsift.pedigree
Class PedigreeDraw
java.lang.Object
org.snpsift.pedigree.PedigreeDraw
Draws a pedigree using SVG
- Author:
- pablocingolani
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPedigreeDraw
(String tfamFileName) PedigreeDraw
(org.snpeff.ped.PedPedigree pedigree) -
Method Summary
Modifier and TypeMethodDescriptionint
Assign orderint
Max depth in this pedigreevoid
void
Color individuals by affected statusvoid
Draw a diamond (unknown sex)drawSvg()
Draw the full pedigree as an SVG graphvoid
drawSvgByFamily
(String outdir, String info) Draw each familyvoid
female
(Individual ind) findSpouses
(Individual ind) int
getSizeX()
int
getSizeY()
void
void
void
void
line
(Individual parent1, Individual parent2, Individual child) Line between Mother-Father and Childvoid
lineDashed
(Point p1, Point p2, String color) void
male
(Individual ind) protected void
moveIfLeft
(int posX, int deltaX, Set<Individual> except) Move if the object is located to the left of posXprotected void
moveIfRight
(int posX, int deltaX, Set<Individual> except) Move if the object is located to the right of posXvoid
void
unknown
(Individual ind)
-
Field Details
-
debug
public static boolean debug
-
-
Constructor Details
-
PedigreeDraw
public PedigreeDraw(org.snpeff.ped.PedPedigree pedigree) -
PedigreeDraw
-
-
Method Details
-
assignOrder
public int assignOrder()Assign order- Returns:
-
calcDepth
public int calcDepth()Max depth in this pedigree- Returns:
-
circle
-
colorAffected
public void colorAffected()Color individuals by affected status -
diamond
public void diamond(int x, int y, int width, int height, String strokeColor, int strokeWidth, String fillColor) Draw a diamond (unknown sex)- Parameters:
x
-y
-width
-height
-strokeColor
-strokeWidth
-fillColor
-
-
drawSvg
Draw the full pedigree as an SVG graph- Returns:
-
drawSvgByFamily
Draw each family -
female
-
findSpouses
-
get
-
getIndividuals
-
getSizeX
public int getSizeX() -
getSizeY
public int getSizeY() -
label
-
line
Line between Mother-Father and Child- Parameters:
parent1
-parent2
-child
-
-
line
-
line
-
lineDashed
-
male
-
moveIfLeft
Move if the object is located to the left of posX- Parameters:
deltaX
-xpos
-
-
moveIfRight
Move if the object is located to the right of posX- Parameters:
deltaX
-xpos
-
-
square
-
unknown
-