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 TypeMethodDescriptionintAssign orderintMax depth in this pedigreevoidvoidColor individuals by affected statusvoidDraw a diamond (unknown sex)drawSvg()Draw the full pedigree as an SVG graphvoiddrawSvgByFamily(String outdir, String info) Draw each familyvoidfemale(Individual ind) findSpouses(Individual ind) intgetSizeX()intgetSizeY()voidvoidvoidvoidline(Individual parent1, Individual parent2, Individual child) Line between Mother-Father and ChildvoidlineDashed(Point p1, Point p2, String color) voidmale(Individual ind) protected voidmoveIfLeft(int posX, int deltaX, Set<Individual> except) Move if the object is located to the left of posXprotected voidmoveIfRight(int posX, int deltaX, Set<Individual> except) Move if the object is located to the right of posXvoidvoidunknown(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
-