Documentation ¶
Index ¶
- Constants
- Variables
- func DownloadBiocyc(dbPath string)
- func DownloadGenbankGenome(genomeId string)
- func DownloadKEGG(dbPath string)
- func DownloadRefseq(outputFile string, taxon string)
- func DownloadUniprot(outputFile string, taxon string)
- func GetBiocycPathway(id string) []string
- func GetKeggPathway(id string) []string
- func IODownloadFTP(dstFile *os.File, host string, path string)
- func IODownloadHTTP(dstFile *os.File, url string)
- func IOListFTP(host string, path string) []*ftp.Entry
- func ParseGenbank(gbkFile string)
- type Pathway
- type WriteCounter
- type XMLRoot
Constants ¶
View Source
const ( NCBI_refseq_ftp_host = "ftp.ncbi.nlm.nih.gov:21" NCBI_refseq_ftp_path = "/refseq/release/" NCBI_eutil_api_path = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/" )
View Source
const ( Uniprot_ftp_host = "ftp.uniprot.org:21" Uniprot_ftp_taxonomic_path = "/pub/databases/uniprot/current_release/knowledgebase/taxonomic_divisions/" )
Variables ¶
View Source
var (
BIOCYC_API = "https://websvc.biocyc.org"
)
View Source
var (
KEGG_API = "http://rest.kegg.jp"
)
Functions ¶
func DownloadBiocyc ¶
func DownloadBiocyc(dbPath string)
func DownloadGenbankGenome ¶
func DownloadGenbankGenome(genomeId string)
func DownloadKEGG ¶
func DownloadKEGG(dbPath string)
func DownloadRefseq ¶
func DownloadUniprot ¶
func GetBiocycPathway ¶
func GetKeggPathway ¶
func IODownloadHTTP ¶
func ParseGenbank ¶
func ParseGenbank(gbkFile string)
Types ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter counts the number of bytes written to it. It implements to the io.Writer interface and we can pass this into io.TeeReader() which will report progress on each write cycle.
func (WriteCounter) PrintProgress ¶
func (wc WriteCounter) PrintProgress()
Click to show internal directories.
Click to hide internal directories.