C# Class MorphExtractorCL.DendriteIO

显示文件 Open project: Vaa3D/vaa3d_tools Class Usage Examples

Public Methods

Method Description
CytEdges ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, DendriteNode pnode ) : void
CytNodes ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, int &count ) : void
Edge ( DendriteNode node, DendriteNode root, int deg, StringBuilder sb ) : void
LoadFromSWC ( IEnumerable fileContent ) : Dendrite
LoadFromSWC ( string filename ) : Dendrite

SWCファイルを読み込んでDendriteインスタンスを生成

PajekEdgesRD ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode ) : void
PajekVerticesRD ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, int &count ) : void
SaveAsCytoscapeFreeFormat ( String fname, Dendrite dend ) : void
SaveAsPajekFormat ( String fname, Dendrite dend ) : void
SaveAsTLP ( String fname, Dendrite dend ) : void
SaveEdgeList ( string fname, Dendrite dend ) : void
SaveToSWC ( string filename, Dendrite dend ) : void

DendriteインスタンスをSWCファイルに出力

SaveToSWCRec ( DendriteNode node, DendriteNode parent, StreamWriter writer ) : void
TLPCoord ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
TLPDistance ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
TLPEdge ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode, int &count ) : void
TLPEdgeLength ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode, int &count ) : void
TLPElectricalDistance ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
TLPNodeType ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
TLPNodes ( StreamWriter sw, DendriteNode node, DendriteNode parent, int &count ) : void
TLPRadius ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void

Private Methods

Method Description
ParseSWC ( IEnumerable fileContents ) : IEnumerable

Method Details

CytEdges() public method

public CytEdges ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, DendriteNode pnode ) : void
sw System.IO.StreamWriter
dend Dendrite
node DendriteNode
parent DendriteNode
pnode DendriteNode
return void

CytNodes() public method

public CytNodes ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, int &count ) : void
sw System.IO.StreamWriter
dend Dendrite
node DendriteNode
parent DendriteNode
count int
return void

Edge() public method

public Edge ( DendriteNode node, DendriteNode root, int deg, StringBuilder sb ) : void
node DendriteNode
root DendriteNode
deg int
sb StringBuilder
return void

LoadFromSWC() public method

public LoadFromSWC ( IEnumerable fileContent ) : Dendrite
fileContent IEnumerable
return Dendrite

LoadFromSWC() public method

SWCファイルを読み込んでDendriteインスタンスを生成
public LoadFromSWC ( string filename ) : Dendrite
filename string 入力ファイル名
return Dendrite

PajekEdgesRD() public method

public PajekEdgesRD ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
pnode DendriteNode
return void

PajekVerticesRD() public method

public PajekVerticesRD ( StreamWriter sw, Dendrite dend, DendriteNode node, DendriteNode parent, int &count ) : void
sw System.IO.StreamWriter
dend Dendrite
node DendriteNode
parent DendriteNode
count int
return void

SaveAsCytoscapeFreeFormat() public method

public SaveAsCytoscapeFreeFormat ( String fname, Dendrite dend ) : void
fname String
dend Dendrite
return void

SaveAsPajekFormat() public method

public SaveAsPajekFormat ( String fname, Dendrite dend ) : void
fname String
dend Dendrite
return void

SaveAsTLP() public method

public SaveAsTLP ( String fname, Dendrite dend ) : void
fname String
dend Dendrite
return void

SaveEdgeList() public method

public SaveEdgeList ( string fname, Dendrite dend ) : void
fname string
dend Dendrite
return void

SaveToSWC() public method

DendriteインスタンスをSWCファイルに出力
public SaveToSWC ( string filename, Dendrite dend ) : void
filename string 出力ファイル名
dend Dendrite
return void

SaveToSWCRec() public method

public SaveToSWCRec ( DendriteNode node, DendriteNode parent, StreamWriter writer ) : void
node DendriteNode
parent DendriteNode
writer System.IO.StreamWriter
return void

TLPCoord() public method

public TLPCoord ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
return void

TLPDistance() public method

public TLPDistance ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
return void

TLPEdge() public method

public TLPEdge ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode, int &count ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
pnode DendriteNode
count int
return void

TLPEdgeLength() public method

public TLPEdgeLength ( StreamWriter sw, DendriteNode node, DendriteNode parent, DendriteNode pnode, int &count ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
pnode DendriteNode
count int
return void

TLPElectricalDistance() public method

public TLPElectricalDistance ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
return void

TLPNodeType() public method

public TLPNodeType ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
return void

TLPNodes() public method

public TLPNodes ( StreamWriter sw, DendriteNode node, DendriteNode parent, int &count ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
count int
return void

TLPRadius() public method

public TLPRadius ( StreamWriter sw, DendriteNode node, DendriteNode parent ) : void
sw System.IO.StreamWriter
node DendriteNode
parent DendriteNode
return void