anno

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AFlist = []string{
	"GnomAD EAS AF",
	"GnomAD AF",
	"1000G AF",
	"ESP6500 AF",
	"ExAC EAS AF",
	"ExAC AF",
	"PVFD AF",
	"Panel AlleleFreq",
	"wgs_GnomAD_AF",
}

AFlist default AF list for check

View Source
var AutoRuleKey = []string{
	"PVS1", "PS1", "PS4", "PM1", "PM2", "PM4", "PM5", "PP2", "PP3", "PP5", "BA1",
	"BS1", "BS2", "BP1", "BP3", "BP4", "BP6", "BP7",
}
View Source
var FuncInfo = map[string]int{
	"splice-3":     3,
	"splice-5":     3,
	"init-loss":    3,
	"alt-start":    3,
	"frameshift":   3,
	"nonsense":     3,
	"stop-gain":    3,
	"stop-loss":    2,
	"span":         3,
	"missense":     2,
	"cds-del":      2,
	"cds-indel":    2,
	"cds-ins":      2,
	"splice-10":    2,
	"splice+10":    2,
	"coding-synon": 1,
	"splice-20":    1,
	"splice+20":    1,
}

Tier1 >1 LoF 3

View Source
var ManualRuleKey = []string{
	"PVS1", "PS1", "PM5", "PS2", "PS3", "PM3", "PM6", "PP1",
	"PP4", "BS3", "BS4", "BP2", "BP5",
}

Functions

func AddTier

func AddTier(item map[string]string, stats map[string]int, geneList, specVarDb map[string]bool, isTrio, isWGS, allGene bool, AFlist []string)

add Tier to item

func CnvPrimer

func CnvPrimer(item map[string]string, cnvType string) (primer string)

CnvPrimer return 引物设计 for cnv

func FamilyTag

func FamilyTag(item map[string]string, inheritDb map[string]map[string]int, tag string) string

FamilyTag return familyTag

func FloatFormat added in v1.1.0

func FloatFormat(item map[string]string)

FloatFormat warp strconv.FormatFloat

func GetNativeIndelField

func GetNativeIndelField(item map[string]string) string

func GetNativeSnpField

func GetNativeSnpField(item map[string]string) string

func GetPath added in v1.1.0

func GetPath(key, dbPath string, config map[string]interface{}) (path string)

func GetStrVal added in v1.1.0

func GetStrVal(key string, config map[string]interface{}) (val string)

func InheritCheck

func InheritCheck(item map[string]string, inheritDb map[string]map[string]int)

InheritCheck count variants of gene

func InheritCoincide

func InheritCoincide(item map[string]string, inheritDb map[string]map[string]int, isTrio bool) string

InheritCoincide calculate 遗传相符

func InheritFrom

func InheritFrom(item map[string]string, sampleList []string) string

InheritFrom return 变异来源

func Nm2Ensp

func Nm2Ensp(item map[string]string, db *redis.Client) error

func PrimerDesign

func PrimerDesign(item map[string]string) string

PrimerDesign return 引物设计

func RedisNativeIndelAF

func RedisNativeIndelAF(item map[string]string, db *redis.Client, key, field string) error

func RedisNativeSnpAF

func RedisNativeSnpAF(item map[string]string, db *redis.Client, key, field string) error

func Score2Pred

func Score2Pred(item map[string]string)

Score2Pred add _pred for scores

func UpdateAutoRule

func UpdateAutoRule(item map[string]string)

func UpdateDisease added in v1.3.2

func UpdateDisease(gene string, item, gDiseaseDbColumn map[string]string, geneDiseaseDb map[string]map[string]string)

UpdateDisease add disease info to item

func UpdateDiseaseMultiGene added in v1.1.0

func UpdateDiseaseMultiGene(sep string, genes []string, item, geneDiseaseDbColumn map[string]string, geneDiseaseDb map[string]map[string]string)

func UpdateFunction

func UpdateFunction(item map[string]string)

UpdateFunction fix splice+-20, have not implement

func UpdateManualRule

func UpdateManualRule(item map[string]string)

func UpdateRedis

func UpdateRedis(item map[string]string, db *redis.Client, keyPrefix string)

func UpdateSnv

func UpdateSnv(item map[string]string, gender string, debug bool)

UpdateSnv add info for all variant

func UpdateSnvTier1

func UpdateSnvTier1(item map[string]string)

UpdateSnvTier1 add other info for tier1 variant

func UpdateTags

func UpdateTags(item map[string]string, specVarDb map[string]bool, isTrio bool) string

UpdateTags return 筛选标签

Types

This section is empty.

Jump to

Keyboard shortcuts

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