Documentation ¶
Overview ¶
Package for interacting with the iGem registry
Index ¶
- Constants
- Variables
- func CountPartsinRegistryContaining(keystrings []string) (numberofparts int)
- func FilterRegistry(partype string, keystrings []string, exacttypecodeonly bool) (listofpartIDs []string, idtodescriptionmap map[string]string, err error)
- func GetDescription(partname string) (desc string)
- func GetDescriptionfromSubset(partname string, parsedxml Rsbpml) (desc string)
- func GetRating(partname string) (rating string)
- func GetResults(partname string) (results string)
- func GetResultsfromSubset(partname string, parsedxml Rsbpml) (results string)
- func GetSequence(partname string) (sequence string)
- func GetType(partname string) (parttype string)
- func MakeFastaURL(partname string) (Urlstring string)
- type Categories
- type FastaPart
- type IgemFeature
- type IgemFeatures
- type IgemParameter
- type IgemParameters
- type Part
- type Part_list
- type Registryquerier
- type Rsbpml
- func (parsedxml *Rsbpml) Categories(partname string) (result Categories)
- func (parsedxml *Rsbpml) Description(partname string) (result string)
- func (parsedxml *Rsbpml) Rating(partname string) (result string)
- func (parsedxml *Rsbpml) Results(partname string) (result string)
- func (parsedxml *Rsbpml) Sequence(partname string) (sequence string)
- func (parsedxml *Rsbpml) Type(partname string) (result string)
- type Scar
- type Sequence
- type Subpart
- type Subparts
- type Subscars
- type Twins
Constants ¶
View Source
const ( GENERIC = "BBa_B" PROTEINCODING = "BBa_C" REPORTER = "BBa_E" SIGNALLING = "BBa_F" PRIMER = "BBa_G" IAPPROJECT = "BBa_I" IGEMPROJECT = "BBa_J" TAG = "BBa_M" PROTEINGENERATOR = "BBa_P" INVERTER = "BBa_Q" REGULATORY = "BBa_R" INTERMEDIATE = "BBa_S" CELLSTRAIN = "BBa_V" )
Part Name classifications
BBa_B... = Generic basic parts such as Terminators, DNA, and Ribosome Binding Site BBa_C... = Protein coding parts BBa_E... = Reporter parts BBa_F... = Signalling parts BBa_G... = Primer parts BBa_I... = IAP 2003, 2004 project parts BBa_J... = iGEM project parts BBa_M... = Tag parts BBa_P... = Protein Generator parts BBa_Q... = Inverter parts BBa_R... = Regulatory parts BBa_S... = Intermediate parts BBa_V... = Cell strain parts
Variables ¶
View Source
var (
IgemTypeCodes = map[string]string{
"GENERIC": "BBa_B",
"PROTEINCODING": "BBa_C",
"REPORTER": "BBa_E",
"SIGNALLING": "BBa_F",
"PRIMER": "BBa_G",
"IAPPROJECT": "BBa_I",
"IGEMPROJECT": "BBa_J",
"TAG": "BBa_M",
"PROTEINGENERATOR": "BBa_P",
"INVERTER": "BBa_Q",
"REGULATORY": "BBa_R",
"INTERMEDIATE": "BBa_S",
"CELLSTRAIN": "BBa_V",
}
)
Functions ¶
func FilterRegistry ¶
func GetDescription ¶
func GetResults ¶
func GetResultsfromSubset ¶
change to object based method call
func GetSequence ¶
func MakeFastaURL ¶
Types ¶
type Categories ¶
type Categories struct {
Categories []string `xml:"category"`
}
func GetCategories ¶
func GetCategories(partname string) (categories Categories)
type FastaPart ¶
type FastaPart struct { Part_id string Desc string Part_name string Part_short_desc string Part_type string Sample_status string Seq_data string }
func FastaParse ¶
type IgemFeature ¶
type IgemFeatures ¶
type IgemFeatures struct {
Features []IgemFeature `xml:"feature"`
}
type IgemParameter ¶
type IgemParameters ¶
type IgemParameters struct {
Parameters []IgemParameter `xml:"parameter"`
}
type Part ¶
type Part struct { Part_id string `xml:"part_id"` Part_name string `xml:"part_name"` Part_short_name string `xml:"part_short_name"` Part_short_desc string `xml:"part_short_desc"` Part_type string `xml:"part_type"` Release_status string `xml:"release_status"` Sample_status string `xml:"sample_status"` Part_results string `xml:"part_results"` Part_nickname string `xml:"part_nickname"` Part_rating string `xml:"part_rating"` Part_url string `xml:"part_url"` Part_entered string `xml:"part_entered"` Deep_subparts Subparts `xml:"deep_subparts"` Specified_subparts Subparts `xml:"specified_subparts"` Specified_subscars Subscars `xml:"specified_subscars"` Sequencelist []Sequence `xml:"sequences"` Features IgemFeatures `xml:"features"` Parameters IgemParameters `xml:"parameters"` Categories Categories `xml:"categories"` Twins Twins `xml:"twins"` }
type Registryquerier ¶
type Rsbpml ¶
type Rsbpml struct {
Partlist []Part_list `xml:"part_list"`
}
func FetchPartsXML ¶
func ParseOutput ¶
func (*Rsbpml) Categories ¶
func (parsedxml *Rsbpml) Categories(partname string) (result Categories)
func (*Rsbpml) Description ¶
Click to show internal directories.
Click to hide internal directories.