model

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2017 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_NOT_EXISTS = -1
	STATUS_PENDING    = 0
	STATUS_RUNNING    = 1
	STATUS_FINISHED   = 2
	STATUS_ERROR      = 3
	STATUS_CANCELED   = 4
	STATUS_TIMEOUT    = 5

	ALGORITHM_BOOSTER   = 6
	ALGORITHM_CLASSICAL = 7
)

Variables

This section is empty.

Functions

func AlgorithmConst

func AlgorithmConst(algorithm string) (int, error)

func AlgorithmStr

func AlgorithmStr(algorithm int) string

func StatusStr

func StatusStr(status int) string

Types

type Analysis

type Analysis struct {
	Id    string `json:"id"` // sha256 sum of reftree and boottree files
	EMail string `json:"-"`  // EMail of the job creator, may be empty string ""
	// Three next attributes are for users who want to build the trees using PhyML-SMS of galaxy
	SeqFile   string `json:"-"`        // Input Fasta Sequence File if user wants to build the ref/boot trees (priority over reffile and bootfile)
	NbootRep  int    `json:"nbootrep"` // Number of bootstrap replicates given by the user to build the bootstrap trees
	Alignfile string `json:"align"`    // Alignment result file returned by galaxy workflow if users gave a input sequence file

	Reffile      string `json:"-"`            // reftree original file (to be able to close it)
	Bootfile     string `json:"-"`            // bootstrap original file (to be able to close it)
	Result       string `json:"result"`       // resulting newick tree with support
	RawTree      string `json:"rawtree"`      // result tree with raw <id|avg_dist|depth> as branch names
	ResLogs      string `json:"reslogs"`      // log file
	Status       int    `json:"status"`       // status code of the analysis
	Algorithm    int    `json:"algorithm"`    // Algorithm : ALGORITHM_CLASSICAL or ALGORITHM_BOOSTER
	StatusStr    string `json:"statusstr"`    // status of the analysis (string)
	Message      string `json:"message"`      // error message if any
	Nboot        int    `json:"nboot"`        // number of trees that have been processed
	Collapsed    string `json:"collapsed"`    // Newick representation of collapsed resulting tree if any
	StartPending string `json:"startpending"` // Analysis queue time
	StartRunning string `json:"startrunning"` // Analysis Start running time
	End          string `json:"end"`          // Analysis End time
}

func (*Analysis) DelTemp

func (a *Analysis) DelTemp()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL